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

# Get an album-asset link record

> Fetches one album-asset link record by ID (the junction row between an album and an asset). Rarely needed directly; most callers want `get_asset` or `get_album` instead.



## OpenAPI

````yaml https://api.gumnut.ai/openapi.json get /api/album-assets/{album_asset_id}
openapi: 3.1.0
info:
  title: Gumnut API
  description: API for using Gumnut to manage photos and videos
  version: 0.1.0
servers: []
security: []
paths:
  /api/album-assets/{album_asset_id}:
    get:
      tags:
        - album-assets
      summary: Get an album-asset link record
      description: >-
        Fetches one album-asset link record by ID (the junction row between an
        album and an asset). Rarely needed directly; most callers want
        `get_asset` or `get_album` instead.
      operationId: get_album_asset
      parameters:
        - name: album_asset_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              Album-asset junction row ID (with `album_asset_` prefix). Carried
              by the `id` field on an album-asset link record. Not the same as
              `asset_id` or `album_id`.
            title: Album Asset Id
          description: >-
            Album-asset junction row ID (with `album_asset_` prefix). Carried by
            the `id` field on an album-asset link record. Not the same as
            `asset_id` or `album_id`.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AlbumAssetResponse'
        '404':
          description: Not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AlbumAssetResponse:
      properties:
        id:
          type: string
          title: Id
          description: Unique album_asset identifier with 'album_asset_' prefix
        album_id:
          type: string
          title: Album Id
          description: ID of the album
        asset_id:
          type: string
          title: Asset Id
          description: ID of the asset
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When this link was created
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: When this link was last updated
      type: object
      required:
        - id
        - album_id
        - asset_id
        - created_at
        - updated_at
      title: AlbumAssetResponse
      description: Represents a link between an album and an asset.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````