Contacts, Contact Group & Profile API

OAuth 2.0 API Endpoint

https://sms.infopromo.digital/api/v3/

HTTP API Endpoint

https://sms.infopromo.digital/api/http/

Your API Token

{Obtain it from your SMS portal}

Alternatively, you can find all the FREE APIs in the developer section of our various portals after a FREE account opening.

Contacts API

Infopromo Communications – Bulk SMS Marketing Contacts API helps you manage contacts that are identified by a unique random ID. Using this ID, you can create, view, update, or delete contacts. This API works as a collection of customer-specific contacts that allows you to group them and assign custom values that you can later use when sending SMS template messages.

The Contacts API uses HTTP verbs and a RESTful endpoint structure with an access key that is used as the API Authorization. Request and response payloads are formatted as JSON using UTF-8 encoding and URL encoded values.

API Endpoint

Markup
https://sms.infopromo.digital/api/v3/contacts
Parameters
ParameterRequiredDescription
Authorization
Yes
When calling our API, send your api token with the authentication type set as Bearer (Example: Authorization: Bearer {api_token})
Accept
Yes
Set to application/json
Create a contact

Creates a new contact object. Infopromo Communications – Bulk SMS Marketing returns the created contact object with each request.

API Endpoint

Markup
https://sms.infopromo.digital/api/v3/contacts/{group_id}/store
Parameters
ParameterRequiredTypeDescription
group_id
Yes
stringContact Groups uid
PHONE
Yes
numberThe phone number of the contact.
OTHER_FIELDS
No
stringAll Contact’s other fields: FIRST_NAME (?), LAST_NAME (?),… (depending on the contact group fields configuration)
Example request
PHP
curl -X POST https://sms.infopromo.digital/api/v3/contacts/6065ecdc9184a/store \
-H 'Authorization: Bearer {your api_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"PHONE":"8801721970168",
"FIRST_NAME":"Jhon",
"LAST_NAME":"Doe",
}'
Returns

Returns a contact object if the request is successful.

JSON
{
    "status": "success",
    "data": "contacts data with all details",
}

If the request fails, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
View a contact

Retrieves the information of an existing contact. You only need to supply the unique contact uid and group uid that was returned upon creation or receiving.

API Endpoint

Markup
https://sms.infopromo.digital/api/v3/contacts/{group_id}/search/{uid}
Parameters
ParameterRequiredTypeDescription
group_id
Yes
stringContact Groups uid
uid
Yes
stringContact uid
Example request
PHP
curl -X POST https://sms.infopromo.digital/api/v3/contacts/6065ecdc9184a/search/606732aec8705 \
-H 'Authorization: Bearer {your api_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "contacts data with all details",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
Update a contact

Updates an existing contact. You only need to supply the unique uid of contact and contact group uid that was returned upon creation.

API Endpoint

Markup
https://sms.infopromo.digital/api/v3/contacts/{group_id}/update/{uid}
Parameters
ParameterRequiredTypeDescription
group_id
Yes
stringContact Groups uid
uid
Yes
stringContact uid
PHONE
Yes
numberThe phone number of the contact.
OTHER_FIELDS
No
stringAll Contact’s other fields: FIRST_NAME (?), LAST_NAME (?),… (depending on the contact group fields configuration)
Example request
PHP
curl -X PATCH https://sms.infopromo.digital/api/v3/contacts/6065ecdc9184a/update/606732aec8705 \
-H 'Authorization: Bearer {your api_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"PHONE":"8801721970168",
"FIRST_NAME":"Jhon",
"LAST_NAME":"Doe",
}'
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "contacts data with all details",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
Delete a contact

Deletes an existing contact. You only need to supply the unique contact uid and group uid that was returned upon creation.

API Endpoint

Markup
https://sms.infopromo.digital/api/v3/contacts/{group_id}/delete/{uid}
Parameters
ParameterRequiredTypeDescription
group_id
Yes
stringContact Groups uid
uid
Yes
stringContact uid
Example request
PHP
curl -X DELETE https://sms.infopromo.digital/api/v3/contacts/6065ecdc9184a/delete/606732aec8705 \
-H 'Authorization: Bearer {your api_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
Returns

