Skip to content

Toggle Expert Approval ​

Toggle the authenticated expert's approval status. Only available when sandbox mode is enabled (APP_SANDBOX=true) — and never in production, regardless of the flag.

Newly registered experts are approved by Stripe within seconds on test environments, so this endpoint mainly serves to revoke and re-grant that approval. Granting approval here does not make the expert payable: if their Stripe account cannot receive payments, Checkout Offer answers 409 Conflict.

HTTP Request ​

POST /api/v1/sandbox/me/approval/toggle

Response ​

204 No Content

The response has no body; an approved expert becomes unapproved and vice versa.

Approving mirrors the Stripe account webhook: the expert's hidden offers surface, the client of every open testimony holding one receives the offer email, and pending testimonies holding them move to offered. Unapproving hides the offers again and drops a testimony back to pending when no other approved expert has a live offer on it.

Error Handling ​

401 Unauthorized

json
{
  "message": "Unauthenticated."
}

403 Forbidden — The authenticated user is not an expert.

404 Not Found — Sandbox mode is not enabled, or the environment is production. This is answered before the token is checked, so a disabled sandbox never answers 401.

429 Too Many Requests — more than 120 requests per minute for this user.