Use the Analytics End Points to retrieve performance and engagement data such as contact lists, pending responses, and agent response times. Useful for building dashboards or improving support workflows.
π½ GET /api/public/analytics/contacts β Get Contacts Info
Retrieves contact information filtered by channel and ordered by field.
Click to expand full details
πΉ URL
GET /api/public/analytics/contacts
πΉ Query Parameters
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
πΉ Headers
Name
Type
Required
Description
x-api-key
string
β
Your API key for authorization
πΉ Example Request
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'
π½ GET /api/public/analytics/contacts/pending-responses β Get Contacts with Pending Responses
Returns contacts with unanswered messages, sorted by waiting time (descending).
Click to expand full details
πΉ URL
GET /api/public/analytics/contacts/pending-responses
πΉ Query Parameters
Name
Type
Required
Description
channel
string
β
Channel (e.g., whatsapp)
pipelineId
string
β
ID of the pipeline to filter by
page
number
β
Page number
πΉ Headers
Name
Type
Required
Description
x-api-key
string
β
Your API key for authorization
πΉ Example Request
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'
π½ GET /api/public/analytics/agents/response-time β Get Average Response Time by Agent
Returns average response times (in seconds) for each agent in a specified channel.
Click to expand full details
πΉ URL
GET /api/public/analytics/agents/response-time
πΉ Query Parameters
Name
Type
Required
Description
channel
string
β
Channel to filter (e.g., whatsapp)
page
number
β
Page number
πΉ Headers
Name
Type
Required
Description
x-api-key
string
β
Your API key for authorization
πΉ Example Request
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'