Returns a contact object if the request is successful.

JSON
{
    "status": "success",
    "data": "contacts data with all details",
}

If the request fails, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
View all contacts in group

API Endpoint

Markup
https://sms.infopromo.digital/api/v3/contacts/{group_id}/all
Parameters
ParameterRequiredTypeDescription
group_id
Yes
stringContact Groups uid
Example request
PHP
curl -X POST https://sms.infopromo.digital/api/v3/contacts/6065ecdc9184a/all \
-H 'Authorization: Bearer {your api_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "contacts data with pagination",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
Contacts API

Infopromo Communications – Bulk SMS Marketing Contacts API helps you manage contacts that are identified by a unique random ID. Using this ID, you can create, view, update, or delete contacts. This API works as a collection of customer-specific contacts that allows you to group them and assign custom values that you can later use when sending SMS template messages.

The Contacts API uses HTTP verbs and a RESTful endpoint structure with an access key that is used as the API Authorization. Request and response payloads are formatted as JSON using UTF-8 encoding and URL encoded values.

API Endpoint

Markup
https://sms.infopromo.digital/api/http/contacts
Parameters
ParameterRequiredDescription
api_token
Yes
API Token From Developers option. Get API Token
Accept
Yes
Set to application/json
Content-Type
Yes
Set to application/json
Create a contact

Creates a new contact object. Infopromo Communications – Bulk SMS Marketing returns the created contact object with each request.

API Endpoint

Markup
https://sms.infopromo.digital/api/http/contacts/{group_id}/store
Parameters
ParameterRequiredTypeDescription
group_id
Yes
stringContact Groups uid
PHONE
Yes
numberThe phone number of the contact.
OTHER_FIELDS
No
stringAll Contact’s other fields: FIRST_NAME (?), LAST_NAME (?),… (depending on the contact group fields configuration)
Example request
PHP
curl -X POST https://sms.infopromo.digital/api/http/contacts/6065ecdc9184a/store \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"api_token":"{your api_token}"
, "PHONE":"8801721970168", "FIRST_NAME":"Jhon", "LAST_NAME":"Doe", }'
Returns

Returns a contact object if the request is successful.

JSON
{
    "status": "success",
    "data": "contacts data with all details",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
View a contact

Retrieves the information of an existing contact. You only need to supply the unique contact uid and group uid that was returned upon creation or receiving.

API Endpoint

Markup
https://sms.infopromo.digital/api/http/contacts/{group_id}/search/{uid}
Parameters
ParameterRequiredTypeDescription
group_id
Yes
stringContact Groups uid
uid
Yes
stringContact uid
Example request
PHP
curl -X POST https://sms.infopromo.digital/api/http/contacts/6065ecdc9184a/search/606732aec8705 \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"api_token":"{your api_token}"}'
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "contacts data with all details",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
Update a contact

Updates an existing contact. You only need to supply the unique uid of contact and contact group uid that was returned upon creation.

API Endpoint

Markup
https://sms.infopromo.digital/api/http/contacts/{group_id}/update/{uid}
Parameters
ParameterRequiredTypeDescription
group_id
Yes
stringContact Groups uid
uid
Yes
stringContact uid
PHONE
Yes
numberThe phone number of the contact.
OTHER_FIELDS
No
stringAll Contact’s other fields: FIRST_NAME (?), LAST_NAME (?),… (depending on the contact group fields configuration)
Example request
PHP
curl -X PATCH https://sms.infopromo.digital/api/http/contacts/6065ecdc9184a/update/606732aec8705 \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"api_token":"{your api_token}", "PHONE":"8801721970168", "FIRST_NAME":"Jhon", "LAST_NAME":"Doe", }'
Returns

Returns a contact object if the request is successful.

JSON
{
    "status": "success",
    "data": "contacts data with all details",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
Delete a contact

Deletes an existing contact. You only need to supply the unique contact uid and group uid that was returned upon creation.

API Endpoint

Markup
https://sms.infopromo.digital/api/http/contacts/{group_id}/delete/{uid}
Parameters
ParameterRequiredTypeDescription
group_id
Yes
stringContact Groups uid
uid
Yes
stringContact uid
Example request
PHP
curl -X DELETE https://sms.infopromo.digital/api/http/contacts/6065ecdc9184a/delete/606732aec8705 \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"api_token":"{your api_token}"
}'
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "contacts data with all details",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}

