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:
| Method | Example |
|---|---|
| Authorization header | Authorization: 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 Code | Description |
|---|---|
200 | Successful operation — token is valid |
401 | Unauthorized — invalid or missing authentication |
403 | Forbidden — insufficient permissions |
500 | Internal server error |