Getting Started

The WhatsApp Business API in the Integrari system enables businesses to communicate with their customers using the popular messaging platform. It provides a convenient and familiar way for customers to connect with businesses, offering features like chat, media sharing, and automated messaging.

Languages
Servers
https://api.integrari.com/

Send Authentication Message

Request

Headers
accountIdstring

Account Id of the customer

Body
templateIdstring

templateId

wabaIdstring

wabaId

recipientstring

recipient

curl -i -X POST \
  https://api.integrari.com/o/wab/v1.0/send-auth-message \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'accountId: string' \
  -d '{
    "templateId": "string",
    "wabaId": "string",
    "recipient": "string"
  }'

Responses

Created

Response
{ "errorCode": 996, "errorDescription": "Unable to find currency. Currency code should be expressed with 3-letter ISO 4217 format.", "message": "No CommerceCurrency exists with the key {groupId=41811, code=US Dollar}", "status": 404 }

Upload Media

Request

Headers
accountIdstring

Account Id of the customer

Bodymultipart/form-data
wabaIdstring

wabaId

mediaFilestring or null(binary)
curl -i -X POST \
  https://api.integrari.com/o/wab/v1.0/upload/media \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: multipart/form-data' \
  -H 'accountId: string' \
  -F wabaId=string \
  -F mediaFile=string

Responses

Created

Response
{ "errorCode": 996, "errorDescription": "Unable to find currency. Currency code should be expressed with 3-letter ISO 4217 format.", "message": "No CommerceCurrency exists with the key {groupId=41811, code=US Dollar}", "status": 404 }

List Templates

Request

Query
wabaIdstring

wabaId

templateIdstring

templateId

Headers
accountIdstring

Account Id of the customer

curl -i -X GET \
  'https://api.integrari.com/o/wab/v1.0/template-list?templateId=string&wabaId=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'accountId: string'

Responses

The request has succeeded

Body
dataobject
Response
{ "data": {} }

Delete a Template

Request

Query
idstring

Id

Headers
accountIdstring

Account Id of the customer

curl -i -X DELETE \
  'https://api.integrari.com/o/wab/v1.0/template/delete?id=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'accountId: string'

Responses

The request has succeeded

Body
dataobject
Response
{ "data": {} }

Create Marketing Template

Request

Headers
accountIdstring

Account Id of the customer

Body
namestring

name

languageCodestring

languageCode

categorystring

category

wabaIdstring

wabaId

typestring

type

interactiveActionstring

interactiveAction

headerobject

header

bodyobject

body

footerstring

footer

buttonsArray of objects

buttons

curl -i -X POST \
  https://api.integrari.com/o/wab/v1.0/create/marketing-template \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'accountId: string' \
  -d '{
    "name": "string",
    "languageCode": "string",
    "category": "string",
    "wabaId": "string",
    "type": "string",
    "interactiveAction": "string",
    "header": {
      "format": "string",
      "text": "string",
      "value": [
        "string"
      ],
      "property1": {},
      "property2": {}
    },
    "body": {
      "text": "string",
      "value": [
        "string"
      ],
      "property1": {},
      "property2": {}
    },
    "footer": "string",
    "buttons": [
      {
        "property1": {},
        "property2": {}
      }
    ]
  }'

Responses

Created

Response
{ "errorCode": 996, "errorDescription": "Unable to find currency. Currency code should be expressed with 3-letter ISO 4217 format.", "message": "No CommerceCurrency exists with the key {groupId=41811, code=US Dollar}", "status": 404 }

Update Marketing Template

Request

Headers
accountIdstring

Account Id of the customer

Body
idstring

id

wabaIdstring

wabaId

typestring

type

interactiveActionstring

interactiveAction

headerobject

header

bodyobject

body

footerstring

footer

buttonsArray of objects

buttons

curl -i -X PATCH \
  https://api.integrari.com/o/wab/v1.0/update/marketing-template \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'accountId: string' \
  -d '{
    "id": "string",
    "wabaId": "string",
    "type": "string",
    "interactiveAction": "string",
    "header": {
      "format": "string",
      "text": "string",
      "value": [
        "string"
      ],
      "property1": {},
      "property2": {}
    },
    "body": {
      "text": "string",
      "value": [
        "string"
      ],
      "property1": {},
      "property2": {}
    },
    "footer": "string",
    "buttons": [
      {
        "text": "string",
        "type": "string",
        "example": "string"
      }
    ]
  }'

Responses

Created

Response
{ "errorCode": 996, "errorDescription": "Unable to find currency. Currency code should be expressed with 3-letter ISO 4217 format.", "message": "No CommerceCurrency exists with the key {groupId=41811, code=US Dollar}", "status": 404 }

Template Languages

Request

curl -i -X GET \
  https://api.integrari.com/o/wab/v1.0/languages \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

The request has succeeded

Body
dataobject
Response
{ "data": {} }