Skip to content

Check Token

Verify if the current authentication token is valid.

Endpoint

POST /v1/accounts/check/token/

Authentication

Required

Request Body

No body required. The token is extracted from the Authorization header.

Response

Success (204 No Content)

Empty response body indicates the token is valid.

Error Responses

Unauthorized (401)

{
  "error": "Missing token on header!"
}

or

{
  "error": "token is not active!"
}

Example Request

curl -X POST "https://api.luxmart.site/v1/accounts/check/token/" \
  -H "Authorization: Token your_access_token"

Notes

  • This endpoint is useful for checking token validity before making other API calls
  • Returns 204 (No Content) if token is valid
  • Returns 401 if token is invalid or expired