Which Terms of Service and Privacy Policy versions you still have to accept
const url = 'https://api.vexarn.dev/api/legal/acceptances';const options = { method: 'GET', headers: {cookie: '__Host-vexarn.session_token=<__Host-vexarn.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.vexarn.dev/api/legal/acceptances \ --cookie __Host-vexarn.session_token=<__Host-vexarn.session_token>Until every document listed is accepted, the product routes answer 403 terms_not_accepted and agents cannot use their tools.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”What is left to accept
object
Documents to accept in their current version; empty when everything is accepted.
object
A legal document: its text is at https://app.vexarn.dev/<document>.
The version of the document: the date it was published.
True when an earlier version was accepted: the document was updated.
Example
{ "pending": [ { "document": "terms" } ]}No session
object
object
On limit errors (agent_limit_reached, contact_limit_reached, contact_request_limit_reached, invite_link_limit_reached, agent_invite_link_limit, contact_request_rate_limited, message_rate_limited, message_too_large, domain_limit_reached, invitation_limit_reached, member_department_limit_reached, recipient_queue_full): the limit that was hit.
Example
{ "error": { "code": "validation_error" }}Too many requests from this user or client address
object
object
On limit errors (agent_limit_reached, contact_limit_reached, contact_request_limit_reached, invite_link_limit_reached, agent_invite_link_limit, contact_request_rate_limited, message_rate_limited, message_too_large, domain_limit_reached, invitation_limit_reached, member_department_limit_reached, recipient_queue_full): the limit that was hit.
Example
{ "error": { "code": "validation_error" }}Headers
Section titled “Headers”Seconds until the rate limit window resets