API Reference · Guest sessions
Revoke Guest Session
Revoke the current guest session
DELETE
/v1/guest-sessions/currentFree (guest token or account)
cURL example
cURL request
curl -X DELETE "https://api.verifiedinbox.ai/v1/guest-sessions/current" \
-H "VI-Guest-Token: vi_guest_YOUR_TOKEN"Parameters
| Parameter | Type | Description |
|---|---|---|
VI-Environmentheader | string | `live` (default) or `test`. Used for anonymous callers and OAuth access tokens; API keys and web sessions carry their own environment. |
Response
204 OKRevoked.
No contentOther responses & possible errors
Expand a status code below to see the error code, description, and example error payload.
401 (unauthenticated)`unauthenticated` — sign in / send a valid credential. `next_action.kind = sign_in`.
`unauthenticated` — sign in / send a valid credential. `next_action.kind = sign_in`.
Example 401 error response
{
"error": {
"code": "unauthenticated",
"message": "Sign in or provide an API key to continue.",
"next_action": {
"kind": "sign_in",
"title": "Sign in or create an account",
"url": "/login"
}
}
}429 (rate_limited)`rate_limited` — retry after `Retry-After` seconds (`details.retry_after_seconds`). `limit_reached` — a quota is used up; `details.limit` names it and `next_action` offers support.
`rate_limited` — retry after `Retry-After` seconds (`details.retry_after_seconds`). `limit_reached` — a quota is used up; `details.limit` names it and `next_action` offers support.
Example 429 error response
{
"error": {
"code": "rate_limited",
"message": "Too many requests. Please wait a moment and try again."
}
}Was it helpful?