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:read
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
}
}
}
Value for the Authorization header parameter.
The collection page number
The number of items per page
0 <= x <= 100
ApiToken collection
The response is of type object
.
Was this page helpful?