Order Phone Number
Create a TN Order
POST https://api.opentact.org/rest/order
This API allows you to place a TN order
Query Parameters
Name
Type
Description
TN*
number
Need to add the TN number
FEATURES*
string
This field is to define the features you want to activate for this TN. Opentact supports the following feature values now:
[ "voice", "sms" ]
autorenew*
boolean
If "true", then Opentact will auto renew this TN every month. Otherwise, Opentact will release the TN when the TN expires after a month.
Headers
Name
Type
Description
Authorization*
JWT_Token
Content-Type
string
application/json
{
"success": false,
"message": "string",
"status": 500,
"meta": "string",
"fields": {
"params.to": {
"message": "invalid integer number",
"value": "qwerty123456789"
}
}
}{
"success": true,
"payload": {
"uuid": "c5cc6326-0023-43d8-81a5-e7b7e019919d",
"state": "success",
"created_on": "2022-06-21T05:58:48.500Z",
"modified_on": "2022-06-21T05:58:48.500Z",
"total": 10,
"success": 10,
"processing": 0,
"failed": 0
}
}{
"success": false,
"message": "string",
"status": 500,
"meta": "string",
"fields": {
"params.to": {
"message": "invalid integer number",
"value": "qwerty123456789"
}
}
{
"success": false,
"message": "string",
"status": 500,
"meta": "string",
"fields": {
"params.to": {
"message": "invalid integer number",
"value": "qwerty123456789"
}
}
}Last updated
Was this helpful?