View all contacts in group

API Endpoint

Markup
https://sms.infopromo.digital/api/http/contacts/{group_id}/all
Parameters
ParameterRequiredTypeDescription
group_id
Yes
stringContact Groups uid
Example request
PHP
curl -X POST https://sms.infopromo.digital/api/http/contacts/6065ecdc9184a/all \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"api_token":"{your api_token}"
}'
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "contacts data with pagination",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
Contact groups API

Infopromo Communications – Bulk SMS Marketing Contact Groups API allows you to manage contact groups that are identified by a unique random ID. Use this ID to create, view, update or delete groups.

API Endpoint

Markup
https://sms.infopromo.digital/api/v3/contacts
Parameters
ParameterRequiredDescription
Authorization
Yes
When calling our API, send your api token with the authentication type set as Bearer (Example: Authorization: Bearer {your api_token})
Accept
Yes
Set to application/json
Create a group

Creates a new group object. Infopromo Communications – Bulk SMS Marketing returns the created group object with each request.

API Endpoint

Markup
https://sms.infopromo.digital/api/v3/contacts
Parameters
ParameterRequiredTypeDescription
name
Yes
stringThe name of the group
Example request
PHP
curl -X POST https://sms.infopromo.digital/api/v3/contacts \
-H 'Authorization: Bearer {your api_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"name":"Codeglen"}'
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "group data with all details",
}

If the request fails, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
View a group

Retrieves the information of an existing group. You only need to supply the unique group ID that was returned upon creation or receiving.

API Endpoint

Markup
https://sms.infopromo.digital/api/v3/contacts/{group_id}/show/
Parameters
ParameterRequiredTypeDescription
group_id
Yes
stringContact Groups uid
Example request
PHP
curl -X POST https://sms.infopromo.digital/api/v3/contacts/6065ecdc9184a/show \
-H 'Authorization: Bearer {your api_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
Returns

Returns a contact object if the request is successful.

JSON
{
    "status": "success",
    "data": "group data with all details",
}

If the request fails, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
Update a group

Updates an existing group. You only need to supply the unique ID that was returned upon creation.

API Endpoint

Markup
https://sms.infopromo.digital/api/v3/contacts/{group_id}
Parameters
ParameterRequiredTypeDescription
group_id
Yes
stringContact Groups uid
name
Yes
stringNew group name
Example request
PHP
curl -X PATCH https://sms.infopromo.digital/api/v3/contacts/6065ecdc9184a \
-H 'Authorization: Bearer {your api_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"name":"Codeglen Update"}'
Returns

Returns a contact object if the request is successful.

JSON
{
    "status": "success",
    "data": "groups data with all details",
}

If the request fails, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
Delete a group

Deletes an existing group. You only need to supply the unique id that was returned upon creation.

API Endpoint

Markup
https://sms.infopromo.digital/api/v3/contacts/{group_id}
Parameters
ParameterRequiredTypeDescription
group_id
Yes
stringContact Groups uid
Example request
PHP
curl -X DELETE https://sms.infopromo.digital/api/v3/contacts/6065ecdc9184a \
-H 'Authorization: Bearer {your api_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "null",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
View all groups

API Endpoint

Markup
https://sms.infopromo.digital/api/v3/contacts/
Example request
PHP
curl -X GET https://sms.infopromo.digital/api/v3/contacts \
-H 'Authorization: Bearer {your api_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "group data with pagination",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
Contact groups API

Infopromo Communications – Bulk SMS Marketing Contact Groups API allows you to manage contact groups that are identified by a unique random ID. Use this ID to create, view, update or delete groups.

API Endpoint

Markup
https://sms.infopromo.digital/api/http/contacts
Parameters
ParameterRequiredDescription
api_token
Yes
API Token From Developers option. Get API Token
Accept
Yes
Set to application/json
Content-Type
Yes
Set to application/json
Create a group

Creates a new group object. Infopromo Communications – Bulk SMS Marketing returns the created group object with each request.

