Reviews

Approve a review

Approves a draft, or copy_override in its place, and returns the reviews still waiting. A reply is sent at once on the channel the person last wrote on; a sequence message goes out in the next send window, within the sender’s limits, and the lead’s sequence moves on. Send an Idempotency-Key header to make a retry safe.

POST
/reviews/{id}/approve

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

idempotency-keystring

Any unique string of 1 to 255 characters, such as a UUID, that makes a retry safe: a repeat with the same key and input does nothing again and returns the current state, while the same key with another input, or before the first request finished, is refused. Keys last 24 hours per workspace.

Path Parameters

idstringrequired

Review id, from the review queue.

Body

application/json
copy_overridestring

Text to send instead of the draft, at most the review's max_length characters; surrounding spaces are trimmed. Needed when a reply has no draft yet.

Response

application/json

Success

reviewsobject[]required

Up to 50 reviews by when they came in: replies and sequence messages together, oldest first unless order says newest.

countintegerrequired

How many reviews are waiting in the workspace, whatever the filters; can be more than the reviews returned.

next_cursorstring | nullrequired

Pass as cursor for the next page; null on the last page.