Skip to main content
GET
/
assets
List assets
curl --request GET \
  --url https://api.krea.ai/assets \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "image_url": "<string>",
      "uploaded_at": "2023-11-07T05:31:56Z",
      "width": 123,
      "height": 123,
      "size_bytes": 123,
      "mime_type": "<string>",
      "description": "<string>",
      "metadata": "<unknown>"
    }
  ],
  "nextCursor": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
integer

Number of items to return (1-1000, default: 100)

Required range: 1 <= x <= 1000
cursor
string<date-time>

Cursor for pagination

Response

List of assets

items
object[]
required
nextCursor
string | null
required