List Ips
GET/ips
Get all IPs belonging to the user that match the given filters.
Request
Query Parameters
page[number] integer
Possible values: >= 1
Default value: 1
The page number to load
page[size] integer
Possible values: >= 1
and <= 250
Default value: 250
The size of the page
filter[connection_id] string
ID of the IP Connection to which this IP should be attached.
filter[ip_address] string
IP adddress represented by this resource.
filter[port] integer
Port to use when connecting to this IP.
Responses
200: Successful response with a list of IPs.
- application/json
400: Bad request, the request was unacceptable, often due to missing a required parameter.
- application/json
401: Unauthorized
- application/json
403: The user doesn't have the required permissions to perform the requested action.
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/ips' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"data": [
{
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "ip",
"connection_id": "3456789987654",
"ip_address": "192.168.0.0",
"port": 5060,
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
]
}
{
"errors": [
{
"code": "string",
"detail": "string",
"meta": {
"url": "string"
},
"title": "string",
"source": {
"pointer": "string"
}
}
]
}
{
"errors": [
{
"code": "string",
"detail": "string",
"meta": {
"url": "string"
},
"title": "string",
"source": {
"pointer": "string"
}
}
]
}
{
"errors": [
{
"code": "string",
"detail": "string",
"meta": {
"url": "string"
},
"title": "string",
"source": {
"pointer": "string"
}
}
]
}