Retrieves contact information filtered by channel and ordered by field.
Click to expand full details
GET /api/public/analytics/contacts
Name Type Required Description channel
string ✅ The channel to retrieve contacts from (e.g., whatsapp
) orderBy
string ✅ Field to sort by (contact_created_at
) page
number ✅ Page number to retrieve
Name Type Required Description x-api-key
string ✅ Your API key for authorization
Bash
curl --request GET \
'https://iris-backend-production.up.railway.app/api/public/analytics/contacts?channel=whatsapp&orderBy=contact_created_at&page=1' \
--header 'x-api-key: YOUR_API_KEY'
Returns contacts with unanswered messages, sorted by waiting time (descending).
Click to expand full details
GET /api/public/analytics/contacts/pending-responses
Name Type Required Description channel
string ✅ Channel (e.g., whatsapp
) pipelineId
string ✅ ID of the pipeline to filter by page
number ✅ Page number
Name Type Required Description x-api-key
string ✅ Your API key for authorization
Bash
curl --request GET \
'https://iris-backend-production.up.railway.app/api/public/analytics/contacts/pending-responses?channel=whatsapp&pipelineId=pipeline_123&page=1' \
--header 'x-api-key: YOUR_API_KEY'
Returns average response times (in seconds) for each agent in a specified channel.
Click to expand full details
GET /api/public/analytics/agents/response-time
Name Type Required Description channel
string ✅ Channel to filter (e.g., whatsapp
) page
number ✅ Page number
Name Type Required Description x-api-key
string ✅ Your API key for authorization
Bash
curl --request GET \
'https://iris-backend-production.up.railway.app/api/public/analytics/agents/response-time?channel=whatsapp&page=1' \
--header 'x-api-key: YOUR_API_KEY'