Verify the current API token
GET /auth/verify/
What It Does
Check that a token is valid before enabling an integration or showing API features in your own UI.
Authentication
Requires an API token with the read scope. Send it as a bearer token or with the configured API key header.
Parameters
This endpoint does not define query or path parameters.
Request Body
This endpoint does not require a JSON request body.
Responses
| Status | Meaning | Description | Body |
|---|---|---|---|
200 | Success | Token details | AuthVerifyEnvelope |
401 | Authentication required | Missing or invalid API token | WpRestError |
Request Example
curl -X GET "https://example.com/wp-json/thebooking/v1/API/auth/verify/" \
-H "Authorization: Bearer $TBK_API_TOKEN"
Success Response Example
{
"status": "OK",
"response": {
"name": "Example name",
"scopes": [
"read"
],
"siteUrl": "string"
}
}