List all resource groups
GET/auth/resource_groups
Returns a list of your resource groups. Results are paginated to improve retrieval peformance. The meta data indicates how many total records exist.
Request
Query Parameters
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
Request samples
curl -L 'https://api.telnyx.com/auth/resource_groups' \
-H 'Accept: application/json'
Response samples
{
"data": [
{
"id": "e6746f7c-a375-4c68-937f-bbfc3858d500",
"description": "Tommy's Numbers",
"default": "Tommy's Numbers",
"record_type": "resource_group",
"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"
}
]
}