Get the information of the user's token in the region.
GET {{baseUrl}}/v1/token
What
Obtain the list of all the token attributes of the current user in the selected region. The purpose of this function is to show the current values of the user's quota.
Parameters
No parameters are required. The token is obtained automatically from the Bearer
in the header.
Result
The result is a JSON object with the following fields:
- self
: the URI to individual token information.
- region_id
: the name of the region where the token is valid.
- last_month_bucket_init_value
: the initial value of the monthly bucket.
- last_month_bucket_value
: the current value of consumed quota in the monthly bucket.
- last_month_bucket_refresh
: Unix timestamp in milliseconds of the next monthly bucket reset.
- last_minute_bucket_init_value
: the initial value of the per minute bucket.
- last_minute_bucket_value
: the current value of consumed quota in the per minute bucket.
- last_minute_bucket_refresh
: Unix timestamp in milliseconds of the next per minute bucket reset.
- last_minute_bucket_refill_ratio
: the number of tokens to add every second to the per minute bucket.
- status
: the status of the token. The only allowed value is ENABLED
.
- created_at
: the date and time when the token was created in UNIX timestamp in milliseconds.
- updated_at
: the date and time when the token was last updated in UNIX timestamp in milliseconds.
Errors
It will return the API Global errors described in the API description.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"self":"nisi labore","region_id":"sint in nisi Lorem","last_month_bucket_init_value":-32770420,"last_month_bucket_value":94551449,"last_month_bucket_refresh":-68330444,"last_minute_bucket_init_value":-48492935,"last_minute_bucket_refill_ratio":79189734,"last_minute_bucket_value":-86832713,"last_minute_bucket_refresh":-66306199,"status":"ENABLED","created_at":57278909,"updated_at":-82626410}