Azeer API Documentation
  1. Agents
Azeer API Documentation
  • Welcome πŸ‘‹
  • API Authentication
  • API Endpoints
    • Messages
      • Messages Overview
      • Get Templates List
      • Send a Template Message
      • Send a Text Message
      • Send a Document
      • Send an Image
    • Agents
      • List All Agents
        GET
      • Get an Agent Details
        GET
      • Assign Contact to an Agent
        POST
    • Contacts
      • Create a Contact
      • Get Contact Details
    • Webhooks
      • Webhooks Overview
      • List All Webhooks
      • Get Webhook Details
      • Create Webhook
      • Delete Webhook
    • Tags
      • Create a Tag
      • List All Tags
      • Adding Tag to a Contact
  1. Agents

Assign Contact to an Agent

POST
https://api.mottasl.ai/v1/contact/assign
Last modified:2026-01-04 13:53:33

Assign a Contact to an Agent#

Use this endpoint to assign a specific contact to an Agent inside your Business.
The contact is identified using platform_id (the contact’s phone number), and the assignee is identified using assigned_platform_id (the Agent ID).
This endpoint can be used to:
Route a contact to a specific Agent for ownership and follow-up.
Support manual assignment flows in Inbox / Contact Profile views.
Enable automation rules that assign contacts based on routing logic or user input.
πŸ’‘
To get the Agent ID, you must call the Agents listing endpoint first:
Open Agents Listing Endpoint β†’

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/jsonRequired

Example
{
    "platform_id": "966544444444",
    "assigned_platform_id": "omar@twerlo.com"
}

Request Code 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/assign' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "platform_id": "966544444444",
    "assigned_platform_id": "omar@twerlo.com"
}'

Responses

🟒200Success
application/json
Body

Example
{"message":"assignment completed successfully","success":true}
πŸ”΄500InternelError
🟠400BadRequest
Modified atΒ 2026-01-04 13:53:33
Previous
Get an Agent Details
Next
Create a Contact
Built with