Skip to content

Toggle Expert Approval

Toggle the authenticated expert's approval status. Only available when sandbox mode is enabled (APP_SANDBOX=true).

HTTP Request

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

Response

200 OK

Returns a message indicating the new approval status.

json
{
  "data": {
    "message": "Expert is now approved."
  }
}

Or when toggled off:

json
{
  "data": {
    "message": "Expert is now unapproved."
  }
}

Error Handling

401 Unauthorized

json
{
  "message": "Unauthenticated."
}

403 Forbidden — The authenticated user is not an expert.

404 Not Found — Sandbox mode is not enabled.