> ## Documentation Index
> Fetch the complete documentation index at: https://docs.heralded.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Assets

> Current assets, filtered by type, lifecycle state and owner before cursor paging.

Each asset names its action. Older versions remain on that action's full page.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/brands/{brand_id}/assets
openapi: 3.1.0
info:
  description: >-
    Access to one organization's brands, as the member who created the API key.
    A read-only key reads; a full-access key also starts, edits and runs that
    member's Snapshots on the organization's Snapshot credits. Each key may make
    120 requests a minute. Separate organization service tokens can start
    Snapshots and Full audits and read service audits. Every error is an RFC
    9457 problem (`application/problem+json`) whose `code` names it.
  summary: Read your brands' AI visibility and run Snapshots in Heralded.
  title: Heralded API
  version: '1'
servers:
  - url: https://api.heralded.ai
security: []
paths:
  /v1/brands/{brand_id}/assets:
    get:
      tags:
        - v1
      summary: Get Assets
      description: >-
        Current assets, filtered by type, lifecycle state and owner before
        cursor paging.


        Each asset names its action. Older versions remain on that action's full
        page.
      operationId: listAssets
      parameters:
        - description: The brand's UUID from listBrands.
          in: path
          name: brand_id
          required: true
          schema:
            description: The brand's UUID from listBrands.
            format: uuid
            title: Brand Id
            type: string
        - description: Maximum rows (100).
          in: query
          name: limit
          required: false
          schema:
            default: 20
            description: Maximum rows (100).
            maximum: 100
            minimum: 1
            title: Limit
            type: integer
        - description: Prior next_cursor; keep filters and limit.
          in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - maxLength: 4096
                type: string
              - type: 'null'
            description: Prior next_cursor; keep filters and limit.
            title: Cursor
        - description: Completed scan id cutoff.
          in: query
          name: as_of
          required: false
          schema:
            anyOf:
              - format: uuid
                type: string
              - type: 'null'
            description: Completed scan id cutoff.
            title: As Of
        - description: Rows to skip; prefer cursor paging.
          in: query
          name: offset
          required: false
          schema:
            default: 0
            description: Rows to skip; prefer cursor paging.
            minimum: 0
            title: Offset
            type: integer
        - description: Asset type from the returned types.
          in: query
          name: type
          required: false
          schema:
            anyOf:
              - maxLength: 80
                type: string
              - type: 'null'
            description: Asset type from the returned types.
            title: Type
        - description: Asset lifecycle group.
          in: query
          name: state
          required: false
          schema:
            anyOf:
              - enum:
                  - drafting
                  - review
                  - approved
                  - live
                  - stopped
                  - failed
                type: string
              - enum:
                  - ready
                  - verifying
                type: string
              - type: 'null'
            description: Asset lifecycle group.
            title: State
        - description: Owner account id, or unassigned.
          in: query
          name: owner
          required: false
          schema:
            anyOf:
              - format: uuid
                type: string
              - const: unassigned
                type: string
              - type: 'null'
            description: Owner account id, or unassigned.
            title: Owner
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Assets'
          description: Successful Response
        '400':
          content:
            application/problem+json:
              example:
                code: invalid_cursor
                detail: The cursor is invalid or belongs to a different query.
                instance: example-request-id
                status: 400
                title: Bad Request
                type: https://docs.heralded.ai/errors-and-limits#invalid_cursor
              schema:
                $ref: '#/components/schemas/Problem'
          description: The cursor is invalid or belongs to a different query.
        '401':
          content:
            application/problem+json:
              example:
                code: invalid_token
                detail: >-
                  The Authorization header carries no API key Heralded knows: it
                  is missing, mistyped, revoked or expired.
                instance: example-request-id
                status: 401
                title: Unauthorized
                type: https://docs.heralded.ai/errors-and-limits#invalid_token
              schema:
                $ref: '#/components/schemas/Problem'
          description: No API key, or one that is unknown, revoked or expired.
          headers:
            WWW-Authenticate:
              schema:
                example: Bearer
                type: string
        '404':
          content:
            application/problem+json:
              example:
                code: not_found
                detail: Nothing here that this API key can read.
                instance: example-request-id
                status: 404
                title: Not Found
                type: https://docs.heralded.ai/errors-and-limits#not_found
              schema:
                $ref: '#/components/schemas/Problem'
          description: No such brand or answer, or the key's owner cannot read it.
        '409':
          content:
            application/problem+json:
              example:
                code: workspace_archived
                detail: The API key's organization is archived.
                instance: example-request-id
                status: 409
                title: Conflict
                type: https://docs.heralded.ai/errors-and-limits#workspace_archived
              schema:
                $ref: '#/components/schemas/Problem'
          description: The API key's organization is archived.
        '422':
          content:
            application/problem+json:
              example:
                code: invalid_request
                detail: The request's parameters are invalid; `errors` names each one.
                errors:
                  - loc:
                      - query
                      - limit
                    msg: Input should be less than or equal to 100
                    type: less_than_equal
                instance: example-request-id
                status: 422
                title: Unprocessable Content
                type: https://docs.heralded.ai/errors-and-limits#invalid_request
              schema:
                $ref: '#/components/schemas/ValidationProblem'
          description: A path or query parameter is invalid.
        '429':
          content:
            application/problem+json:
              example:
                code: rate_limited
                detail: >-
                  This caller is past its requests for the minute. Retry after
                  the seconds in Retry-After.
                instance: example-request-id
                rate_limit:
                  limit: 120
                  remaining: 0
                  reset: 60
                  window: 60
                status: 429
                title: Too Many Requests
                type: https://docs.heralded.ai/errors-and-limits#rate_limited
              schema:
                $ref: '#/components/schemas/RateLimitProblem'
          description: The API key made more than 120 requests in the minute.
          headers:
            Retry-After:
              description: Seconds until the key may call again.
              schema:
                example: 60
                type: integer
      security:
        - apiKey: []
