- API reference
- Moderation
Approve or decline a post
POSThttps://app.notert.io/api/v1/moderation/cases/{id}/review
Approves or declines a case as the token's holder, as the Review page does, and as many times as it is sent decides it once: a case decided already as asked answers as the first call did, and one decided the other way is ALREADY_DECIDED. Approving puts a waiting post on the public board and tells who hears of new posts, keeps a flagged one there, and puts an appealed one back; it is refused for a post edited since it was read (EDITED_SINCE_READ) and while a report to Notert holds it (HELD_FOR_NOTERT). Declining needs a reason and takes the post off the board, kept on record for its author, who may be emailed why. Only owners and admins moderate (FORBIDDEN otherwise).
A token with moderation:manage. How to send one
Request
curl -X POST https://app.notert.io/api/v1/moderation/cases/3b9d5f7a-1c2e-4a6b-8d0f-2e4c6a8b0d1f/review \
-H "Authorization: Bearer $NOTERT_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"decision": "decline",
"postEditedAt": "2026-11-10 14:05:00.123456",
"reason": {
"category": "spam",
"note": "Sells watches"
}
}'Response 200
{
"id": "3b9d5f7a-1c2e-4a6b-8d0f-2e4c6a8b0d1f",
"requestId": "8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40",
"commentId": null,
"outcome": "declined"
}Path parameters
idstringRequiredThe case, by its id from the queue.
At most 64 characters.
Body
decisionstringRequiredapprove: a waiting post goes on the board, a flagged one stays there and its case closes, and an appealed one is put back. decline: the post comes off the board, kept on record for its author, who is emailed why unless it is spam.
One ofapprovedeclinepostEditedAtstring or nullThe case's postEditedAt as the queue answered it, for an approval, so a post edited since isn't approved unread. Left out, an approval is refused for a post edited at all.
At most 40 characters.
reasonobjectWhy it is declined, which a decline needs and its author is told: its category, and a note for other. Left out when approving.
categorystringRequiredWhy it was declined: spam, harassment, hate, sexual, violence, personal_info (someone's personal information), off_topic or other (which the note explains).
One ofspamharassmenthatesexualviolencepersonal_infooff_topicothernotestringA few words on why, which only the team reads. Worth giving for other.
At most 500 characters.
Response 200
idstringThe case's id, which a review takes.
requestIdstringThe request posted, or the one the comment is on.
commentIdstring or nullThe comment posted, null when the post is a request.
outcomestringHow the case was decided.
One ofapproveddeclined
Errors
- 400
BAD_REQUESTInput validation failed. - 400
REASON_NEEDEDA decline needs a reason. - 401
UNAUTHORIZEDSend a valid API token as a Bearer token. - 403
FORBIDDENThe teammate who holds this API token's secret can't review posts. Only an owner or admin can. - 403
HOLDER_NOT_ALLOWEDThe teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. - 403
INSUFFICIENT_SCOPEThis API token can't review posts held for moderation. Create one that may in the workspace's settings. - 403
NETWORK_NOT_ALLOWEDThis API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. - 403
NO_SEATThis workspace's plan has no seat for you. - 403
WORKSPACE_SUSPENDEDThis workspace is suspended. - 404
NOT_FOUNDNot Found. - 409
ALREADY_DECIDEDThis case was decided the other way already. data.outcome says how. Its data holdsoutcome. - 409
CHANGED_MEANWHILESomething changed meanwhile. Try again. - 409
EDITED_SINCE_READThe post was edited since you read it, so it wasn't approved. List it again, read what it says now, and send its postEditedAt. - 409
HELD_FOR_NOTERTA report to Notert holds this post, so it can't be approved. It can still be declined. - 429
TOO_MANY_REQUESTSToo Many Requests. Its data holdsretryAfter.
A refusal names its code beside a message. Rate limits says when to try again.