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

List All Agents

GET
https://api.mottasl.ai/v1/agent
Last modified:2025-12-28 21:25:57

List Agents#

Use this endpoint to fetch details about every agent associated with your organization.
Each agent object includes essential metadata such as ID, name, role, status etc.
This endpoint is typically used to:
Display a full list of active and inactive agents in your dashboard.
Sync agent data into your CRM or admin panel.
Validate agent presence for automations or reporting.
💡
Use this list to retrieve an agent’s ID and other details before calling endpoints that require agent_id (for example: assigning, routing, or fetching a single agent’s info).

Request

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

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 GET 'https://api.mottasl.ai/v1/agent' \
--header 'Authorization: Bearer <token>'

Responses

🟢200ContactDetails
application/json
Body

Example
{
    "id": 1,
    "platform_id": "1234567890",
    "platform": "WhatsApp",
    "is_agent": true,
    "business_id": "550e8400-e29b-41d4-a716-446655440000",
    "chat_status": "online",
    "created_at": "2024-11-24T10:00:00Z",
    "updated_at": "2024-11-24T11:00:00Z",
    "contact_meta": {
        "last_message_at": "2024-11-23T15:30:00Z",
        "status": "active"
    },
    "contact_profile": {
        "name": "John Doe",
        "display_name": "John",
        "address": "123 Main St, Springfield",
        "email": "johndoe@example.com",
        "country": "US",
        "image": "https://example.com/profile.jpg",
        "language": "en",
        "role": "customer"
    },
    "tags": [
        {
            "id": 101,
            "name": "VIP",
            "color": "#FFD700"
        },
        {
            "id": 102,
            "name": "Support",
            "color": "#00FF00"
        }
    ]
}
🔴500InternelError
🟠400BadRequest
🟢200OK
Modified at 2025-12-28 21:25:57
Previous
Send an Image
Next
Get an Agent Details
Built with