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 |
port | no | Port number | 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}"
}