Skip to Content
API Reference/v1/info/token

Token Information

Description

This endpoint is used to provide the client information about the API token used in the request. This includes the user email, expiration, and usage.

It is available at the following URL.

https://api.intelsentry.io/v1/info/token

Input Params

None.


HTTP Methods

  • GET: Used to retrieve the information of the token.

Example Request

GET https://api.intelsentry.io/v1/info/token Authorization: Bearer <token>

Example Response

HTTP/1.1 200 Content-Type: application/json { "status": 200, "token_name": "test", "token_user": "test@example.com", "token_created_at": 1742615833248, "token_expires_at": -1, "token_usage": 8 }

Note that a value of -1 for token_expires_at means the token never expires, until it is manually deleted by the user in the dashboard. Moreover, the token_usage property indicates the amount of successful searches executed with the token (not related to the consumed search tokens).


Status Codes


Status CodeDescription
200The token information was correctly returned
Last updated on