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

Get an Agent Details

GET
https://api.mottasl.ai/v1/agent/{id}
Last modified:2025-12-28 21:34:19
Use this endpoint to fetch details for a specific agent by providing the agent’s {id} in the path.
It returns the full agent object, including key metadata such as ID, name, role, status etc..
This endpoint is typically used to:
View a single agent’s full profile in your dashboard.
Validate an agent_id before using it in routing, assignment, or automation flows.
Retrieve the latest agent details after updates (e.g., role or status changes).
💡
If you don’t have the agent {id}, call List All Agents API first to get the available agent IDs and basic details.

Request

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

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:34:19
Previous
List All Agents
Next
Assign Contact to an Agent
Built with