components:
  schemas:
    V1Assets:
      examples:
        - assets: []
          limit: 20
          meta:
            data_as_of: null
            last_attempt_failed: false
            partial: false
            query: {}
            surfaces: {}
            updating: false
          next_cursor: null
          offset: 0
          owners: []
          states: []
          total: 0
          types: []
      properties:
        assets:
          description: Current assets on this page.
          items:
            $ref: '#/components/schemas/V1Asset'
          title: Assets
          type: array
        limit:
          description: Maximum assets per page.
          title: Limit
          type: integer
        meta:
          $ref: '#/components/schemas/Meta'
          description: Normalized query and newest included scan.
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Pass as cursor with the same query to read the next page; null at
            the end.
          title: Next Cursor
        offset:
          description: Assets skipped before this page.
          title: Offset
          type: integer
        owners:
          description: Owners this caller may name for the brand.
          items:
            $ref: '#/components/schemas/AssigneeResponse'
          title: Owners
          type: array
        states:
          description: Available lifecycle groups.
          items:
            $ref: '#/components/schemas/AssetOption'
          title: States
          type: array
        total:
          description: Current assets matching every filter before paging.
          title: Total
          type: integer
        types:
          description: Available asset types for this brand.
          items:
            $ref: '#/components/schemas/AssetOption'
          title: Types
          type: array
      required:
        - meta
        - next_cursor
        - assets
        - total
        - limit
        - offset
        - types
        - states
        - owners
      title: V1Assets
      type: object
    Problem:
      description: An RFC 9457 problem linking its code to human-readable documentation.
      properties:
        code:
          title: Code
          type: string
        detail:
          title: Detail
          type: string
        instance:
          default: ''
          title: Instance
          type: string
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          title: Type
          type: string
      required:
        - type
        - title
        - status
        - detail
        - code
        - instance
      title: Problem
      type: object
    ValidationProblem:
      properties:
        code:
          title: Code
          type: string
        detail:
          title: Detail
          type: string
        errors:
          items:
            $ref: '#/components/schemas/ValidationIssue'
          title: Errors
          type: array
        instance:
          default: ''
          title: Instance
          type: string
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          title: Type
          type: string
      required:
        - type
        - title
        - status
        - detail
        - code
        - instance
        - errors
      title: ValidationProblem
      type: object
    RateLimitProblem:
      properties:
        code:
          title: Code
          type: string
        detail:
          title: Detail
          type: string
        instance:
          default: ''
          title: Instance
          type: string
        rate_limit:
          $ref: '#/components/schemas/RateLimitValues'
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          title: Type
          type: string
      required:
        - type
        - title
        - status
        - detail
        - code
        - instance
        - rate_limit
      title: RateLimitProblem
      type: object
    V1Asset:
      properties:
        action_id:
          description: The work item that owns this asset.
          format: uuid
          title: Action Id
          type: string
        id:
          description: The current asset identifier.
          format: uuid
          title: Id
          type: string
        kind:
          description: The stored asset family.
          enum:
            - piece
            - draft
            - change
            - kit
          title: Kind
          type: string
        opening:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The first 400 characters of settled text, null before text is
            available.
          title: Opening
        owner:
          anyOf:
            - $ref: '#/components/schemas/AssigneeResponse'
            - type: 'null'
          description: The current eligible owner, null when unassigned or unavailable.
        state:
          anyOf:
            - enum:
                - drafting
                - review
                - approved
                - live
                - stopped
                - failed
              type: string
            - enum:
                - ready
                - verifying
              type: string
          description: The lifecycle group used by the state filter.
          title: State
        title:
          description: The piece title or the owning work title.
          title: Title
          type: string
        type:
          description: The format or artifact type used by the type filter.
          title: Type
          type: string
        updated_at:
          description: When this asset was last updated.
          format: date-time
          title: Updated At
          type: string
        version:
          anyOf:
            - type: integer
            - type: 'null'
          description: The current settled version, null for an unversioned change.
          title: Version
      required:
        - id
        - action_id
        - kind
        - type
        - title
        - version
        - state
        - owner
        - updated_at
        - opening
      title: V1Asset
      type: object
    Meta:
      properties:
        data_as_of:
          anyOf:
            - $ref: '#/components/schemas/DataAsOf'
            - type: 'null'
        last_attempt_failed:
          default: false
          description: The newest attempt failed; the last good result is displayed.
          title: Last Attempt Failed
          type: boolean
        partial:
          default: false
          description: The displayed response includes a partial report.
          title: Partial
          type: boolean
        query:
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
          title: Query
          type: object
        surfaces:
          additionalProperties:
            $ref: '#/components/schemas/SurfaceFreshness'
          description: >-
            Freshness by Command Center surface key. Each entry describes its
            own displayed result, including results without a scan.
          title: Surfaces
          type: object
        updating:
          default: false
          description: A newer result is being produced or is not yet displayed.
          title: Updating
          type: boolean
      required:
        - query
        - data_as_of
        - partial
        - updating
        - last_attempt_failed
        - surfaces
      title: Meta
      type: object
    AssigneeResponse:
      properties:
        id:
          format: uuid
          title: Id
          type: string
        initials:
          title: Initials
          type: string
        name:
          title: Name
          type: string
      required:
        - id
        - name
        - initials
      title: AssigneeResponse
      type: object
    AssetOption:
      properties:
        label:
          description: The filter label.
          title: Label
          type: string
        value:
          description: The filter value.
          title: Value
          type: string
      required:
        - value
        - label
      title: AssetOption
      type: object
    ValidationIssue:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Loc
          type: array
        msg:
          title: Msg
          type: string
        type:
          title: Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationIssue
      type: object
    RateLimitValues:
      properties:
        limit:
          title: Limit
          type: integer
        remaining:
          title: Remaining
          type: integer
        reset:
          title: Reset
          type: integer
        window:
          title: Window
          type: integer
      required:
        - limit
        - window
        - remaining
        - reset
      title: RateLimitValues
      type: object
    DataAsOf:
      properties:
        completed_at:
          format: date-time
          title: Completed At
          type: string
        id:
          format: uuid
          title: Id
          type: string
      required:
        - id
        - completed_at
      title: DataAsOf
      type: object
    JsonValue: {}
    SurfaceFreshness:
      properties:
        as_of:
          anyOf:
            - $ref: '#/components/schemas/SurfaceAsOf'
            - type: 'null'
          description: The result displayed here.
        last_attempt_failed:
          default: false
          description: The newest attempt failed; any displayed result is retained.
          title: Last Attempt Failed
          type: boolean
        partial:
          default: false
          description: The displayed report is partial.
          title: Partial
          type: boolean
        updating:
          default: false
          description: A newer attempt exists whose result is not yet displayed.
          title: Updating
          type: boolean
      required:
        - as_of
        - partial
        - updating
        - last_attempt_failed
      title: SurfaceFreshness
      type: object
    SurfaceAsOf:
      properties:
        at:
          description: When the displayed result was measured.
          format: date-time
          title: At
          type: string
        scan_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          description: The result's scan, null for a timestamp-only result.
          title: Scan Id
      required:
        - scan_id
        - at
      title: SurfaceAsOf
      type: object
  securitySchemes:
    apiKey:
      description: 'An API key, sent as `Authorization: Bearer hrld_...`.'
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.