Create or Map Twilio data for a dealer
ApiScope: manage.dealer.write
API Scope Level: DepartmentScope
Path Parameters
ServiceSubscriberDepartment string required
application/json
Request Body required
subAccountSID string
subAccountAuthToken string
phoneNumber string
provisionNumber boolean
createSubAccount boolean
mapSecondaryNumber boolean
statusCallbackUrl string
Responses
- 200
- 400
- 401
- 403
- 500
OK
application/json
application/x-protobuf
Schema
Example (from schema)
Schema
errors object[]
warnings object[]
apiRequestId string
requestUuid string
{
"errors": [
{
"errorCode": 0,
"errorTitle": "string",
"errorMessage": "string"
}
],
"warnings": [
{
"warningCode": 0,
"warningTitle": "string",
"warningMessage": "string"
}
],
"apiRequestId": "string",
"requestUuid": "string"
}
Schema
Example (from schema)
Schema
errors object[]
warnings object[]
apiRequestId string
requestUuid string
{
"errors": [
{
"errorCode": 0,
"errorTitle": "string",
"errorMessage": "string"
}
],
"warnings": [
{
"warningCode": 0,
"warningTitle": "string",
"warningMessage": "string"
}
],
"apiRequestId": "string",
"requestUuid": "string"
}
Bad Request
application/json
Schema
Example (from schema)
Schema
errors object[]
warnings object[]
apiRequestId string
{
"errors": [
{
"errorCode": 0,
"errorTitle": "string",
"errorMessage": "string"
}
],
"warnings": [
{
"warningCode": 0,
"warningTitle": "string",
"warningMessage": "string"
}
],
"apiRequestId": "string"
}
Unauthorized
application/json
Schema
Example (from schema)
Schema
errors object[]
warnings object[]
apiRequestId string
{
"errors": [
{
"errorCode": 0,
"errorTitle": "string",
"errorMessage": "string"
}
],
"warnings": [
{
"warningCode": 0,
"warningTitle": "string",
"warningMessage": "string"
}
],
"apiRequestId": "string"
}
Forbidden
application/json
Schema
Example (from schema)
Schema
errors object[]
warnings object[]
apiRequestId string
{
"errors": [
{
"errorCode": 0,
"errorTitle": "string",
"errorMessage": "string"
}
],
"warnings": [
{
"warningCode": 0,
"warningTitle": "string",
"warningMessage": "string"
}
],
"apiRequestId": "string"
}
Internal Server Error
application/json
Schema
Example (from schema)
Schema
errors object[]
warnings object[]
apiRequestId string
{
"errors": [
{
"errorCode": 0,
"errorTitle": "string",
"errorMessage": "string"
}
],
"warnings": [
{
"warningCode": 0,
"warningTitle": "string",
"warningMessage": "string"
}
],
"apiRequestId": "string"
}
POST /v2/department/:ServiceSubscriberDepartment/twilio
Authorization
name: basicAuthtype: httpscheme: basic
Request
Request
curl / cURL
curl -L -X POST '/manage/v2/department/:ServiceSubscriberDepartment/twilio' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"subAccountSID": "string",
"subAccountAuthToken": "string",
"phoneNumber": "string",
"provisionNumber": true,
"createSubAccount": true,
"mapSecondaryNumber": true,
"statusCallbackUrl": "string"
}'
python / requests
curl -L -X POST '/manage/v2/department/:ServiceSubscriberDepartment/twilio' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"subAccountSID": "string",
"subAccountAuthToken": "string",
"phoneNumber": "string",
"provisionNumber": true,
"createSubAccount": true,
"mapSecondaryNumber": true,
"statusCallbackUrl": "string"
}'
go / native
curl -L -X POST '/manage/v2/department/:ServiceSubscriberDepartment/twilio' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"subAccountSID": "string",
"subAccountAuthToken": "string",
"phoneNumber": "string",
"provisionNumber": true,
"createSubAccount": true,
"mapSecondaryNumber": true,
"statusCallbackUrl": "string"
}'
nodejs / axios
curl -L -X POST '/manage/v2/department/:ServiceSubscriberDepartment/twilio' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"subAccountSID": "string",
"subAccountAuthToken": "string",
"phoneNumber": "string",
"provisionNumber": true,
"createSubAccount": true,
"mapSecondaryNumber": true,
"statusCallbackUrl": "string"
}'
ruby / Net::HTTP
curl -L -X POST '/manage/v2/department/:ServiceSubscriberDepartment/twilio' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"subAccountSID": "string",
"subAccountAuthToken": "string",
"phoneNumber": "string",
"provisionNumber": true,
"createSubAccount": true,
"mapSecondaryNumber": true,
"statusCallbackUrl": "string"
}'
csharp / RestSharp
curl -L -X POST '/manage/v2/department/:ServiceSubscriberDepartment/twilio' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"subAccountSID": "string",
"subAccountAuthToken": "string",
"phoneNumber": "string",
"provisionNumber": true,
"createSubAccount": true,
"mapSecondaryNumber": true,
"statusCallbackUrl": "string"
}'
php / cURL
curl -L -X POST '/manage/v2/department/:ServiceSubscriberDepartment/twilio' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"subAccountSID": "string",
"subAccountAuthToken": "string",
"phoneNumber": "string",
"provisionNumber": true,
"createSubAccount": true,
"mapSecondaryNumber": true,
"statusCallbackUrl": "string"
}'
java / OkHttp
curl -L -X POST '/manage/v2/department/:ServiceSubscriberDepartment/twilio' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"subAccountSID": "string",
"subAccountAuthToken": "string",
"phoneNumber": "string",
"provisionNumber": true,
"createSubAccount": true,
"mapSecondaryNumber": true,
"statusCallbackUrl": "string"
}'
powershell / RestMethod
curl -L -X POST '/manage/v2/department/:ServiceSubscriberDepartment/twilio' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"subAccountSID": "string",
"subAccountAuthToken": "string",
"phoneNumber": "string",
"provisionNumber": true,
"createSubAccount": true,
"mapSecondaryNumber": true,
"statusCallbackUrl": "string"
}'