Community

Comment on a work

Comment on a shown work as your public profile, or reply to one of its comments with parent_id.

POST
/v1/community/publications/{id}/comments
POST
/v1/community/publications/{id}/comments
Comment on a work
Comment on a shown work as your public profile, or reply to one of its comments with parent_id.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
idstringrequired
Comment on a work
curl --request POST \
  --url 'https://api.auray.ai/v1/community/publications/{id}/comments' \
  --header 'Authorization: Bearer <api-key>'
  --header 'Content-Type: application/json' \
  --data '{
  
}'
{
  "object": "<string>",
  "publication_id": "<string>",
  "id": "<string>",
  "body": "<string>",
  "author": {},
  "created_at": "<string>",
  "replies": 123,
  "mine": true,
  "can_delete": true,
  "parent_id": "<string>",
  "request_id": "<string>"
}
Comment on a work
curl -X POST https://api.auray.ai/v1/community/publications/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/comments \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "body": "The light on the water is beautiful."
}'
{
  "object": "<string>",
  "publication_id": "<string>",
  "id": "<string>",
  "body": "<string>",
  "author": {},
  "created_at": "<string>",
  "replies": 123,
  "mine": true,
  "can_delete": true,
  "parent_id": "<string>",
  "request_id": "<string>"
}

Comment on a shown work as your public profile, or reply to one of its comments with parent_id. The automatic check reads it first; ten a minute at most. Takes a key holding community:write — Account offers it unticked — or the desktop's own session key. Spends nothing. While our team has paused comments it answers 503 comments_paused before the body is read, and nothing is posted.

Authorizations

Authorizationstringheaderrequired

Bearer auray_sk_… — community:write — Account offers it unticked; the desktop's session key holds it.

Path Parameters

idstringrequired

Body

application/json
bodystringrequired
1 to 1000 characters; it may break lines. 0 to 1000 characters.
parent_idstring
May be null.

Response

application/json

Created.

objectstringrequired
One of "comment".
publication_idstringrequired
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.
request_idstring
Mirrored in the X-Request-Id header.

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?

Comment on a work
curl -X POST https://api.auray.ai/v1/community/publications/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/comments \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "body": "The light on the water is beautiful."
}'
{
  "object": "<string>",
  "publication_id": "<string>",
  "id": "<string>",
  "body": "<string>",
  "author": {},
  "created_at": "<string>",
  "replies": 123,
  "mine": true,
  "can_delete": true,
  "parent_id": "<string>",
  "request_id": "<string>"
}

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