List all API keys
GET/auth/api_keys
Returns a list of your API keys. Results are paginated to improve retrieval peformance. The meta data indicates how many total records exist.
Request
Query Parameters
include_permission_groups boolean
If false, only ids will be returned, otherwise the nested resources will be returned.
page[number] double
Current page based on pagination settings.
page[size] double
Number of results to return per page based on pagination settings.
Responses
200: Successful response
- application/json
401: Authentication error
- application/json
403: Authorization error
- application/json
422: Invalid parameters supplied in request. See HTTP response body for details.
- application/json
Request samples
curl -L 'https://api.telnyx.com/auth/api_keys' \
-H 'Accept: application/json'
Response samples
{
"data": [
{
"id": "f30e7596-586e-44e1-ae7d-53db10f144d3",
"description": "Tommy's Key",
"secret": "XXXXXXXXXXXXX",
"backup_secret": "XXXXXXXXXXXXX",
"status": "active",
"permission_groups": [
"string"
],
"admin": true,
"record_type": "api_key",
"created_at": "2018-02-08T18:49:22.998023Z",
"updated_at": "2018-02-08T18:49:22.998023Z"
}
],
"meta": {
"total_pages": 13,
"total_results": 13,
"page_number": 3,
"page_size": 1
}
}
{
"errors": [
{
"code": "10001",
"title": "error title",
"detail": "additional detail about the error",
"pointer": "/pointer/to/field"
}
]
}
{
"errors": [
{
"code": "10001",
"title": "error title",
"detail": "additional detail about the error",
"pointer": "/pointer/to/field"
}
]
}
{
"errors": [
{
"code": "10001",
"title": "error title",
"detail": "additional detail about the error",
"pointer": "/pointer/to/field"
}
]
}