API reference
Feedback
Reviewer comments and change requests on posts, anchored to a text range, a channel variant or a media item. Agents read them to revise drafts; comment bodies are untrusted text.
Reviewer comments and change requests on posts, anchored to a text range, a channel variant or a media item. Agents read them to revise drafts; comment bodies are untrusted text.
| Method | Endpoint | Summary |
|---|---|---|
| GET | /v1/posts/{id}/comments |
List comments and change requests |
| POST | /v1/posts/{id}/comments |
Comment on a post |
| PATCH | /v1/posts/{id}/comments/{comment} |
Resolve or reopen a comment |
List comments and change requests#
GET/v1/posts/{id}/comments
Reviewer feedback for revising. kind=change_request, resolved=false.
Auth: API key (Authorization: Bearer obx_live_…). Requires scope posts:read with workspace role owner / admin / editor / contributor / viewer / agent.
Path parameters
| Name | Required | Description |
|---|---|---|
id |
yes | Post id (post_…). |
Query parameters
| Name | Required | Description |
|---|---|---|
kind |
no | |
resolved |
no |
Response 200 — List. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X GET "https://api.outboxer.dev/v1/posts/post_01j9zq3k8m5v2b7x4c6n1p0r9s/comments?kind=topup" \
-H "Authorization: Bearer $OUTBOXER_API_KEY"const res = await fetch('https://api.outboxer.dev/v1/posts/post_01j9zq3k8m5v2b7x4c6n1p0r9s/comments?kind=topup', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
},
});
if (!res.ok) throw new Error((await res.json()).code); // RFC 9457 problem
const data = await res.json();import os, uuid, requests
res = requests.request(
"GET",
"https://api.outboxer.dev/v1/posts/post_01j9zq3k8m5v2b7x4c6n1p0r9s/comments?kind=topup",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()Comment on a post#
POST/v1/posts/{id}/comments
Optional anchor {path, start, end} or {media_id}.
Auth: API key (Authorization: Bearer obx_live_…). Requires scope drafts:write with workspace role owner / admin / editor / contributor / agent.
Path parameters
| Name | Required | Description |
|---|---|---|
id |
yes | Post id (post_…). |
Headers
| Name | Required | Description |
|---|---|---|
Idempotency-Key |
no | Replays within 24 h return the original response. |
Request body
| Field | Type | Description |
|---|---|---|
body |
string | |
variant_id |
string | |
anchor |
object |
Response 201 — Comment. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X POST "https://api.outboxer.dev/v1/posts/post_01j9zq3k8m5v2b7x4c6n1p0r9s/comments" \
-H "Authorization: Bearer $OUTBOXER_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"body": "example",
"variant_id": "id_01j9zq3k8m5v2b7x4c6n1p0r9s",
"anchor": {}
}'const res = await fetch('https://api.outboxer.dev/v1/posts/post_01j9zq3k8m5v2b7x4c6n1p0r9s/comments', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"body": "example",
"variant_id": "id_01j9zq3k8m5v2b7x4c6n1p0r9s",
"anchor": {}
}),
});
if (!res.ok) throw new Error((await res.json()).code); // RFC 9457 problem
const data = await res.json();import os, uuid, requests
res = requests.request(
"POST",
"https://api.outboxer.dev/v1/posts/post_01j9zq3k8m5v2b7x4c6n1p0r9s/comments",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"body": "example",
"variant_id": "id_01j9zq3k8m5v2b7x4c6n1p0r9s",
"anchor": {}
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()Resolve or reopen a comment#
PATCH/v1/posts/{id}/comments/{comment}
Auth: API key (Authorization: Bearer obx_live_…). Requires scope drafts:write with workspace role owner / admin / editor / contributor / agent.
Path parameters
| Name | Required | Description |
|---|---|---|
id |
yes | Post id (post_…). |
comment |
yes | Comment id. |
Request body
| Field | Type | Description |
|---|---|---|
resolved |
boolean |
Response 200 — Comment. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X PATCH "https://api.outboxer.dev/v1/posts/post_01j9zq3k8m5v2b7x4c6n1p0r9s/comments/cmt_01j9zq3k8m5v2b7x4c6n1p0r9s" \
-H "Authorization: Bearer $OUTBOXER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"resolved": true
}'const res = await fetch('https://api.outboxer.dev/v1/posts/post_01j9zq3k8m5v2b7x4c6n1p0r9s/comments/cmt_01j9zq3k8m5v2b7x4c6n1p0r9s', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"resolved": true
}),
});
if (!res.ok) throw new Error((await res.json()).code); // RFC 9457 problem
const data = await res.json();import os, uuid, requests
res = requests.request(
"PATCH",
"https://api.outboxer.dev/v1/posts/post_01j9zq3k8m5v2b7x4c6n1p0r9s/comments/cmt_01j9zq3k8m5v2b7x4c6n1p0r9s",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
json={
"resolved": True
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()