Skip to main content

JWT Validation

Use this API to validate a JWT token. The validation endpoint is available via both HTTP GET and HTTP POST.

Endpoint: /api/v1/auth/validate

The JWT can be passed in one of two ways:

MethodExample
Authorization headerAuthorization: Bearer {JWT}
URL query parameter?_jwt={JWT}

Both methods work with either GET or POST requests.


Validate via GET

# Using Authorization header
curl -X GET https://app.filespin.io/api/v1/auth/validate \
-H "Authorization: Bearer {JWT}"

# Using _jwt query parameter
curl -X GET "https://app.filespin.io/api/v1/auth/validate?_jwt={JWT}"

Validate via POST

# Using Authorization header
curl -X POST https://app.filespin.io/api/v1/auth/validate \
-H "Authorization: Bearer {JWT}"

# Using _jwt query parameter
curl -X POST "https://app.filespin.io/api/v1/auth/validate?_jwt={JWT}"

Response

Status CodeDescription
200Successful operation — token is valid
401Unauthorized — invalid or missing authentication
403Forbidden — insufficient permissions
500Internal server error