Messaging Profile

CreateMessagingProfile

POST https://api.opentact.org/rest/profile/messaging

This will create a new messaging profile

Headers

Name
Type
Description

X-Auth-Token

string

JWT_TOKEN

Content-Type

string

application/json

Request Body

Name
Type
Description

name

string

[ 1 .. 255 ] characters A user-assigned name to help manage the messaging profile.

callback_url

string

[ 10 .. 255 ] characters Primary webhook callback url

number_pool_enable

string

[ 10 .. 255 ] characters Secondary webhook url (if primary can't be reached)

long_code_weight

integer

[ 0 .. 9 ] characters

toll_free_weight

integer

[ 0 .. 9 ] characters

skip_unhealthy_tns

boolean

sticky_sender

boolean

{
  "success": true,
  "payload": {
    "created_on": "2019-08-24T14:15:22Z",
    "modified_on": "2019-08-24T14:15:22Z",
    "uuid": "string",
    "name": "string",
    "callback_url": "string",
    "callback_url2": "string",
    "number_pool_enable": true,
    "long_code_weight": 0,
    "tollfree_weight": 0,
    "skip_unhealthy_tns": true,
    "sticky_sender": true,
    "account": {
      "created_on": "2019-08-24T14:15:22Z",
      "modified_on": "2019-08-24T14:15:22Z",
      "uuid": "string",
      "name": "string",
      "email": "string",
      "level": "ServiceAccount",
      "balance": 0,
      "class4_id": 0,
      "deleted_on": "2019-08-24T14:15:22Z",
      "time_zone": {},
      "users": [],
      "admin": {},
      "messaging_profile_default": {},
      "messaging_profiles": [],
      "addresses": []
    },
    "created_by": {
      "created_on": "2019-08-24T14:15:22Z",
      "modified_on": "2019-08-24T14:15:22Z",
      "uuid": "string",
      "email": "string",
      "password": "string",
      "phone_number": "string",
      "first_name": "string",
      "last_name": "string",
      "avatar": "string",
      "gender": "Agender",
      "dob": "2019-08-24T14:15:22Z",
      "role": "Admin",
      "gmail_user_id": "string",
      "facebook_user_id": "string",
      "apple_user_id": "string",
      "wechat_user_id": "string",
      "deleted_on": "2019-08-24T14:15:22Z",
      "token": "string",
      "account": {}
    },
    "modified_by": {
      "created_on": "2019-08-24T14:15:22Z",
      "modified_on": "2019-08-24T14:15:22Z",
      "uuid": "string",
      "email": "string",
      "password": "string",
      "phone_number": "string",
      "first_name": "string",
      "last_name": "string",
      "avatar": "string",
      "gender": "Agender",
      "dob": "2019-08-24T14:15:22Z",
      "role": "Admin",
      "gmail_user_id": "string",
      "facebook_user_id": "string",
      "apple_user_id": "string",
      "wechat_user_id": "string",
      "deleted_on": "2019-08-24T14:15:22Z",
      "token": "string",
      "account": {}
    },
    "leases": [
      {}
    ]
  }
}

Code Example

ModifyMessagingProfile

PATCH https://api.opentact.org/rest/profile/messaging/{uuid}

This will update a messaging profile

Path Parameters

Name
Type
Description

uuid

string

^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Headers

Name
Type
Description

X-Auth-Token

string

JWT_TOKEN

Content-Type

string

application/json

Request Body

Name
Type
Description

name

string

[ 1 .. 255 ] characters A user-assigned name to help manage the messaging profile.

callback_url

string

[ 10 .. 255 ] characters Primary webhook callback url

number_pool_enable

string

[ 10 .. 255 ] characters Secondary webhook url (if primary can't be reached)

long_code_weight

integer

[ 0 .. 9 ] characters

toll_free_weight

integer

[ 0 .. 9 ] characters

skip_unhealthy_tns

boolean

sticky_sender

boolean

Code Example

RemoveMessagingProfileByUUID

DELETE https://api.opentact.org/rest/profile/messaging

Get extended messaging profile info

Path Parameters

Name
Type
Description

uuid

string

^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Headers

Name
Type
Description

X-Auth-Token

string

JWT_TOKEN

Code Example

ListMessagingProfiles

GET https://api.opentact.org/rest/profile/messaging

This will return a list of all messaging profiles

Headers

Name
Type
Description

X-Auth-Token

string

JWT_TOKEN

Code Example

GetMessagingProfileByUUID

GET https://api.opentact.org/rest/profile/messaging

Get extended messaging profile info

Path Parameters

Name
Type
Description

uuid

string

^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Headers

Name
Type
Description

X-Auth-Token

string

JWT_TOKEN

Code Example

GetMessagingProfileLeasesByUUID

GET https://api.opentact.org/rest/profile/messaging/

Get leases list linked to Messaging profile

Path Parameters

Name
Type
Description

uuid

string

^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Headers

Name
Type
Description

X-Auth-Token

string

JWT_TOKEN

Code Example

Last updated