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.
In sandbox mode every newly registered expert is approved automatically, so this endpoint mainly serves to revoke and re-grant that approval.
HTTP Request
POST /api/v1/sandbox/me/approval/toggle
Response
200 OK
Returns a message indicating the new approval status.
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.
{
"data": {
"message": "Expert is now approved."
}
}Or when toggled off:
{
"data": {
"message": "Expert is now unapproved."
}
}Error Handling
401 Unauthorized
{
"message": "Unauthenticated."
}403 Forbidden — The authenticated user is not an expert.
404 Not Found — Sandbox mode is not enabled, or the environment is production.
429 Too Many Requests — more than 120 requests per minute for this user.