Shopee TokensCheck token health

Check token health

Returns the token health for a shop accessible to the authenticated user.

curl -X GET "http://localhost:8080/api/token/health?shop_id=123" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)"
{
  "shop_id": 123,
  "has_token": true,
  "expires_at": "2024-12-25T10:00:00Z",
  "is_expired": true
}
GET
/api/token/health
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

JWT access token, or refresh token for the token refresh endpoint.

JWT access token, or refresh token for the token refresh endpoint.
query
shop_idinteger
Required

Shop identifier.

Format: int64
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT access token, or refresh token for the token refresh endpoint.

Query Parameters

shop_idinteger
Required

Shop identifier.

Responses

shop_idinteger
Required

Shop identifier.

has_tokenboolean
Required

Whether a token exists.

expires_atstring
Required

Token expiration timestamp.

is_expiredboolean
Required

Whether the token is expired.