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

# Get Asset Metadata Values

> Get all metadata values for an asset.

For share users, hidden attributes (configured in share settings) are filtered out.



## OpenAPI

````yaml /api-reference/openapi.json get /metadata/assets/{asset_id}
openapi: 3.1.0
info:
  title: Aspect API
  description: Manage and search media in Aspect.
  version: 1.0.0
servers:
  - url: https://api.aspect.inc
security:
  - ApiKeyAuth: []
tags:
  - name: Users
  - name: API Keys
  - name: Workspaces
  - name: Projects
  - name: Directories
  - name: Assets
  - name: Attachments
  - name: Filesystem Items
  - name: Jobs
  - name: Collections
  - name: Comments
  - name: Search
  - name: Transcription
  - name: Metadata
  - name: Shares
  - name: Share Templates
  - name: Watermarks
paths:
  /metadata/assets/{asset_id}:
    get:
      tags:
        - Metadata
      summary: Get Asset Metadata Values
      description: >-
        Get all metadata values for an asset.


        For share users, hidden attributes (configured in share settings) are
        filtered out.
      operationId: get_asset_metadata_values
      parameters:
        - name: asset_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: Asset ID
            title: Asset Id
          description: Asset ID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetMetadataResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AssetMetadataResponse:
      properties:
        asset_id:
          type: string
          format: uuid
          title: Asset Id
          description: ID of the asset
        values:
          items:
            $ref: '#/components/schemas/MetadataValue'
          type: array
          title: Values
          description: All metadata values for the asset
        metadata_indicators:
          items:
            $ref: '#/components/schemas/CellIndicator'
          type: array
          title: Metadata Indicators
          description: Attributes whose AI generation is pending or failed for this asset
      type: object
      required:
        - asset_id
        - values
      title: AssetMetadataResponse
      description: API response schema containing all metadata for an asset.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MetadataValue:
      properties:
        attribute_id:
          type: string
          format: uuid
          title: Attribute Id
          description: ID of the attribute this value is for
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: Display name of the attribute
        category:
          anyOf:
            - type: string
            - type: 'null'
          title: Category
          description: Grouping category of the attribute
        data_type:
          $ref: '#/components/schemas/MetadataDataType'
          description: Data type of the value
        value:
          title: Value
          description: >-
            The actual value, type depends on data_type; null when the cell was
            answered with no value. For Objects: the objects present, each as
            {object_id, label, source}
        source:
          $ref: '#/components/schemas/CellSource'
          description: >-
            Author of the value's current content: user for manual writes, ai
            for generated ones
          default: user
      type: object
      required:
        - attribute_id
        - data_type
        - value
      title: MetadataValue
      description: A single metadata value with its attribute.
    CellIndicator:
      properties:
        attribute_id:
          type: string
          format: uuid
          title: Attribute Id
          description: Attribute this indicator is for
        state:
          $ref: '#/components/schemas/CellIndicatorState'
          description: >-
            pending = a run is scheduled or in progress; failed = the last run
            failed
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
          description: Failure reason for failed indicators (e.g. missing_input)
        has_answer:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Has Answer
          description: >-
            For failed indicators: whether the cell still shows the answer it
            held before the failed run; null for pending indicators
      type: object
      required:
        - attribute_id
        - state
      title: CellIndicator
      description: >-
        AI state of one column on one asset; only pending and failed states are
        listed.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    MetadataDataType:
      type: string
      enum:
        - string
        - integer
        - float
        - boolean
        - datetime
        - single_select
        - multi_select
        - user_id
        - person_id
        - object_id
        - directory_id
      title: MetadataDataType
      description: Data types for metadata attribute values.
    CellSource:
      type: string
      enum:
        - user
        - ai
      title: CellSource
      description: |-
        Who wrote a cell's current answer: every answer write stamps its actor.

        Read by the overwrite run, which leaves user-authored cells out unless
        asked to replace them, and by clients, which animate AI landings only.
    CellIndicatorState:
      type: string
      enum:
        - pending
        - failed
      title: CellIndicatorState
      description: AI state of a column on an asset, shown alongside its values.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Aspect API key (sk_...) in Authorization header. 'Bearer ' optional.

````

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