Networks
A network
instance is a prerequisite for the creation of all other elements.
Here is a sample request:
Request sample
NoteDon't forget to update
YOUR_API_KEY
here.
POST /v2/networks HTTP/1.1
Host: api.telnyx.com
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
Content-Length: 40
{
"name": "my_first_virtual_network"
}
Here is a sample response:
{
"data": {
"created_at": "2024-07-17T15:19:10.640289Z",
"id": "58b42010-de88-4d9b-a164-d0b8170100bc",
"updated_at": "2024-07-17T15:19:10.640289Z",
"name": "my_first_virtual_network",
"record_type": "network"
}
}
API reference is available here.