Azeer API
  1. Contacts
Azeer API
  • API Authentication
  • APIs
    • Agents
      • Create Agent
      • Update Agent
      • Get Agent Details
    • Contacts
      • Create Contact
        POST
      • Create Bulk Contacts
        POST
    • Messages
      • Send Message
      • Delete Message
      • Delete Bulk Messages
    • Webhooks
      • Webhooks
      • List all webhooks
      • Get Webhook Details
      • Create Webhook
      • Delete Webhook
    • App
      • Create User Session
  1. Contacts

Create Contact

POST
https://api.mottasl.ai/v1/contact/create
Contactscreate
Last modified:2024-11-25 15:46:16
Create a new single/multiple contact, You can create up to 1000 contact per bulck bach

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
mode
string 
required
In sync mode, you can create up to 15 contacts per batch.
In async mode, you can create up to 1000 contacts per batch.
contacts
array[object (ContactObject) {8}] 
required
Array of Contacts, the acceptable contacts count is depend on the mode value.
platform_id
string 
required
The platform_id serves as the identifier for the specified platform type. For WhatsApp, it will correspond to the phone number.
platform
string 
required
The platform type, Only whatsapp is available for now.
image_url
string 
optional
profile_name
string 
required
profile_display_name
string 
required
profile_email
string 
optional
country_code
string 
required
tags
array[integer]
optional
Array of tags ids
Example
{
    "mode": "string",
    "contacts": [
        {
            "platform_id": "string",
            "platform": "string",
            "image_url": "string",
            "profile_name": "string",
            "profile_display_name": "string",
            "profile_email": "string",
            "country_code": "string",
            "tags": [
                0
            ]
        }
    ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mottasl.ai/v1/contact/create' \
--header 'Content-Type: application/json' \
--data-raw '{
    "mode": "string",
    "contacts": [
        {
            "platform_id": "string",
            "platform": "string",
            "image_url": "string",
            "profile_name": "string",
            "profile_display_name": "string",
            "profile_email": "string",
            "country_code": "string",
            "tags": [
                0
            ]
        }
    ]
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
🟠400BadRequest
Modified at 2024-11-25 15:46:16
Previous
Get Agent Details
Next
Create Bulk Contacts
Built with