album-assets

List album-asset link records

Changed on

Returns paginated link records (lightweight join rows between albums and assets) describing which assets are in which albums — each row contains album_id + asset_id + link timestamps, not the full asset or album metadata. Use this when you specifically need the junction records (for sync or change tracking).

For most use cases you want a different tool: use list_assets with album_id to get the full asset metadata for a specific album; use list_albums with asset_id to find which albums contain an asset.

Pagination is cursor-based: when has_more is true, pass the id of the last album-asset in data as starting_after_id to fetch the next page.

get/api/album-assets

Request

  • Base URL
    https://api.gumnut.ai
  • Auth
    • HTTP bearer
    • or HTTP bearer

Query parameters

album_idstring nullable

Return only link records for this album ID. Equivalent to 'list the assets in this album' — in most cases prefer list_assets with album_id to get the asset metadata directly instead of the lightweight link records.

asset_idstring nullable

Return only link records for this asset ID. Equivalent to 'which albums contain this asset' — in most cases prefer list_albums with asset_id to get the album metadata directly.

idsstring[] nullable

Look up specific album-asset link records by ID (max 200). The ID has the album_asset_ prefix. Accepts multiple ids= query params or a single comma-delimited value (e.g., ids=album_asset_1,album_asset_2).

limitinteger

Maximum number of link records per page (1–200). Defaults to 20.

starting_after_idstring nullable

Cursor for pagination. Pass the id of the last album-asset in the previous response's data to fetch the next page. Omit for the first page.

library_idstring nullable

Library to list from. Optional if the user has a single live (non-trashed) library; required when they have multiple.

Response

Successful Response

has_moreboolean required

True if there are more album-asset links after this page. Pass the last album-asset's id as starting_after_id to fetch the next page.

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • breaking

      response property detail list-of-types was widened by adding types string to media type application/json of response 422

    1 more change in this revision