curl -X GET \
/user/api-tokens \
--header "Authorization: Bearer <token>"{
"data": [
{
"id": "A1B2C3D4E5F6G7H8I9J0",
"description": "My API token",
"expiresAt": "2021-01-01T00:00:00+00:00",
"createdAt": "2021-01-01T00:00:00+00:00",
"updatedAt": "2021-01-01T00:00:00+00:00",
"apiToken": "**********"
}
],
"meta": {
"pagination": {
"totalItems": 123,
"itemsPerPage": 123,
"currentPage": 123,
"lastPage": 123,
"pageTotalItems": 123
}
}
}Get all api tokens
Required permissions:user:api-token:readcurl -X GET \
/user/api-tokens \
--header "Authorization: Bearer <token>"{
"data": [
{
"id": "A1B2C3D4E5F6G7H8I9J0",
"description": "My API token",
"expiresAt": "2021-01-01T00:00:00+00:00",
"createdAt": "2021-01-01T00:00:00+00:00",
"updatedAt": "2021-01-01T00:00:00+00:00",
"apiToken": "**********"
}
],
"meta": {
"pagination": {
"totalItems": 123,
"itemsPerPage": 123,
"currentPage": 123,
"lastPage": 123,
"pageTotalItems": 123
}
}
}Value for the Authorization header parameter.
The collection page number
The number of items per page
0 <= x <= 100ApiToken collection
Show child attributes
"A1B2C3D4E5F6G7H8I9J0"
Description of the API token
"My API token"
Date and time when the API token expires. If null, the token never expires.
"2021-01-01T00:00:00+00:00"
The date and time when the resource was created.
"2021-01-01T00:00:00+00:00"
The date and time when the resource was last updated.
"2021-01-01T00:00:00+00:00"
Redacted API token
"**********"
Was this page helpful?