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-05-31 05:28:43 +00:00
|
|
|
platform/api/v1/accounts:
|
|
|
|
post:
|
|
|
|
$ref: ./platform/accounts/create.yml
|
|
|
|
platform/api/v1/accounts/{id}:
|
|
|
|
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-05-31 05:28:43 +00:00
|
|
|
platform/api/v1/accounts/{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
|
|
|
|
|
|
|
|
platform/api/v1/agent_bots:
|
|
|
|
get:
|
|
|
|
$ref: ./platform/agent_bots/index.yml
|
|
|
|
post:
|
|
|
|
$ref: ./platform/agent_bots/create.yml
|
|
|
|
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
|
|
|
|
|
|
|
|
platform/api/v1/users:
|
|
|
|
post:
|
|
|
|
$ref: ./platform/users/create.yml
|
|
|
|
platform/api/v1/users/{id}:
|
|
|
|
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
|
|
|
|
platform/api/v1/users/{id}/login:
|
|
|
|
parameters:
|
2021-06-06 15:48:47 +00:00
|
|
|
- $ref: '#/parameters/platform_user_id'
|
2021-05-31 05:28:43 +00:00
|
|
|
$ref: './platform/users/login.yml'
|
|
|
|
|
|
|
|
|
|
|
|
# ---------------- end of platform path -----------#
|
|
|
|
|
|
|
|
# AgentBots
|
2021-05-11 14:50:52 +00:00
|
|
|
|
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:
|
|
|
|
$ref: ./agent_bots/index.yml
|
2021-05-11 14:50:52 +00:00
|
|
|
post:
|
2021-05-31 05:28:43 +00:00
|
|
|
$ref: ./agent_bots/create.yml
|
|
|
|
/api/v1/accounts/{account_id}/agent_bots/{id}:
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
- $ref: '#/parameters/agent_bot_id'
|
|
|
|
get:
|
|
|
|
$ref: './agent_bots/show.yml'
|
|
|
|
patch:
|
|
|
|
$ref: ./agent_bots/update.yml
|
|
|
|
delete:
|
|
|
|
$ref: ./agent_bots/delete.yml
|
2020-03-11 10:49:13 +00:00
|
|
|
|
2021-05-31 05:28:43 +00:00
|
|
|
|
|
|
|
# Contacts
|
|
|
|
/api/v1/accounts/{account_id}/contacts:
|
|
|
|
$ref: ./contact/list_create.yml
|
|
|
|
/api/v1/accounts/{account_id}/contacts/{id}:
|
|
|
|
$ref: ./contact/crud.yml
|
|
|
|
/api/v1/accounts/{account_id}/contacts/{id}/conversations:
|
|
|
|
$ref: ./contact/conversations.yml
|
|
|
|
/api/v1/accounts/{account_id}/contacts/search:
|
|
|
|
$ref: ./contact/search.yml
|
|
|
|
/api/v1/accounts/{account_id}/contacts/{id}/contact_inboxes:
|
|
|
|
$ref: ./contact_inboxes/create.yml
|
|
|
|
/api/v1/accounts/{account_id}/contacts/{id}/contactable_inboxes:
|
|
|
|
$ref: ./contactable_inboxes/get.yml
|
|
|
|
|
|
|
|
|
|
|
|
# Conversations
|
|
|
|
/api/v1/accounts/{account_id}/conversations:
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
$ref: ./conversation/index_or_create.yml
|
|
|
|
/api/v1/accounts/{account_id}/conversations/{converstion_id}:
|
2021-05-11 14:50:52 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/account_id'
|
|
|
|
- $ref: '#/parameters/conversation_id'
|
|
|
|
get:
|
2021-05-31 05:28:43 +00:00
|
|
|
$ref: ./conversation/show.yml
|
|
|
|
/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-05-31 05:28:43 +00:00
|
|
|
$ref: ./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:
|
|
|
|
$ref: ./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:
|
|
|
|
$ref: ./conversation/labels/index.yml
|
|
|
|
post:
|
|
|
|
$ref: ./conversation/labels/create.yml
|
|
|
|
|
2021-05-31 05:28:43 +00:00
|
|
|
|
|
|
|
# Inboxes
|
|
|
|
/api/v1/accounts/{account_id}/inboxes:
|
|
|
|
$ref: ./inboxes/index.yml
|
|
|
|
/api/v1/accounts/{account_id}/inboxes/:
|
|
|
|
$ref: ./inboxes/create.yml
|
|
|
|
/api/v1/accounts/{account_id}/inboxes/{id}:
|
|
|
|
$ref: ./inboxes/update.yml
|
|
|
|
/api/v1/accounts/{account_id}/inboxes/{id}/agent_bot:
|
|
|
|
$ref: ./inboxes/get_agent_bot.yml
|
|
|
|
/api/v1/accounts/{account_id}/inboxes/{id}/set_agent_bot:
|
|
|
|
$ref: ./inboxes/set_agent_bot.yml
|
|
|
|
|
|
|
|
|
|
|
|
# Messages
|
|
|
|
/api/v1/accounts/{account_id}/conversations/{id}/messages:
|
|
|
|
$ref: ./conversation/messages/create_attachment.yml
|
|
|
|
/api/v1/accounts/{account_id}/conversations/{converstion_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:
|
|
|
|
$ref: ./conversation/messages/index.yml
|
2021-05-11 14:50:52 +00:00
|
|
|
post:
|
2021-05-31 05:28:43 +00:00
|
|
|
$ref: ./conversation/messages/create.yml
|
|
|
|
/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:
|
|
|
|
$ref: ./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:
|
|
|
|
$ref: './integrations/apps/show.yml'
|
|
|
|
/api/v1/accounts/{account_id}/integrations/hooks:
|
|
|
|
post:
|
|
|
|
$ref: './integrations/hooks/create.yml'
|
|
|
|
patch:
|
|
|
|
$ref: ./integrations/hooks/update.yml
|
|
|
|
delete:
|
|
|
|
$ref: ./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:
|
|
|
|
$ref: ./teams/index.yml
|
|
|
|
post:
|
|
|
|
$ref: ./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:
|
|
|
|
$ref: './teams/show.yml'
|
|
|
|
patch:
|
|
|
|
$ref: ./teams/update.yml
|
|
|
|
delete:
|
|
|
|
$ref: ./teams/delete.yml
|