Docs

Create new endpoint

https://api.apifonica.com/v2/accounts/{accountSID}/endpoints

Overview

To create a new endpoint you need to make a POST request to /accounts/{accountSID}/endpoints

The table below lists parameters specified while making this request

Input parameters

Parameter

Required?

Description

Default value

name

yes

name of the endpoint

none

ip

yes

IP address of your PBX

none

Required

yes

Description

name of the endpoint

Default value

none

Required

yes

Description

IP address of your PBX

Default value

none

Request example

The following example demonstrates creating an Endpoint with the TestEndpoint name.

curl –X POST ‘https://api.apifonica.com/v2/accounts/{accountSID}/endpoints’ \
-H ‘Content-Type: application/json’ \
-d ‘{ \
     “name”: ”TestEndpoint”, \
     “ip”: “192.168.1.1” \
    }’ \
-u {accountSID}:{authToken}

Response example

{
    "status_code": 201,
    "status_message": "CREATED",
    “uri”: “https://api.apifonica.com/v2/accounts/{accountSID}/endpoints/{endpointSID}”
}