TOKEN_INVALID
The Authorization header is missing, malformed, or the token is not recognised.
typestringauthentication_error
statusnumber401
What happened
The API could not authenticate your request. This happens when the Authorization header is absent, does not use the Bearer scheme, or the token does not match any active token in the system.
{
"error": {
"type": "authentication_error",
"code": "TOKEN_INVALID",
"message": "Missing token",
"status": 401,
"doc_url": "https://docs.thewitn.com/docs/errors/token-invalid"
}
}How to fix
Include a valid API token in every request using the Bearer scheme:
curl -X POST https://api.thewitn.com/v1/events \
-H "Authorization: Bearer <your_token>"Your token stays viewable in the dashboard, so you can copy it again at any time. Generating a new token replaces the old one.