Community

Read a profile's collections

A profile's public collections. Its creator, reading with a key that holds community:write, sees the private ones too. Takes no key. A key that holds community:write reads as its account — its likes and follows filled in — 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.

GET
/v1/community/profiles/{handle}/collections
GET
/v1/community/profiles/{handle}/collections
Read a profile's collections
A profile's public collections.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
handlestringrequired
Read a profile's collections
curl --request GET \
  --url 'https://api.auray.ai/v1/community/profiles/{handle}/collections' \
  --header 'Authorization: Bearer <api-key>'
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "title": "<string>",
      "description": "<string>",
      "public": true,
      "items": 123,
      "updated_at": "<string>",
      "mine": true,
      "cover": [
        {
          "role": "<string>",
          "position": 123,
          "url": "<string>",
          "content_type": "<string>",
          "width": 123,
          "height": 123,
          "duration_ms": 123,
          "supplied": true
        }
      ],
      "owner": {}
    }
  ],
  "next_cursor": "<string>",
  "request_id": "<string>"
}
Read a profile's collections
curl https://api.auray.ai/v1/community/profiles/ada/collections
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "title": "<string>",
      "description": "<string>",
      "public": true,
      "items": 123,
      "updated_at": "<string>",
      "mine": true,
      "cover": [
        {
          "role": "<string>",
          "position": 123,
          "url": "<string>",
          "content_type": "<string>",
          "width": 123,
          "height": 123,
          "duration_ms": 123,
          "supplied": true
        }
      ],
      "owner": {}
    }
  ],
  "next_cursor": "<string>",
  "request_id": "<string>"
}

Authorizations

No key needed. A key that holds community:write is read as its account — its likes and follows filled in — and is answered private, no-store. Paced per address, and cached at the edge for thirty seconds.

Path Parameters

handlestringrequired
A profile's handle; one @ before it is read past.

Response

application/json

OK. Every collection on one page.

objectstringrequired
One of "list".
dataobject[]required
Show child attributes
idstringrequired
titlestringrequired
descriptionstringrequired
May be null.
publicbooleanrequired
Shown on its owner's profile.
itemsintegerrequired
Works in it, shown or not.
updated_atstringrequired
minebooleanrequired
coverobject[]required
The newest shown work's files.
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.
ownerobject or null
next_cursorstringrequired
The cursor of the next page; null on the last. May be null.
request_idstring
Mirrored in the X-Request-Id header. On an answer without a key it names the request that filled the edge's copy, so readers served from that copy are handed the same one.

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?

Read a profile's collections
curl https://api.auray.ai/v1/community/profiles/ada/collections
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "title": "<string>",
      "description": "<string>",
      "public": true,
      "items": 123,
      "updated_at": "<string>",
      "mine": true,
      "cover": [
        {
          "role": "<string>",
          "position": 123,
          "url": "<string>",
          "content_type": "<string>",
          "width": 123,
          "height": 123,
          "duration_ms": 123,
          "supplied": true
        }
      ],
      "owner": {}
    }
  ],
  "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.