REST API for Looma.chat — AI-powered e-commerce search & chat platform. Manage leads, chats, products, visitors, webhooks, and more.
Contact
Servers
List leads
Returns a paginated list of leads with optional filters. Requires leads:read scope. With format=flat each item is a FlatLead.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Query Parameters
Filter by site ID
Filter by lead status
"new""in_progress""done""rejected"Search in lead text, email, phone
Filter by assigned operator ID
Filter by channel ID
Response shape. flat returns every lead as a flat record (the same object the lead.created webhook sends) — contacts, products and site as top-level fields. Omit for the default shape. Any other value returns 422.
"flat"Start date (YYYY-MM-DD)
"date"End date (YYYY-MM-DD)
"date"Page number
11Items per page (max 100)
110030Responses
List of leads
Export leads as CSV
Returns a CSV file with leads data. Max 10,000 rows. Dynamic collected_fields are included as additional columns. Requires leads:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Query Parameters
Filter by site ID
"new""in_progress""done""rejected"Start date (YYYY-MM-DD)
"date"End date (YYYY-MM-DD)
"date"Responses
CSV file
Get lead details
Returns full lead details including collected fields, visitor info, and assigned operator. Requires leads:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Lead ID
Responses
Lead details
Update lead
Update lead status or assigned operator. Changes are recorded in lead history. Requires leads:write scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Request Body
Responses
Lead updated
Get lead comments
Returns comments for a lead, ordered by creation date. Requires leads:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Responses
List of comments
Add lead comment
Add a comment to a lead. Requires leads:write scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Request Body
Responses
Comment added
Get lead history
Returns change history for a lead (status changes, assignments). Requires leads:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Responses
Lead history
List chat sessions
Returns a paginated list of chat sessions with filters. Requires chats:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Query Parameters
Filter by site ID
Filter by channel
"ai""waiting_operator""operator""closed"Search in messages
Start date (YYYY-MM-DD)
"date"End date (YYYY-MM-DD)
"date"Page number
11Items per page (max 100)
110030Responses
List of chats
Get chat session
Returns chat session details including visitor info and status. Requires chats:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Session ID (e.g. session_xxx or tg_1_12345)
Responses
Chat session
Get chat messages
Returns paginated messages for a chat session. Requires chats:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Query Parameters
Filter by sender
"client""ai""operator"Page number
11Items per page (max 100)
110030Responses
Messages list
Send message
Send a message as an operator to a chat session. Requires chats:write scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Request Body
Responses
Message sent
Transfer chat to operator
Transfer a chat session from AI to operator mode. Requires chats:write scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Responses
Chat transferred
Close chat session
Close an active chat session. Requires chats:write scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Responses
Chat closed
Upload file to chat
Upload a file to a chat session. The file is stored on CDN and a message with the attachment is created. Requires chats:write scope. Max 100 MB.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Request Body
File to upload
"binary"Optional text message to accompany the file
Responses
File uploaded
Get file metadata
Returns file metadata and CDN URL by UUID. Requires chats:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
File UUID (32 hex characters)
"^[a-f0-9]{32}$"Responses
File metadata
List products
Returns a paginated list of products for a site. site_id is required. Requires products:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Query Parameters
Site ID (required)
"in stock""out of stock"Search in title, description
Sort field
"asc""desc""desc"Page number
11Items per page (max 100)
110030Responses
Products list
Get product details
Returns a single product by internal ID. site_id query param is required. Requires products:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Internal product ID
Query Parameters
Responses
Product details
List visitors
Returns a paginated list of visitors (contacts) with filters. Requires visitors:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Query Parameters
Search by name, email, phone
"widget""telegram""viber""facebook""instagram"Start date (YYYY-MM-DD)
"date"End date (YYYY-MM-DD)
"date""display_name""email""phone""source""total_sessions""total_messages""first_seen_at""last_seen_at""country_name""city""region""last_seen_at""asc""desc""desc"Page number
11Items per page (max 100)
110030Responses
Visitors list
Get visitor details
Returns visitor contact info and activity stats. Requires visitors:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Visitor ID
Responses
Visitor details
Update visitor contact info
Update display name, email, phone, or notes for a visitor. Requires visitors:write scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Request Body
Responses
Visitor updated
List sites
Returns all sites owned by the authenticated client. Requires sites:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Query Parameters
Include product counts
"0""1""0"Responses
Sites list
Get site details
Returns a single site by ID. Requires sites:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Responses
Site details
Channels
Messaging channels (Telegram, Viber, Facebook, Instagram, Email)
Operations
List channels
Returns all channels (Telegram, Viber, Facebook, Instagram) for the authenticated client. Requires sites:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Responses
Channels list
Get channel details
Returns a single channel by ID. Requires sites:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Responses
Channel details
Get credit balance
Returns current credit balance and USD equivalent. Requires balance:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Responses
Balance info
Get usage history
Returns credit usage aggregated by date, site, and task type. Requires balance:read scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Query Parameters
"today""week""month""year""all""month"Filter by site ID
Page number
11Items per page (max 100)
110030Responses
Usage data
List webhooks
Returns all webhooks for the authenticated client. Requires webhooks:manage scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Responses
Webhooks list
Create webhook
Create a new outbound webhook. A signing secret is generated automatically and returned once. Max 20 webhooks per client. Requires webhooks:manage scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Request Body
Responses
Webhook created. The secret is returned only once — save it, it cannot be read again.
Delete webhook
Permanently delete a webhook. Requires webhooks:manage scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Responses
Webhook deleted
Update webhook
Update webhook URL, events, or active status. Requires webhooks:manage scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Request Body
Responses
Webhook updated
Test webhook
Send a test payload to the webhook URL. Returns the response status and body from the target server. Requires webhooks:manage scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Responses
Test result
Get delivery log
Returns recent delivery attempts for a webhook with response status and errors. Requires webhooks:manage scope.
Authorizations
API key in format lm_xxxxxxxxxxxxxxxx. Get your key at app.looma.chat/integrations.
Parameters
Path Parameters
Query Parameters
Page number
11Items per page (max 100)
110030Responses
Deliveries list

