Files

List the files in your namespace, newest first. Keyset-paginated: when has_more is true, pass next_cursor back as cursor.

get/files

Request

  • Base URL
    https://agents.lumalabs.ai/v1
  • Auth
    HTTP bearer

Query parameters

limit, integer

Maximum files to return (1–100). Defaults to 25.

cursor, string

Opaque pagination cursor from a prior response's next_cursor.

state, 'pending' | 'ready' | 'failed' | 'deleted'

Lifecycle state of an uploaded file. pending until bytes are received and the ingest pipeline runs; ready once it can be referenced from a generation; failed if ingest/moderation rejected it; deleted after a soft-delete.

Filter to files in this state.

purpose, 'input' | 'reference'

How the file is intended to be used in a generation. input is the primary subject (e.g. the source image for an edit); reference is style/content guidance.

Filter to files with this purpose.

Response

A page of files

FileList required

Keyset-paginated page of files, newest first. When has_more is true, pass next_cursor back as the cursor query parameter to fetch the next page. next_cursor is opaque.

data, File[] required

Files in this page.

has_more, boolean required

Whether more files exist beyond this page.

next_cursor, string nullable

Opaque cursor for the next page, when has_more is true.

Changes