Assets

Signed URLs for what a job produced

Signs and does not proxy: fetch the URLs directly. They live seven days at most and never past the files themselves, which are deleted seven days after the job was made — so a link lives what the job has left, and expires_at says when; a deleted job's files go within minutes of the delete, and its links stop working with them. Ask again for fresh links at any time in those seven days. Once a job is past its seven days this answers 410 expired with reason: retention_ended until the retention sweep removes the job, normally within minutes, and 404 not_found after that. Spends the egress bucket in whole megabytes when it signs, not when a link is fetched: a signed link can be fetched again until it expires, and asking for the links again spends the bucket again.

GET
/v1/jobs/{id}/assets
GET
/v1/jobs/{id}/assets
Signed URLs for what a job produced
Signs and does not proxy: fetch the URLs directly.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
idstringrequired
Signed URLs for what a job produced
curl --request GET \
  --url 'https://api.auray.ai/v1/jobs/{id}/assets' \
  --header 'Authorization: Bearer <api-key>'
{
  "id": "<string>",
  "object": "<string>",
  "product": "<string>",
  "expires_at": "<string>",
  "megabytes_charged": 123,
  "assets": [
    {
      "index": 123,
      "kind": "<string>",
      "filename": "<string>",
      "content_type": "<string>",
      "bytes": 123,
      "url": "<string>"
    }
  ]
}
Signed URLs for what a job produced
curl https://api.auray.ai/v1/jobs/photo_docs-mtpb1vnh/assets \
  -H "Authorization: Bearer $AURAY_API_KEY"
{
  "id": "<string>",
  "object": "<string>",
  "product": "<string>",
  "expires_at": "<string>",
  "megabytes_charged": 123,
  "assets": [
    {
      "index": 123,
      "kind": "<string>",
      "filename": "<string>",
      "content_type": "<string>",
      "bytes": 123,
      "url": "<string>"
    }
  ]
}

Authorizations

Authorizationstringheaderrequired

Bearer auray_sk_… — assets:read. Signing is metered as egress, once per call; fetching a signed link is not counted.

Path Parameters

idstringrequired

Response

application/json

OK

idstring
objectstring
One of "asset_list".
productstring
external covers every model somebody else runs, each at its own address. chat is accepted and delivers no webhook event: a chat turn is answered by the request that paid for it. One of "photo", "music", "video", "threed", "chat", "external".
expires_atstring
May be null.
megabytes_chargedinteger
assetsobject[]
Show child attributes
indexinteger
kindstring
filenamestring
content_typestring
bytesinteger
May be null.
urlstring
A URL.

Headers:

HeaderDescription
RateLimit-LimitBurst capacity.
RateLimit-Remaining
RateLimit-ResetSeconds until refill.
X-RateLimit-Limit
X-RateLimit-Remaining
X-RateLimit-ResetUnix seconds. The X- spelling is what client libraries read.
X-Request-Id

Was this page helpful?

Signed URLs for what a job produced
curl https://api.auray.ai/v1/jobs/photo_docs-mtpb1vnh/assets \
  -H "Authorization: Bearer $AURAY_API_KEY"
{
  "id": "<string>",
  "object": "<string>",
  "product": "<string>",
  "expires_at": "<string>",
  "megabytes_charged": 123,
  "assets": [
    {
      "index": 123,
      "kind": "<string>",
      "filename": "<string>",
      "content_type": "<string>",
      "bytes": 123,
      "url": "<string>"
    }
  ]
}

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close search.