VoIP Allowed Client IPs
The IP addresses on the account's allowed list for Customer Origination on the VoIP system.
Schema
Type Object
| Name | Type | Description |
|---|---|---|
address |
String(format:ip) | Desc. address |
id |
String(format:uuid) | Desc. id |
inserted_at |
String(format:date-time) | An ISO8601 formatted timestamp |
name |
String(1..64) | Desc. name |
notes |
String(0..65535) | Any notes about the IP. |
updated_at |
String(format:date-time) | An ISO8601 formatted timestamp |
Desc. address
The IP Address that should be allowed to originate VoIP traffic.
Note. This must be unique, if you encounter issues with loading an IP, please contact support for assistance.
Desc. id
A Universally unique identifier, which identifies the resource
Desc. name
A friendly name to identify the Allowed Client IP
Example
{
"address": "203.0.113.10",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"name": "US ACME Call Relay",
"notes": "US ACME Call Relay Service",
"updated_at": "2021-08-13T04:08:44.762841Z"
}
API
Add VoIP Allowed Client IP
POST /api/v1/voip/allowed_client_ips HTTP/1.1
Add an IP to the VoIP system for Customer Origination allowed listing.
Request application/json
POST /api/v1/voip/allowed_client_ips HTTP/1.1
Accept: application/json
Content-Type: application/json
Content-Length: 130
{
"data": {
"address": "203.0.113.10",
"name": "string",
"notes": "string"
},
"type": "voip_allowed_client_ip"
}
Response 201
application/json
HTTP/1.1 201
Content-Type: application/json
Content-Length: 311
{
"data": {
"address": "203.0.113.10",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"name": "US ACME Call Relay",
"notes": "US ACME Call Relay Service",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "voip_allowed_client_ip"
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Update VoIP Allowed Client IP
PATCH /api/v1/voip/allowed_client_ips/{id} HTTP/1.1
Update an existing VoIP Allowed Client IP's name and notes.
The IP address cannot be changed after creation.
The same operation is also available as:
PUT /api/v1/voip/allowed_client_ips/{id} HTTP/1.1
Path Parameters
| Name | Type | Description |
|---|---|---|
| id | String(format:uuid)! | VoIP Allowed Client IP ID |
Request application/json
PATCH /api/v1/voip/allowed_client_ips/{id} HTTP/1.1
Accept: application/json
Content-Type: application/json
Content-Length: 99
{
"data": {
"name": "string",
"notes": "string"
},
"type": "voip_allowed_client_ip"
}
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 311
{
"data": {
"address": "203.0.113.10",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"name": "US ACME Call Relay",
"notes": "US ACME Call Relay Service",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "voip_allowed_client_ip"
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Delete VoIP Allowed Client IP
DELETE /api/v1/voip/allowed_client_ips/{id} HTTP/1.1
Delete a VoIP Allowed Client IP.
Path Parameters
| Name | Type | Description |
|---|---|---|
| id | String(format:uuid)! | VoIP Allowed Client IP ID |
Request
DELETE /api/v1/voip/allowed_client_ips/{id} HTTP/1.1
Accept: application/json
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 311
{
"data": {
"address": "203.0.113.10",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"name": "US ACME Call Relay",
"notes": "US ACME Call Relay Service",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "voip_allowed_client_ip"
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
List VoIP Allowed Client IPs
GET /api/v1/voip/allowed_client_ips HTTP/1.1
Query Parameters
| Name | Type | Description |
|---|---|---|
| first | Integer | Query Desc. first |
| last | Integer | Query Desc. last |
| after | String | Query Desc. after |
| before | String | Query Desc. before |
Query Desc. first
The number of items to return starting from the 'after' cursor
Query Desc. last
The number of items to return behind the 'before' cursor
Query Desc. after
The cursor representing the starting point of a 'first' based paging
Query Desc. before
The cursor representing the starting point of a 'last' based paging
Request
GET /api/v1/voip/allowed_client_ips HTTP/1.1
Accept: application/json
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 566
{
"count": 1,
"page_info": {
"end_cursor": "YXJyYXljb25uZWN0aW9uOjQ=",
"has_next_page": true,
"has_previous_page": false,
"start_cursor": "YXJyYXljb25uZWN0aW9uOjA="
},
"results": [
{
"data": {
"address": "203.0.113.10",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"name": "US ACME Call Relay",
"notes": "US ACME Call Relay Service",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "voip_allowed_client_ip"
}
]
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Retrieve VoIP Allowed Client by ID
GET /api/v1/voip/allowed_client_ips/{id} HTTP/1.1
Lookup an Allowed Client IP by its ID.
Path Parameters
| Name | Type | Description |
|---|---|---|
| id | String(format:uuid)! | VoIP Allowed Client IP ID |
Request
GET /api/v1/voip/allowed_client_ips/{id} HTTP/1.1
Accept: application/json
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 311
{
"data": {
"address": "203.0.113.10",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"name": "US ACME Call Relay",
"notes": "US ACME Call Relay Service",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "voip_allowed_client_ip"
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
"errors": [
{
"code": "not_found",
"detail": "The specified resource could not be found",
"params": {
"resource": {
"id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
"type": "user"
}
},
"sub_code": "none",
"title": "Not Found"
}
]
}