Approve a version (or withdraw approval)
const url = 'https://shareout.site/v1/home/approvals';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"artifactId":"example","versionId":"example","approved":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://shareout.site/v1/home/approvals \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "artifactId": "example", "versionId": "example", "approved": true }'Records that the caller approved a version — the live one unless versionId is given. Approvals are a record shown in History and Details, not a publish gate. Needs comment access (owner, collaborator, internal member of a workspace- or public-visible artifact, or a comment grant). The only REST path for approvals; session cookie or Bearer token.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
A version id (ver_…); defaults to the live version.
false withdraws the caller’s approval.
Responses
Section titled “Responses”Review state after the change
object
Caller may resolve, assign and approve.
object
Version ids the caller (any linked account) approved.
Examplegenerated
{ "live_version_id": "example", "live_version_no": 1, "can_review": true, "approvals": [ { "version_id": "example", "version_no": 1, "user_id": "example", "name": "example", "email": "example", "created_at": "2026-04-15T12:00:00Z" } ], "my_approvals": [ "example" ]}Invalid request
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}FORBIDDEN — you need comment access to approve
NOT_FOUND (artifact) or VERSION_NOT_FOUND
