Get Agent Details
GET
https://api.mottasl.ai/v1/agent/{id}
Last modified:2024-11-25 16:09:32
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
string
required
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 GET 'https://api.mottasl.ai/v1/agent/'
Responses
🟢200ContactDetails
application/json
Body
id
integer
required
platform_id
string
required
platform
string
required
is_agent
boolean
required
business_id
string
required
chat_status
string
required
created_at
string
required
updated_at
string
required
contact_meta
object
required
last_message_at
string
required
status
string
required
contact_profile
object
required
name
string
required
display_name
string
required
address
string
required
email
string
required
country
string
required
image
string
required
language
string
required
role
string
required
tags
array [object {3}]
required
id
integer
required
name
string
required
color
string
required
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 2024-11-25 16:09:32