API Endpoint

Markup
https://sms.infopromo.digital/api/http/contacts
Parameters
ParameterRequiredTypeDescription
name
Yes
stringThe name of the group
Example request
PHP
curl -X POST https://sms.infopromo.digital/api/http/contacts \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"name":"Codeglen",
"api_token":"{your api_token}"
}'
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "group data with all details",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
View a group

Retrieves the information of an existing group. You only need to supply the unique group ID that was returned upon creation or receiving.

API Endpoint

Markup
https://sms.infopromo.digital/api/http/contacts/{group_id}/show/
Parameters
ParameterRequiredTypeDescription
group_id
Yes
stringContact Groups uid
Example request
PHP
curl -X POST https://sms.infopromo.digital/api/http/contacts/6065ecdc9184a/show \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"api_token":"{your api_token}"}'
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "group data with all details",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
Update a group

Updates an existing group. You only need to supply the unique ID that was returned upon creation.

API Endpoint

Markup
https://sms.infopromo.digital/api/http/contacts/{group_id}
Parameters
ParameterRequiredTypeDescription
group_id
Yes
stringContact Groups uid
name
Yes
stringNew group name
Example request
PHP
curl -X PATCH https://sms.infopromo.digital/api/http/contacts/6065ecdc9184a \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"name":"Infopromo Group","api_token":"{your api_token}"}'
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "groups data with all details",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
Delete a group

Deletes an existing group. You only need to supply the unique id that was returned upon creation.

API Endpoint

Markup
https://sms.infopromo.digital/api/http/contacts/{group_id}
Parameters
ParameterRequiredTypeDescription
group_id
Yes
stringContact Groups uid
Example request
PHP
curl -X DELETE https://sms.infopromo.digital/api/http/contacts/6065ecdc9184a \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"api_token":"{your api_token}"}'
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "null",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
View all groups

API Endpoint

Markup
https://sms.infopromo.digital/api/http/contacts/
Example request
PHP
curl -X GET https://sms.infopromo.digital/api/http/contacts \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"api_token":"{your api_token}"}'
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "group data with pagination",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
Profile API

Infopromo Communications – Bulk SMS Marketing Profile API allows you to retrieve your total remaining sms unit, used sms unit, and your profile information.

API Endpoint

Markup
https://sms.infopromo.digital/api/v3/me
Parameters
ParameterRequiredDescription
Authorization
Yes
When calling our API, send your api token with the authentication type set as Bearer (Example: Authorization: Bearer {your api_token})
Accept
Yes
Set to application/json
View sms unit

API Endpoint

Markup
https://sms.infopromo.digital/api/v3/balance
Example request
PHP
curl -X GET https://sms.infopromo.digital/api/v3/balance \
-H 'Authorization: Bearer {your api_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "sms unit with all details",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
View Profile

API Endpoint

Markup
https://sms.infopromo.digital/api/v3/me
Example request
PHP
curl -X GET https://sms.infopromo.digital/api/v3/me \
-H 'Authorization: Bearer {your api_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "profile data with all details",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
Profile API

Infopromo Communications – Bulk SMS Marketing Profile API allows you to retrieve your total remaining sms unit, used sms unit, and your profile information.

API Endpoint

Markup
https://sms.infopromo.digital/api/http/me
Parameters
ParameterRequiredDescription
api_token
Yes
API Token From Developers option. Get API Token
Accept
Yes
Set to application/json
Content-Type
Yes
Set to application/json
View sms unit

API Endpoint

Markup
https://sms.infopromo.digital/api/http/balance
Example request
PHP
curl -X GET https://sms.infopromo.digital/api/http/balance \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"api_token":"{your api_token}"
}'
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "sms unit with all details",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
View Profile

API Endpoint

Markup
https://sms.infopromo.digital/api/http/me
Example request
PHP
curl -X GET https://sms.infopromo.digital/api/http/me \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"api_token":"{your api_token}"
}'
Returns

Returns a contact object if the request was successful.

JSON
{
    "status": "success",
    "data": "profile data with all details",
}

If the request failed, an error object will be returned.

JSON
{
    "status": "error",
    "message" : "A human-readable description of the error."
}