2021-05-31 05:28:43 +00:00
|
|
|
# ------------ Platform API routes ------------#
|
2020-04-20 06:25:06 +00:00
|
|
|
|
2021-05-31 05:28:43 +00:00
|
|
|
# Accounts
|
2020-03-11 10:49:13 +00:00
|
|
|
|
2021-11-17 13:25:15 +00:00
|
|
|
/platform/api/v1/accounts:
|
2021-05-31 05:28:43 +00:00
|
|
|
post:
|
|
|
|
$ref: ./platform/accounts/create.yml
|
2021-11-17 13:25:15 +00:00
|
|
|
/platform/api/v1/accounts/{account_id}:
|
2021-05-31 05:28:43 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
get:
|
|
|
|
$ref: './platform/accounts/show.yml'
|
|
|
|
patch:
|
|
|
|
$ref: ./platform/accounts/update.yml
|
|
|
|
delete:
|
|
|
|
$ref: ./platform/accounts/delete.yml
|
2020-08-18 06:44:37 +00:00
|
|
|
|
2020-04-07 05:11:18 +00:00
|
|
|
|
2021-05-31 05:28:43 +00:00
|
|
|
# Account Users
|
2020-04-07 05:11:18 +00:00
|
|
|
|
2021-11-17 13:25:15 +00:00
|
|
|
/platform/api/v1/accounts/{account_id}/account_users:
|
2021-05-11 14:50:52 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
2021-05-31 05:28:43 +00:00
|
|
|
get:
|
|
|
|
$ref: './platform/account_users/index.yml'
|
|
|
|
post:
|
|
|
|
$ref: ./platform/account_users/create.yml
|
|
|
|
delete:
|
|
|
|
$ref: ./platform/account_users/delete.yml
|
2021-05-11 14:50:52 +00:00
|
|
|
|
2021-05-31 05:28:43 +00:00
|
|
|
# AgentBots
|
|
|
|
|
2021-11-17 13:25:15 +00:00
|
|
|
/platform/api/v1/agent_bots:
|
2021-05-31 05:28:43 +00:00
|
|
|
get:
|
|
|
|
$ref: ./platform/agent_bots/index.yml
|
|
|
|
post:
|
|
|
|
$ref: ./platform/agent_bots/create.yml
|
2021-11-17 13:25:15 +00:00
|
|
|
/platform/api/v1/agent_bots/{id}:
|
2021-05-11 14:50:52 +00:00
|
|
|
parameters:
|
2021-05-31 05:28:43 +00:00
|
|
|
- $ref: '#/parameters/agent_bot_id'
|
2021-05-11 14:50:52 +00:00
|
|
|
get:
|
2021-05-31 05:28:43 +00:00
|
|
|
$ref: './platform/agent_bots/show.yml'
|
|
|
|
patch:
|
|
|
|
$ref: ./platform/agent_bots/update.yml
|
|
|
|
delete:
|
|
|
|
$ref: ./platform/agent_bots/delete.yml
|
|
|
|
|
|
|
|
# Users
|
|
|
|
|
2021-11-17 13:25:15 +00:00
|
|
|
/platform/api/v1/users:
|
2021-05-31 05:28:43 +00:00
|
|
|
post:
|
|
|
|
$ref: ./platform/users/create.yml
|
2021-11-17 13:25:15 +00:00
|
|
|
/platform/api/v1/users/{id}:
|
2021-05-31 05:28:43 +00:00
|
|
|
parameters:
|
2021-06-06 15:48:47 +00:00
|
|
|
- $ref: '#/parameters/platform_user_id'
|
2021-05-31 05:28:43 +00:00
|
|
|
get:
|
|
|
|
$ref: './platform/users/show.yml'
|
|
|
|
patch:
|
|
|
|
$ref: ./platform/users/update.yml
|
|
|
|
delete:
|
|
|
|
$ref: ./platform/users/delete.yml
|
2021-11-17 13:25:15 +00:00
|
|
|
/platform/api/v1/users/{id}/login:
|
2021-05-31 05:28:43 +00:00
|
|
|
parameters:
|
2021-06-06 15:48:47 +00:00
|
|
|
- $ref: '#/parameters/platform_user_id'
|
2021-11-17 13:25:15 +00:00
|
|
|
get:
|
|
|
|
$ref: './platform/users/login.yml'
|
2021-05-31 05:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
# ---------------- end of platform path -----------#
|
|
|
|
|
2021-06-15 18:44:09 +00:00
|
|
|
# ------------ Public API routes ------------#
|
|
|
|
|
|
|
|
# Contacts
|
|
|
|
|
2021-11-17 13:25:15 +00:00
|
|
|
/public/api/v1/inboxes/{inbox_identifier}/contacts:
|
2021-06-15 18:44:09 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/public_inbox_identifier'
|
|
|
|
post:
|
|
|
|
$ref: ./public/inboxes/contacts/create.yml
|
2021-11-17 13:25:15 +00:00
|
|
|
/public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier}:
|
2021-06-15 18:44:09 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/public_inbox_identifier'
|
|
|
|
- $ref: '#/parameters/public_contact_identifier'
|
|
|
|
get:
|
|
|
|
$ref: './public/inboxes/contacts/show.yml'
|
|
|
|
patch:
|
|
|
|
$ref: ./public/inboxes/contacts/update.yml
|
|
|
|
|
|
|
|
|
2021-11-17 13:25:15 +00:00
|
|
|
/public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier}/conversations:
|
2021-06-15 18:44:09 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/public_inbox_identifier'
|
|
|
|
- $ref: '#/parameters/public_contact_identifier'
|
|
|
|
post:
|
|
|
|
$ref: ./public/inboxes/conversations/create.yml
|
2021-06-29 13:59:57 +00:00
|
|
|
get:
|
2021-06-15 18:44:09 +00:00
|
|
|
$ref: ./public/inboxes/conversations/index.yml
|
|
|
|
|
2021-11-17 13:25:15 +00:00
|
|
|
/public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier}/conversations/{conversation_id}/messages:
|
2021-06-15 18:44:09 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/public_inbox_identifier'
|
|
|
|
- $ref: '#/parameters/public_contact_identifier'
|
|
|
|
- $ref: '#/parameters/conversation_id'
|
|
|
|
post:
|
|
|
|
$ref: ./public/inboxes/messages/create.yml
|
2021-06-29 13:59:57 +00:00
|
|
|
get:
|
2021-06-15 18:44:09 +00:00
|
|
|
$ref: ./public/inboxes/messages/index.yml
|
2021-11-17 13:25:15 +00:00
|
|
|
/public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier}/conversations/{conversation_id}/messages/{message_id}:
|
2021-06-15 18:44:09 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/public_inbox_identifier'
|
|
|
|
- $ref: '#/parameters/public_contact_identifier'
|
|
|
|
- $ref: '#/parameters/conversation_id'
|
|
|
|
- $ref: '#/parameters/message_id'
|
|
|
|
patch:
|
|
|
|
$ref: ./public/inboxes/messages/update.yml
|
|
|
|
|
|
|
|
# ---------------- end of public api routes-----------#
|
|
|
|
|
|
|
|
# ------------ Application API routes ------------#
|
2021-05-11 14:50:52 +00:00
|
|
|
|
2021-10-07 07:51:46 +00:00
|
|
|
|
|
|
|
# AgentBots
|
2021-05-31 05:28:43 +00:00
|
|
|
/api/v1/accounts/{account_id}/agent_bots:
|
2021-05-11 14:50:52 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
2021-05-31 05:28:43 +00:00
|
|
|
get:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/agent_bots/index.yml
|
2021-05-11 14:50:52 +00:00
|
|
|
post:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/agent_bots/create.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
/api/v1/accounts/{account_id}/agent_bots/{id}:
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
- $ref: '#/parameters/agent_bot_id'
|
|
|
|
get:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: './application/agent_bots/show.yml'
|
2021-05-31 05:28:43 +00:00
|
|
|
patch:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/agent_bots/update.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
delete:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/agent_bots/delete.yml
|
|
|
|
|
|
|
|
# Agents
|
|
|
|
/api/v1/accounts/{account_id}/agents:
|
2021-11-17 13:25:15 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
2021-10-07 07:51:46 +00:00
|
|
|
get:
|
|
|
|
$ref: ./application/agents/index.yml
|
|
|
|
post:
|
|
|
|
$ref: ./application/agents/create.yml
|
|
|
|
/api/v1/accounts/{account_id}/agents/{id}:
|
2021-11-17 13:25:15 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
2021-10-07 07:51:46 +00:00
|
|
|
patch:
|
|
|
|
$ref: ./application/agents/update.yml
|
2021-11-12 13:58:03 +00:00
|
|
|
delete:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/agents/delete.yml
|
2020-03-11 10:49:13 +00:00
|
|
|
|
2022-03-25 19:13:44 +00:00
|
|
|
# Agents
|
|
|
|
/api/v1/accounts/{account_id}/canned_responses:
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
get:
|
|
|
|
$ref: ./application/canned_responses/index.yml
|
|
|
|
post:
|
|
|
|
$ref: ./application/canned_responses/create.yml
|
|
|
|
/api/v1/accounts/{account_id}/canned_responses/{id}:
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
patch:
|
|
|
|
$ref: ./application/canned_responses/update.yml
|
|
|
|
delete:
|
|
|
|
$ref: ./application/canned_responses/delete.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
|
|
|
|
# Contacts
|
|
|
|
/api/v1/accounts/{account_id}/contacts:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/contacts/list_create.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
/api/v1/accounts/{account_id}/contacts/{id}:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/contacts/crud.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
/api/v1/accounts/{account_id}/contacts/{id}/conversations:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/contacts/conversations.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
/api/v1/accounts/{account_id}/contacts/search:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/contacts/search.yml
|
2022-01-04 07:40:29 +00:00
|
|
|
/api/v1/accounts/{account_id}/contacts/filter:
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
post:
|
|
|
|
$ref: ./application/contacts/filter.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
/api/v1/accounts/{account_id}/contacts/{id}/contact_inboxes:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/contact_inboxes/create.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
/api/v1/accounts/{account_id}/contacts/{id}/contactable_inboxes:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/contactable_inboxes/get.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Conversations
|
|
|
|
/api/v1/accounts/{account_id}/conversations:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/conversation/index.yml
|
2021-11-12 13:58:03 +00:00
|
|
|
/api/v1/accounts/{account_id}/conversations/filter:
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
2021-11-17 13:25:15 +00:00
|
|
|
post:
|
|
|
|
$ref: ./application/conversation/filter.yml
|
|
|
|
/api/v1/accounts/{account_id}/conversations/{conversation_id}:
|
2021-05-11 14:50:52 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
- $ref: '#/parameters/conversation_id'
|
|
|
|
get:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/conversation/show.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
/api/v1/accounts/{account_id}/conversations/{conversation_id}/toggle_status:
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
- $ref: '#/parameters/conversation_id'
|
2021-05-11 14:50:52 +00:00
|
|
|
post:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/conversation/toggle_status.yml
|
2020-03-11 10:49:13 +00:00
|
|
|
|
2021-05-31 05:28:43 +00:00
|
|
|
# Conversations Assignments
|
|
|
|
|
|
|
|
/api/v1/accounts/{account_id}/conversations/{conversation_id}/assignments:
|
2021-05-11 14:50:52 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
- $ref: '#/parameters/conversation_id'
|
2021-05-31 05:28:43 +00:00
|
|
|
post:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/conversation/assignments.yml
|
2020-03-11 10:49:13 +00:00
|
|
|
|
2021-05-31 05:28:43 +00:00
|
|
|
# Conversation Labels
|
2021-05-11 14:50:52 +00:00
|
|
|
|
2021-05-31 05:28:43 +00:00
|
|
|
/api/v1/accounts/{account_id}/conversations/{conversation_id}/labels:
|
2021-05-11 14:50:52 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
- $ref: '#/parameters/conversation_id'
|
|
|
|
get:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/conversation/labels/index.yml
|
2021-05-11 14:50:52 +00:00
|
|
|
post:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/conversation/labels/create.yml
|
2021-05-11 14:50:52 +00:00
|
|
|
|
2021-05-31 05:28:43 +00:00
|
|
|
|
|
|
|
# Inboxes
|
|
|
|
/api/v1/accounts/{account_id}/inboxes:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/inboxes/index.yml
|
2021-09-04 12:26:46 +00:00
|
|
|
/api/v1/accounts/{account_id}/inboxes/{id}/:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/inboxes/show.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
/api/v1/accounts/{account_id}/inboxes/:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/inboxes/create.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
/api/v1/accounts/{account_id}/inboxes/{id}:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/inboxes/update.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
/api/v1/accounts/{account_id}/inboxes/{id}/agent_bot:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/inboxes/get_agent_bot.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
/api/v1/accounts/{account_id}/inboxes/{id}/set_agent_bot:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/inboxes/set_agent_bot.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
|
2021-09-14 06:25:02 +00:00
|
|
|
# Inbox Members
|
2021-11-17 13:25:15 +00:00
|
|
|
/api/v1/accounts/{account_id}/inbox_members/{inbox_id}:
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
- $ref: '#/parameters/inbox_id'
|
2021-09-14 06:25:02 +00:00
|
|
|
get:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/inboxes/inbox_members/show.yml
|
2021-09-14 06:25:02 +00:00
|
|
|
post:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/inboxes/inbox_members/create.yml
|
2021-09-14 06:25:02 +00:00
|
|
|
patch:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/inboxes/inbox_members/update.yml
|
2021-11-12 13:58:03 +00:00
|
|
|
delete:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/inboxes/inbox_members/delete.yml
|
2021-11-12 13:58:03 +00:00
|
|
|
|
2021-09-14 06:25:02 +00:00
|
|
|
|
2021-05-31 05:28:43 +00:00
|
|
|
|
|
|
|
# Messages
|
2021-11-17 13:25:15 +00:00
|
|
|
/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages:
|
2021-05-11 14:50:52 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
- $ref: '#/parameters/conversation_id'
|
2021-05-31 05:28:43 +00:00
|
|
|
get:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/conversation/messages/index.yml
|
2021-05-11 14:50:52 +00:00
|
|
|
post:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/conversation/messages/create.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}:
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
- $ref: '#/parameters/conversation_id'
|
|
|
|
- $ref: '#/parameters/message_id'
|
|
|
|
delete:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/conversation/messages/delete.yml
|
2020-08-18 06:44:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-31 05:28:43 +00:00
|
|
|
# Integrations
|
|
|
|
/api/v1/accounts/{account_id}/integrations/apps:
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
get:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: './application/integrations/apps/show.yml'
|
2021-05-31 05:28:43 +00:00
|
|
|
/api/v1/accounts/{account_id}/integrations/hooks:
|
|
|
|
post:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: './application/integrations/hooks/create.yml'
|
2021-11-17 13:25:15 +00:00
|
|
|
/api/v1/accounts/{account_id}/integrations/hooks/{hook_id}:
|
2021-05-31 05:28:43 +00:00
|
|
|
patch:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/integrations/hooks/update.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
delete:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/integrations/hooks/delete.yml
|
2020-08-18 06:44:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Profile
|
|
|
|
/profile:
|
|
|
|
$ref: ./profile/index.yml
|
2021-05-05 15:09:00 +00:00
|
|
|
|
2021-05-31 05:28:43 +00:00
|
|
|
|
2021-05-05 15:09:00 +00:00
|
|
|
# Teams
|
2021-05-31 05:28:43 +00:00
|
|
|
/api/v1/accounts/{account_id}/teams:
|
2021-05-05 15:09:00 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
get:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/teams/index.yml
|
2021-05-05 15:09:00 +00:00
|
|
|
post:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/teams/create.yml
|
2021-05-31 05:28:43 +00:00
|
|
|
/api/v1/accounts/{account_id}/teams/{id}:
|
2021-05-05 15:09:00 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
- $ref: '#/parameters/team_id'
|
|
|
|
get:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: './application/teams/show.yml'
|
2021-05-05 15:09:00 +00:00
|
|
|
patch:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/teams/update.yml
|
2021-05-05 15:09:00 +00:00
|
|
|
delete:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/teams/delete.yml
|
2021-06-29 13:59:57 +00:00
|
|
|
|
2021-08-27 17:16:32 +00:00
|
|
|
### Custom Filters goes here
|
2021-06-29 13:59:57 +00:00
|
|
|
|
2021-09-14 06:25:02 +00:00
|
|
|
# Custom Filters
|
2021-06-29 13:59:57 +00:00
|
|
|
/api/v1/accounts/{account_id}/custom_filters:
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
- in: query
|
|
|
|
name: filter_type
|
2021-11-17 13:25:15 +00:00
|
|
|
type: string
|
|
|
|
enum: ['conversation', 'contact', 'report']
|
2021-06-29 13:59:57 +00:00
|
|
|
required: false
|
|
|
|
description: The type of custom filter
|
|
|
|
get:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/custom_filters/index.yml
|
2021-06-29 13:59:57 +00:00
|
|
|
post:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/custom_filters/create.yml
|
2021-06-29 13:59:57 +00:00
|
|
|
/api/v1/accounts/{account_id}/custom_filters/{custom_filter_id}:
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
- $ref: '#/parameters/custom_filter_id'
|
|
|
|
get:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: './application/custom_filters/show.yml'
|
2021-06-29 13:59:57 +00:00
|
|
|
patch:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/custom_filters/update.yml
|
2021-06-29 13:59:57 +00:00
|
|
|
delete:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: ./application/custom_filters/delete.yml
|
2021-08-27 17:16:32 +00:00
|
|
|
|
|
|
|
### Reports
|
|
|
|
|
|
|
|
# List
|
2021-11-17 13:25:15 +00:00
|
|
|
/api/v2/accounts/{account_id}/reports:
|
2021-08-27 17:16:32 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
- $ref: '#/parameters/report_metric'
|
|
|
|
- $ref: '#/parameters/report_type'
|
|
|
|
- in: query
|
|
|
|
name: id
|
2021-11-17 13:25:15 +00:00
|
|
|
type: string
|
2021-08-27 17:16:32 +00:00
|
|
|
description: The Id of specific object in case of agent/inbox/label
|
|
|
|
- in: query
|
|
|
|
name: since
|
2021-11-17 13:25:15 +00:00
|
|
|
type: string
|
2021-08-27 17:16:32 +00:00
|
|
|
description: The timestamp from where report should start.
|
|
|
|
- in: query
|
|
|
|
name: until
|
2021-11-17 13:25:15 +00:00
|
|
|
type: string
|
2021-08-27 17:16:32 +00:00
|
|
|
description: The timestamp from where report should stop.
|
|
|
|
get:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: './application/reports/index.yml'
|
2021-08-27 17:16:32 +00:00
|
|
|
|
|
|
|
# Summary
|
2021-11-17 13:25:15 +00:00
|
|
|
/api/v2/accounts/{account_id}/reports/summary:
|
2021-08-27 17:16:32 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
- $ref: '#/parameters/report_type'
|
|
|
|
- in: query
|
|
|
|
name: id
|
2021-11-17 13:25:15 +00:00
|
|
|
type: string
|
2021-08-27 17:16:32 +00:00
|
|
|
description: The Id of specific object in case of agent/inbox/label
|
|
|
|
- in: query
|
|
|
|
name: since
|
2021-11-17 13:25:15 +00:00
|
|
|
type: string
|
2021-08-27 17:16:32 +00:00
|
|
|
description: The timestamp from where report should start.
|
|
|
|
- in: query
|
|
|
|
name: until
|
2021-11-17 13:25:15 +00:00
|
|
|
type: string
|
2021-08-27 17:16:32 +00:00
|
|
|
description: The timestamp from where report should stop.
|
|
|
|
get:
|
2021-10-07 07:51:46 +00:00
|
|
|
$ref: './application/reports/summary.yml'
|
2022-03-29 05:01:52 +00:00
|
|
|
|
|
|
|
# Conversation metrics for account
|
|
|
|
/api/v2/accounts/{account_id}/reports/conversations:
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
- in: query
|
|
|
|
name: type
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- account
|
|
|
|
required: true
|
|
|
|
description: Type of report
|
|
|
|
get:
|
|
|
|
$ref: './application/reports/conversation/account.yml'
|
|
|
|
|
|
|
|
# Conversation metrics for agent
|
|
|
|
/api/v2/accounts/{account_id}/reports/conversations/:
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
- in: query
|
|
|
|
name: type
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- agent
|
|
|
|
required: true
|
|
|
|
description: Type of report
|
|
|
|
- in: query
|
|
|
|
name: user_id
|
|
|
|
type: string
|
|
|
|
description: The numeric ID of the user
|
|
|
|
get:
|
|
|
|
$ref: './application/reports/conversation/agent.yml'
|