Skip to content

Get lead details​

GET
/leads/{id}

Returns full lead details including collected fields, visitor info, and assigned operator. Requires leads:read scope.

Authorizations​

BearerAuth

API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.

Type
HTTP (bearer)

Parameters​

Path Parameters

id*

Lead ID

Type
integer
Required

Responses​

Lead details

application/json
JSON
{
"success": true,
"data": {
"id": 456,
"site_id": 12,
"site_name": "My Shop",
"site_favicon_url": "string",
"session_id": "session_abc123",
"visitor_id": "client_xyz",
"channel_id": 0,
"status": "string",
"lead_text": "Customer interested in Nike Air Max, size 42",
"collected_fields": {
"additionalProperties": "string"
},
"client_name": "John Doe",
"visitor_avatar": "string",
"source": "string",
"channel_name": "string",
"assigned_operator_name": "string",
"assigned_operator_avatar": "string",
"comments_count": 3,
"is_unread": 0,
"created_at": "string",
"updated_at": "string"
}
}

Playground​

Server
Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Looma.chat — AI-пошук і чат для інтернет-магазинів