Skip to main content
GET
/
auth
/
verify
Verify Token
curl --request GET \
  --url https://api.example.com/auth/verify \
  --header 'Authorization: <authorization>'
{
  "error": "<string>"
}

Request

Authorization
string
required
The authentication token to verify

Response

Success Response

Returns HTTP status 200 with no body when the token is valid.

Error Responses

error
string
Error message describing what went wrong

401 Unauthorized

Returned when no token is provided in the Authorization header.
{
  "error": "Unauthorized: No token provided"
}

403 Forbidden

Returns HTTP status 403 with no body when the token is invalid or expired.

500 Internal Server Error

Returned when an unexpected error occurs during token verification.
{
  "error": "An unexpected error occurred. Please try again later."
}

Examples

curl -X GET https://api.planttogether.com/auth/verify \
  -H "Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

Build docs developers (and LLMs) love