Community

List a published project's assets

A page of a published project's assets — all of them, or one folder's — in the project's order, each with its files, model, licence text and AI-generated mark, and its prompt only while its author …

GET
/v1/community/publications/{id}/assets
GET
/v1/community/publications/{id}/assets
List a published project's assets
A page of a published project's assets — all of them, or one folder's — in the project's order, each with its files, model, licence text and AI-generated mark, and its prompt only while its author …
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
idstringrequired
folderstring
all (the default), generations, uploads, or a folder's id from the page's folders.
cursorstring
The next_cursor the previous page answered, unchanged, with the same filters. None for the first page. 0 to 200 characters.
limitinteger
How many on a page. 1 to 60.
List a published project's assets
curl --request GET \
  --url 'https://api.auray.ai/v1/community/publications/{id}/assets' \
  --header 'Authorization: Bearer <api-key>'
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "kind": "<string>",
      "title": "<string>",
      "folder_id": "<string>",
      "media": [
        {
          "role": "<string>",
          "position": 123,
          "url": "<string>",
          "content_type": "<string>",
          "width": 123,
          "height": 123,
          "duration_ms": 123,
          "supplied": true
        }
      ],
      "prompt": "<string>",
      "model": {
        "address": "<string>",
        "id": "<string>",
        "label": "<string>"
      },
      "attribution": "<string>",
      "ai_generated": true,
      "created_at": "<string>"
    }
  ],
  "next_cursor": "<string>",
  "request_id": "<string>"
}
List a published project's assets
curl https://api.auray.ai/v1/community/publications/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/assets
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "kind": "<string>",
      "title": "<string>",
      "folder_id": "<string>",
      "media": [
        {
          "role": "<string>",
          "position": 123,
          "url": "<string>",
          "content_type": "<string>",
          "width": 123,
          "height": 123,
          "duration_ms": 123,
          "supplied": true
        }
      ],
      "prompt": "<string>",
      "model": {
        "address": "<string>",
        "id": "<string>",
        "label": "<string>"
      },
      "attribution": "<string>",
      "ai_generated": true,
      "created_at": "<string>"
    }
  ],
  "next_cursor": "<string>",
  "request_id": "<string>"
}

A page of a published project's assets — all of them, or one folder's — in the project's order, each with its files, model, licence text and AI-generated mark, and its prompt only while its author shows prompts. Seen as its page is. Takes no key. A key that holds community:write reads as its account — its likes filled in, and its author told where it stands in mine — and any other key reads what a stranger reads; either way a request with a key is answered for itself alone and kept in no shared cache. An answer without a key is the same for every reader, its request_id included — which names the request that filled the edge's copy — and carries no RateLimit-* headers, since they would describe that request's sender. Cached at the edge for thirty seconds with two minutes of stale service.

Authorizations

No key needed — this document is public.

Path Parameters

idstringrequired

Query Parameters

folderstring
all (the default), generations, uploads, or a folder's id from the page's folders.
cursorstring
The next_cursor the previous page answered, unchanged, with the same filters. None for the first page. 0 to 200 characters.
limitinteger
How many on a page. 1 to 60.

Response

application/json

OK.

objectstringrequired
One of "list".
dataobject[]required
Show child attributes
idstringrequired
The asset's own public id. Report it as a publication: the report is about the project, with the asset named.
kindstringrequired
One of "image", "video", "audio", "model3d".
titlestringrequired
May be null.
folder_idstringrequired
A member's folder of the page's folders, or null. May be null.
mediaobject[]required
Show child attributes
rolestringrequired
primary is the work as it was made; the rest are what the feeds draw: an image's thumbnail, a video's or a model's poster and thumbnail, a song's waveform (JSON: {version, peaks}). One of "primary", "poster", "preview", "thumbnail", "waveform".
positionintegerrequired
urlstringrequired
Where to load it. Kept until its author unpublishes the work. A URL.
content_typestringrequired
widthintegerrequired
May be null.
heightintegerrequired
May be null.
duration_msintegerrequired
May be null.
suppliedbooleanrequired
True for a poster, or its thumbnail, that the work's author supplied rather than one our services made: it is not what the model made, and the work's ai_generated does not describe it.
promptstringrequired
Only while its author shows prompts; a hidden prompt exists nowhere in the answer. May be null.
modelobjectrequired
Show child attributes
addressstringrequired
The model address it was made with, as GET /v1/models lists it: the path a job is submitted to, such as auray-ai/krea-2-turbo/text-to-image. May be null.
idstringrequired
The same model's id, as GET /v1/models lists it: the catalogue slug, such as krea2. May be null.
labelstringrequired
The model's name, as a person reads it. May be null.
attributionstringrequired
The licence text the model's output travels with. Show it wherever the asset is. May be null.
ai_generatedbooleanrequired
A model made it; false for a picture or a clip its author uploaded.
created_atstringrequired
next_cursorstringrequired
May be null.
request_idstring

Headers:

HeaderDescription
Cache-Controlpublic, s-maxage=30, stale-while-revalidate=120 with no key; private, no-store with one.
VaryAuthorization.
RateLimit-LimitBurst capacity, per key, on an answer to a key. An answer without one is cached at the edge and carries none of the RateLimit-* headers; a refusal without one, which is never cached, carries its address's.
RateLimit-Remaining
RateLimit-ResetSeconds until refill.
X-Request-Id

Was this page helpful?

List a published project's assets
curl https://api.auray.ai/v1/community/publications/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/assets
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "kind": "<string>",
      "title": "<string>",
      "folder_id": "<string>",
      "media": [
        {
          "role": "<string>",
          "position": 123,
          "url": "<string>",
          "content_type": "<string>",
          "width": 123,
          "height": 123,
          "duration_ms": 123,
          "supplied": true
        }
      ],
      "prompt": "<string>",
      "model": {
        "address": "<string>",
        "id": "<string>",
        "label": "<string>"
      },
      "attribution": "<string>",
      "ai_generated": true,
      "created_at": "<string>"
    }
  ],
  "next_cursor": "<string>",
  "request_id": "<string>"
}

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