Skip to main content
GET
/
v1
/
assets
List assets
curl --request GET \
  --url https://roughy-api-staging.fly.dev/v1/assets \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "content_type": "audio/mpeg",
      "created_at": "2026-05-02T08:54:52.423000Z",
      "duration_seconds": "324.412",
      "extension": "mp3",
      "id": "019de7f7-3a52-74d1-9eeb-323e0bfb7bb9",
      "language": "de",
      "project_id": "019de7f5-7e21-7402-92a8-1c0e1fa84411",
      "size_bytes": 4823572,
      "state": "ready",
      "type": "audio"
    }
  ],
  "total": 1,
  "limit": 50,
  "offset": 0
}

Authorizations

Authorization
string
header
required

Pass your API key as Authorization: Bearer sk_…. Mint a key from your dashboard's API-keys page.

Query Parameters

project_id
string<uuid> | null

Restrict the listing to one project. Omit to return assets across every project you own.

state
enum<string> | null

Filter by lifecycle state. Omit to return every state.

Available options:
pending_upload,
processing,
pending_payment,
ready,
failed
limit
integer
default:20

Maximum number of assets to return (1-100). Defaults to 20.

Required range: 1 <= x <= 100
offset
integer
default:0

Number of assets to skip from the start of the listing. Defaults to 0.

Required range: x >= 0

Response

One page of assets, newest first.

Paginated list of assets, newest first.

items
AssetSummary · object[]
required

Page of assets, newest first.

total
integer
required

Total number of assets in this project matching the current filter across all pages — not the size of items.

limit
integer
required

The limit echoed back from the request.

offset
integer
required

The offset echoed back from the request.