Community

Read a work's comments

A page of a work's comments, newest first — or with parent, one comment's replies, oldest first.

GET
/v1/community/publications/{id}/comments
GET
/v1/community/publications/{id}/comments
Read a work's comments
A page of a work's comments, newest first — or with parent, one comment's replies, oldest first.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
idstringrequired
parentstring
A comment's id: read its replies.
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.
Read a work's comments
curl --request GET \
  --url 'https://api.auray.ai/v1/community/publications/{id}/comments' \
  --header 'Authorization: Bearer <api-key>'
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "body": "<string>",
      "author": {},
      "created_at": "<string>",
      "replies": 123,
      "mine": true,
      "can_delete": true,
      "parent_id": "<string>"
    }
  ],
  "next_cursor": "<string>",
  "request_id": "<string>"
}
Read a work's comments
curl https://api.auray.ai/v1/community/publications/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/comments
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "body": "<string>",
      "author": {},
      "created_at": "<string>",
      "replies": 123,
      "mine": true,
      "can_delete": true,
      "parent_id": "<string>"
    }
  ],
  "next_cursor": "<string>",
  "request_id": "<string>"
}

A page of a work's comments, newest first — or with parent, one comment's replies, oldest first. Comments go one level deep. 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.

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

idstringrequired

Query Parameters

parentstring
A comment's id: read its replies.
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
bodystringrequired
authorobject or nullrequired
created_atstringrequired
repliesintegerrequired
minebooleanrequired
Written by the reader.
can_deletebooleanrequired
The reader may delete it: its author, or the author of the work it is on.
parent_idstring
The comment it replies to, on a comment just written. May be 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 work's comments
curl https://api.auray.ai/v1/community/publications/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/comments
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "body": "<string>",
      "author": {},
      "created_at": "<string>",
      "replies": 123,
      "mine": true,
      "can_delete": true,
      "parent_id": "<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.