2020-02-23 07:24:29 +00:00
{
2021-05-05 15:09:00 +00:00
"swagger" : "2.0" ,
2020-02-23 07:24:29 +00:00
"info" : {
2020-03-11 10:49:13 +00:00
"description" : "This is the API documentation for Chatwoot server." ,
2020-02-23 07:24:29 +00:00
"version" : "1.0.0" ,
"title" : "Chatwoot" ,
"termsOfService" : "https://www.chatwoot.com/terms-of-service/" ,
"contact" : {
2021-05-31 05:28:43 +00:00
"email" : "hello@chatwoot.com"
2020-02-23 07:24:29 +00:00
} ,
"license" : {
"name" : "MIT License" ,
"url" : "https://opensource.org/licenses/MIT"
2020-03-11 10:49:13 +00:00
}
2020-02-23 07:24:29 +00:00
} ,
2020-03-11 10:49:13 +00:00
"host" : "app.chatwoot.com" ,
2021-11-17 13:25:15 +00:00
"basePath" : "/" ,
2020-03-11 10:49:13 +00:00
"schemes" : [
"https"
] ,
"produces" : [
"application/json; charset=utf-8"
] ,
"consumes" : [
"application/json; charset=utf-8"
] ,
2020-06-25 18:05:16 +00:00
"securityDefinitions" : {
"userApiKey" : {
"type" : "apiKey" ,
"in" : "header" ,
"name" : "api_access_token" ,
"description" : "This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user."
} ,
"agentBotApiKey" : {
"type" : "apiKey" ,
"in" : "header" ,
"name" : "api_access_token" ,
"description" : "This token should be provided by system admin or obtained via rails console. This token can be used to build bot integrations and can only access limited apis."
} ,
2021-05-31 05:28:43 +00:00
"platformAppApiKey" : {
2020-06-25 18:05:16 +00:00
"type" : "apiKey" ,
"in" : "header" ,
"name" : "api_access_token" ,
2021-05-31 05:28:43 +00:00
"description" : "This token can be obtained by the system admin after creating a platformApp. This token should be used to provision agent bots, accounts, users and their roles."
2020-06-25 18:05:16 +00:00
}
} ,
"security" : [
{
"userApiKey" : [
]
}
] ,
2020-02-23 07:24:29 +00:00
"paths" : {
2021-11-17 13:25:15 +00:00
"/platform/api/v1/accounts" : {
2021-05-31 05:28:43 +00:00
"post" : {
"tags" : [
"Accounts"
] ,
"operationId" : "create-an-account" ,
"summary" : "Create an Account" ,
"description" : "Create an Account" ,
"security" : [
{
"platformAppApiKey" : [
]
}
] ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/account_create_update_payload"
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/platform_account"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
}
} ,
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" : {
"tags" : [
"Accounts"
] ,
"operationId" : "get-details-of-an-account" ,
"summary" : "Get an account details" ,
"description" : "Get the details of an account" ,
"security" : [
{
"platformAppApiKey" : [
]
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/platform_account"
}
} ,
"401" : {
"description" : "Unauthorized"
} ,
"404" : {
"description" : "The given account does not exist"
}
}
} ,
"patch" : {
"tags" : [
"Accounts"
] ,
"operationId" : "update-an-account" ,
"summary" : "Update an account" ,
"description" : "Update an account's attributes" ,
"security" : [
{
"platformAppApiKey" : [
]
}
] ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/account_create_update_payload"
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/platform_account"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
} ,
"delete" : {
"tags" : [
"Accounts"
] ,
"operationId" : "delete-an-account" ,
"summary" : "Delete an Account" ,
"description" : "Delete an Account" ,
"security" : [
{
"platformAppApiKey" : [
]
}
] ,
"responses" : {
"200" : {
"description" : "Success"
} ,
"401" : {
"description" : "Unauthorized"
} ,
"404" : {
"description" : "The account does not exist"
}
}
}
} ,
2021-11-17 13:25:15 +00:00
"/platform/api/v1/accounts/{account_id}/account_users" : {
2021-05-31 05:28:43 +00:00
"parameters" : [
{
"$ref" : "#/parameters/account_id"
}
] ,
"get" : {
"tags" : [
"Account Users"
] ,
"operationId" : "list-all-account-users" ,
"summary" : "List all Account Users" ,
"description" : "List all account users" ,
"security" : [
{
"platformAppApiKey" : [
]
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"type" : "array" ,
"description" : "Array of account users" ,
"items" : {
"type" : "object" ,
"properties" : {
"account_id" : {
"type" : "integer" ,
"description" : "The ID of the user"
} ,
"user_id" : {
"type" : "integer" ,
"description" : "The ID of the user"
} ,
"role" : {
"type" : "string" ,
"description" : "whether user is an administrator or agent"
}
}
}
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
} ,
"post" : {
"tags" : [
"Account Users"
] ,
"operationId" : "create-an-account-user" ,
"summary" : "Create an Account User" ,
"description" : "Create an Account User" ,
"security" : [
{
"platformAppApiKey" : [
]
}
] ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"type" : "object" ,
2021-11-17 13:25:15 +00:00
"required" : [
"user_id" ,
"role"
] ,
2021-05-31 05:28:43 +00:00
"properties" : {
"user_id" : {
"type" : "integer" ,
2021-11-17 13:25:15 +00:00
"description" : "The ID of the user"
2021-05-31 05:28:43 +00:00
} ,
"role" : {
"type" : "string" ,
2021-11-17 13:25:15 +00:00
"description" : "whether user is an administrator or agent"
2021-05-31 05:28:43 +00:00
}
}
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"properties" : {
"account_id" : {
"type" : "integer" ,
"description" : "The ID of the user"
} ,
"user_id" : {
"type" : "integer" ,
"description" : "The ID of the user"
} ,
"role" : {
"type" : "string" ,
"description" : "whether user is an administrator or agent"
}
}
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
} ,
"delete" : {
"tags" : [
"Account Users"
] ,
"operationId" : "delete-an-account-user" ,
"summary" : "Delete an Account User" ,
"description" : "Delete an Account User" ,
"security" : [
{
"platformAppApiKey" : [
]
}
] ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"type" : "object" ,
2021-11-17 13:25:15 +00:00
"required" : [
"user_id"
] ,
2021-05-31 05:28:43 +00:00
"properties" : {
"user_id" : {
"type" : "integer" ,
2021-11-17 13:25:15 +00:00
"description" : "The ID of the user"
2021-05-31 05:28:43 +00:00
}
}
}
}
] ,
"responses" : {
"200" : {
"description" : "Success"
} ,
"401" : {
"description" : "Unauthorized"
} ,
"404" : {
"description" : "The account does not exist"
}
}
}
} ,
2021-11-17 13:25:15 +00:00
"/platform/api/v1/agent_bots" : {
2021-05-31 05:28:43 +00:00
"get" : {
"tags" : [
"AgentBots"
] ,
"operationId" : "list-all-agent-bots" ,
"summary" : "List all AgentBots" ,
"description" : "List all agent bots available" ,
"security" : [
{
"platformAppApiKey" : [
]
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"type" : "array" ,
"description" : "Array of agent bots" ,
"items" : {
"$ref" : "#/definitions/agent_bot"
}
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
} ,
"post" : {
"tags" : [
"AgentBots"
] ,
"operationId" : "create-an-agent-bot" ,
"summary" : "Create an Agent Bot" ,
"description" : "Create an agent bot" ,
"security" : [
{
"platformAppApiKey" : [
]
}
] ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/agent_bot_create_update_payload"
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/agent_bot"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
}
} ,
2021-11-17 13:25:15 +00:00
"/platform/api/v1/agent_bots/{id}" : {
2021-05-31 05:28:43 +00:00
"parameters" : [
{
"$ref" : "#/parameters/agent_bot_id"
}
] ,
"get" : {
"tags" : [
"AgentBots"
] ,
"operationId" : "get-details-of-a-single-agent-bot" ,
"summary" : "Get an agent bot details" ,
"description" : "Get the details of an agent bot" ,
"security" : [
{
"platformAppApiKey" : [
]
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/agent_bot"
}
} ,
"401" : {
"description" : "Unauthorized"
} ,
"404" : {
"description" : "The given agent bot ID does not exist"
}
}
} ,
"patch" : {
"tags" : [
"AgentBots"
] ,
"operationId" : "update-an-agent-bot" ,
"summary" : "Update an agent bot" ,
"description" : "Update an agent bot's attributes" ,
"security" : [
{
"platformAppApiKey" : [
]
}
] ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/agent_bot_create_update_payload"
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/agent_bot"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
} ,
"delete" : {
"tags" : [
"AgentBots"
] ,
"operationId" : "delete-an-agent-bot" ,
"summary" : "Delete an AgentBot" ,
"description" : "Delete an AgentBot" ,
"security" : [
{
"platformAppApiKey" : [
]
}
] ,
"responses" : {
"200" : {
"description" : "Success"
} ,
"401" : {
"description" : "Unauthorized"
} ,
"404" : {
"description" : "The agent bot does not exist"
}
}
}
} ,
2021-11-17 13:25:15 +00:00
"/platform/api/v1/users" : {
2021-05-31 05:28:43 +00:00
"post" : {
"tags" : [
"Users"
] ,
"operationId" : "create-a-user" ,
"summary" : "Create a User" ,
"description" : "Create a User" ,
"security" : [
{
"platformAppApiKey" : [
]
}
] ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/user_create_update_payload"
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/user"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
}
} ,
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
}
] ,
2021-05-11 17:08:46 +00:00
"get" : {
"tags" : [
2021-05-31 05:28:43 +00:00
"Users"
] ,
"operationId" : "get-details-of-a-user" ,
"summary" : "Get an user details" ,
"description" : "Get the details of an user" ,
"security" : [
{
"platformAppApiKey" : [
]
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/user"
}
} ,
"401" : {
"description" : "Unauthorized"
} ,
"404" : {
"description" : "The given user does not exist"
}
}
} ,
"patch" : {
"tags" : [
"Users"
] ,
"operationId" : "update-a-user" ,
"summary" : "Update a user" ,
"description" : "Update a user's attributes" ,
"security" : [
{
"platformAppApiKey" : [
]
}
] ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/user_create_update_payload"
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/user"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
} ,
"delete" : {
"tags" : [
"Users"
] ,
"operationId" : "delete-a-user" ,
"summary" : "Delete a User" ,
"description" : "Delete a User" ,
"security" : [
{
"platformAppApiKey" : [
]
}
] ,
"responses" : {
"200" : {
"description" : "Success"
} ,
"401" : {
"description" : "Unauthorized"
} ,
"404" : {
"description" : "The user does not exist"
}
}
}
} ,
2021-11-17 13:25:15 +00:00
"/platform/api/v1/users/{id}/login" : {
"parameters" : [
{
"$ref" : "#/parameters/platform_user_id"
}
] ,
2021-05-31 05:28:43 +00:00
"get" : {
"tags" : [
"Users"
] ,
"operationId" : "get-sso-url-of-a-user" ,
"summary" : "Get User SSO Link" ,
"description" : "Get the sso link of a user" ,
"security" : [
{
"platformAppApiKey" : [
]
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"type" : "object" ,
"properties" : {
"url" : {
"type" : "string" ,
"description" : "SSO url to autenticate the user"
}
}
}
} ,
"401" : {
"description" : "Unauthorized"
} ,
"404" : {
"description" : "The given user does not exist"
}
}
}
} ,
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" : {
"tags" : [
"Contacts API"
] ,
"operationId" : "create-a-contact" ,
"summary" : "Create a contact" ,
"description" : "Create a contact" ,
"security" : [
2021-11-17 13:25:15 +00:00
2021-06-15 18:44:09 +00:00
] ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/public_contact_create_update_payload"
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/public_contact"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
}
} ,
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" : {
"tags" : [
"Contacts API"
] ,
"operationId" : "get-details-of-a-contact" ,
"summary" : "Get a contact" ,
"description" : "Get the details of a contact" ,
"security" : [
2021-11-17 13:25:15 +00:00
2021-06-15 18:44:09 +00:00
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/public_contact"
}
} ,
"401" : {
"description" : "Unauthorized"
} ,
"404" : {
"description" : "The given contact does not exist"
}
}
} ,
"patch" : {
"tags" : [
"Contacts API"
] ,
"operationId" : "update-a-contact" ,
"summary" : "Update a contact" ,
"description" : "Update a contact's attributes" ,
"security" : [
2021-11-17 13:25:15 +00:00
2021-06-15 18:44:09 +00:00
] ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/public_contact_create_update_payload"
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/public_contact"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
}
} ,
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" : {
"tags" : [
"Conversations API"
] ,
"operationId" : "create-a-conversation" ,
"summary" : "Create a conversation" ,
"description" : "Create a conversation" ,
"security" : [
2021-11-17 13:25:15 +00:00
2021-06-15 18:44:09 +00:00
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/public_conversation"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
} ,
"get" : {
"tags" : [
"Conversations API"
] ,
"operationId" : "list-all-contact-conversations" ,
"summary" : "List all conversations" ,
"description" : "List all conversations for the contact" ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"type" : "array" ,
"description" : "Array of conversations" ,
"items" : {
"$ref" : "#/definitions/public_conversation"
}
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
}
} ,
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" : {
"tags" : [
"Messages API"
] ,
"operationId" : "create-a-message" ,
"summary" : "Create a message" ,
"description" : "Create a message" ,
"security" : [
2021-11-17 13:25:15 +00:00
2021-06-15 18:44:09 +00:00
] ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/public_message_create_payload"
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/public_message"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
} ,
"get" : {
"tags" : [
"Messages API"
] ,
"operationId" : "list-all-converation-messages" ,
"summary" : "List all messages" ,
"description" : "List all messages in the conversation" ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"type" : "array" ,
"description" : "Array of messages" ,
"items" : {
"$ref" : "#/definitions/public_message"
}
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
}
} ,
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" : {
"tags" : [
"Messages API"
] ,
"operationId" : "update-a-message" ,
"summary" : "Update a message" ,
"description" : "Update a message" ,
"security" : [
2021-11-17 13:25:15 +00:00
2021-06-15 18:44:09 +00:00
] ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/public_message_update_payload"
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/public_message"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
}
} ,
2021-05-31 05:28:43 +00:00
"/api/v1/accounts/{account_id}/agent_bots" : {
"parameters" : [
{
"$ref" : "#/parameters/account_id"
}
] ,
"get" : {
"tags" : [
"Account AgentBots"
] ,
"operationId" : "list-all-account-agent-bots" ,
"summary" : "List all AgentBots" ,
"description" : "List all agent bots available for the current account" ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"type" : "array" ,
"description" : "Array of agent bots" ,
2021-11-17 13:25:15 +00:00
"items" : {
"$ref" : "#/definitions/agent_bot"
}
2021-05-31 05:28:43 +00:00
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
} ,
"post" : {
"tags" : [
"Account AgentBots"
] ,
"operationId" : "create-an-account-agent-bot" ,
"summary" : "Create an Agent Bot" ,
"description" : "Create an agent bot in the account" ,
"parameters" : [
{
"$ref" : "#/parameters/account_id"
} ,
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/agent_bot_create_update_payload"
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/agent_bot"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
}
} ,
"/api/v1/accounts/{account_id}/agent_bots/{id}" : {
"parameters" : [
{
"$ref" : "#/parameters/account_id"
} ,
{
"$ref" : "#/parameters/agent_bot_id"
}
] ,
"get" : {
"tags" : [
"Account AgentBots"
] ,
"operationId" : "get-details-of-a-single-account-agent-bot" ,
"summary" : "Get an agent bot details" ,
"description" : "Get the details of an agent bot in the account" ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/agent_bot"
}
} ,
"401" : {
"description" : "Unauthorized"
} ,
"404" : {
"description" : "The given agent bot ID does not exist in the account"
}
}
} ,
"patch" : {
"tags" : [
"Account AgentBots"
] ,
"operationId" : "update-an-account-agent-bot" ,
"summary" : "Update an agent bot" ,
"description" : "Update an agent bot's attributes" ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/agent_bot_create_update_payload"
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/agent_bot"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
} ,
"delete" : {
"tags" : [
"Account AgentBots"
] ,
"operationId" : "delete-an-account-agent-bot" ,
"summary" : "Delete an AgentBot" ,
"description" : "Delete an AgentBot from the account" ,
"responses" : {
"200" : {
"description" : "Success"
} ,
"401" : {
"description" : "Unauthorized"
} ,
"404" : {
"description" : "The agent bot does not exist in the account"
}
}
}
} ,
2021-10-07 07:51:46 +00:00
"/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" : {
"tags" : [
"Agent"
] ,
"operationId" : "get-account-agents" ,
"summary" : "List Agents in Account" ,
"description" : "Get Details of Agents in an Account" ,
"security" : [
{
"userApiKey" : [
]
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"type" : "array" ,
"description" : "Array of all active agents" ,
"items" : {
"$ref" : "#/definitions/agent"
}
}
} ,
"403" : {
"description" : "Access denied"
}
}
} ,
"post" : {
"tags" : [
"Agent"
] ,
"operationId" : "add-new-agent-to-account" ,
"summary" : "Add a New Agent" ,
"description" : "Add a new Agent to Account" ,
"security" : [
{
"userApiKey" : [
]
}
] ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"type" : "object" ,
2021-11-17 13:25:15 +00:00
"required" : [
"name" ,
"email" ,
"role"
] ,
2021-10-07 07:51:46 +00:00
"properties" : {
"name" : {
"type" : "string" ,
2021-11-17 13:25:15 +00:00
"description" : "Full Name of the agent"
2021-10-07 07:51:46 +00:00
} ,
"email" : {
"type" : "string" ,
2021-11-17 13:25:15 +00:00
"description" : "Email of the Agent"
2021-10-07 07:51:46 +00:00
} ,
"role" : {
"type" : "string" ,
"enum" : [
"agent" ,
"administrator"
] ,
2021-11-17 13:25:15 +00:00
"description" : "Whether its administrator or agent"
2021-10-07 07:51:46 +00:00
} ,
"availability_status" : {
"type" : "string" ,
"enum" : [
"available" ,
"busy" ,
"offline"
] ,
2021-11-12 10:47:59 +00:00
"description" : "The availability setting of the agent."
2021-10-07 07:51:46 +00:00
} ,
"auto_offline" : {
"type" : "boolean" ,
"description" : "Whether the availability status of agent is configured to go offline automatically when away."
}
}
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/agent"
}
} ,
"403" : {
"description" : "Access denied"
}
}
}
} ,
"/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" : {
"tags" : [
"Agent"
] ,
"operationId" : "update-agent-in-account" ,
"summary" : "Update Agent in Account" ,
"description" : "Update an Agent in Account" ,
"security" : [
{
"userApiKey" : [
]
}
] ,
"parameters" : [
{
"in" : "path" ,
"name" : "id" ,
2021-11-17 13:25:15 +00:00
"type" : "integer" ,
2021-10-07 07:51:46 +00:00
"required" : true ,
"description" : "The ID of the agent to be updated."
} ,
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"type" : "object" ,
2021-11-17 13:25:15 +00:00
"required" : [
"role"
] ,
2021-10-07 07:51:46 +00:00
"properties" : {
"role" : {
"type" : "string" ,
"enum" : [
"agent" ,
"administrator"
] ,
2021-11-17 13:25:15 +00:00
"description" : "Whether its administrator or agent"
2021-10-07 07:51:46 +00:00
} ,
2021-11-12 10:47:59 +00:00
"availability" : {
2021-10-07 07:51:46 +00:00
"type" : "string" ,
"enum" : [
"available" ,
"busy" ,
"offline"
] ,
2021-11-12 10:47:59 +00:00
"description" : "The availability setting of the agent."
2021-10-07 07:51:46 +00:00
} ,
"auto_offline" : {
"type" : "boolean" ,
"description" : "Whether the availability status of agent is configured to go offline automatically when away."
}
}
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/agent"
}
} ,
"404" : {
"description" : "Agent not found"
} ,
"403" : {
"description" : "Access denied"
}
}
} ,
"delete" : {
"tags" : [
"Agent"
] ,
"operationId" : "delete-agent-from-account" ,
"summary" : "Remove an Agent from Account" ,
"description" : "Remove an Agent from Account" ,
"security" : [
{
"userApiKey" : [
]
}
] ,
"parameters" : [
{
"in" : "path" ,
"name" : "id" ,
2021-11-17 13:25:15 +00:00
"type" : "integer" ,
2021-10-07 07:51:46 +00:00
"required" : true ,
"description" : "The ID of the agent to be deleted"
}
] ,
"responses" : {
"200" : {
"description" : "Success"
} ,
"404" : {
"description" : "Agent not found"
} ,
"403" : {
"description" : "Access denied"
}
}
}
} ,
2021-05-31 05:28:43 +00:00
"/api/v1/accounts/{account_id}/contacts" : {
"get" : {
"tags" : [
"Contact"
] ,
"operationId" : "contactList" ,
2021-09-04 12:26:46 +00:00
"description" : "Listing all the resolved contacts with pagination (Page size = 15) . Resolved contacts are the ones with a value for identifier, email or phone number" ,
2021-05-31 05:28:43 +00:00
"summary" : "List Contacts" ,
"parameters" : [
2021-09-04 12:26:46 +00:00
{
"$ref" : "#/parameters/account_id"
} ,
2021-05-31 05:28:43 +00:00
{
"$ref" : "#/parameters/contact_sort_param"
} ,
{
"$ref" : "#/parameters/page"
}
2021-05-11 17:08:46 +00:00
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
2021-05-31 05:28:43 +00:00
"$ref" : "#/definitions/contact_list"
2021-05-11 17:08:46 +00:00
}
} ,
2021-05-31 05:28:43 +00:00
"400" : {
"description" : "Bad Request Error" ,
"schema" : {
"$ref" : "#/definitions/bad_request_error"
}
2021-05-11 17:08:46 +00:00
}
}
2021-05-31 05:28:43 +00:00
} ,
2020-03-11 10:49:13 +00:00
"post" : {
2020-02-23 07:24:29 +00:00
"tags" : [
2021-05-31 05:28:43 +00:00
"Contact"
2020-02-23 07:24:29 +00:00
] ,
2021-05-31 05:28:43 +00:00
"operationId" : "contactCreate" ,
2021-09-04 12:26:46 +00:00
"description" : "Create a new Contact" ,
2021-05-31 05:28:43 +00:00
"summary" : "Create Contact" ,
2020-02-23 07:24:29 +00:00
"parameters" : [
2021-09-04 12:26:46 +00:00
{
"$ref" : "#/parameters/account_id"
} ,
2020-02-23 07:24:29 +00:00
{
2020-03-11 10:49:13 +00:00
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
2021-05-31 05:28:43 +00:00
"$ref" : "#/definitions/contact_create"
2020-02-23 07:24:29 +00:00
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
2021-05-31 05:28:43 +00:00
"$ref" : "#/definitions/extended_contact"
}
} ,
"400" : {
"description" : "Bad Request Error" ,
"schema" : {
"$ref" : "#/definitions/bad_request_error"
}
}
}
}
} ,
"/api/v1/accounts/{account_id}/contacts/{id}" : {
2021-11-17 13:25:15 +00:00
"parameters" : [
{
"$ref" : "#/parameters/account_id"
} ,
{
"name" : "id" ,
"in" : "path" ,
"type" : "number" ,
"description" : "ID of the contact" ,
"required" : true
}
] ,
2021-05-31 05:28:43 +00:00
"get" : {
"tags" : [
"Contact"
] ,
"operationId" : "contactDetails" ,
"summary" : "Show Contact" ,
2021-09-04 12:26:46 +00:00
"description" : "Get a contact belonging to the account using ID" ,
2021-05-31 05:28:43 +00:00
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/extended_contact"
2020-02-23 07:24:29 +00:00
}
} ,
2020-03-11 10:49:13 +00:00
"404" : {
2021-05-31 05:28:43 +00:00
"description" : "Contact not found"
2020-03-11 10:49:13 +00:00
} ,
"403" : {
"description" : "Access denied"
2020-02-23 07:24:29 +00:00
}
}
2021-05-31 05:28:43 +00:00
} ,
"put" : {
2020-02-23 07:24:29 +00:00
"tags" : [
2021-05-31 05:28:43 +00:00
"Contact"
2020-02-23 07:24:29 +00:00
] ,
2021-05-31 05:28:43 +00:00
"operationId" : "contactUpdate" ,
"summary" : "Update Contact" ,
2021-09-04 12:26:46 +00:00
"description" : "Update a contact belonging to the account using ID" ,
2020-02-23 07:24:29 +00:00
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
2021-05-31 05:28:43 +00:00
"$ref" : "#/definitions/contact_update"
2020-02-23 07:24:29 +00:00
}
}
] ,
"responses" : {
2021-05-31 05:28:43 +00:00
"204" : {
2020-02-23 07:24:29 +00:00
"description" : "Success" ,
"schema" : {
2021-05-31 05:28:43 +00:00
"$ref" : "#/definitions/contact_base"
2020-02-23 07:24:29 +00:00
}
} ,
"404" : {
2021-05-31 05:28:43 +00:00
"description" : "Contact not found"
2020-02-23 07:24:29 +00:00
} ,
"403" : {
"description" : "Access denied"
}
}
2021-09-23 07:22:49 +00:00
} ,
"delete" : {
"tags" : [
"Contact"
] ,
"operationId" : "contactDelete" ,
"summary" : "Delete Contact" ,
"responses" : {
"200" : {
"description" : "Success"
} ,
"401" : {
"description" : "Unauthorized"
} ,
"404" : {
"description" : "Contact not found"
}
}
2020-02-23 07:24:29 +00:00
}
2020-02-23 19:21:31 +00:00
} ,
2021-05-31 05:28:43 +00:00
"/api/v1/accounts/{account_id}/contacts/{id}/conversations" : {
"get" : {
2020-04-07 05:11:18 +00:00
"tags" : [
2021-05-31 05:28:43 +00:00
"Contact"
2020-04-07 05:11:18 +00:00
] ,
2021-05-31 05:28:43 +00:00
"operationId" : "contactConversations" ,
2021-09-04 12:26:46 +00:00
"summary" : "Contact Conversations" ,
"description" : "Get conversations associated to that contact" ,
2020-04-07 05:11:18 +00:00
"parameters" : [
2021-09-04 12:26:46 +00:00
{
"$ref" : "#/parameters/account_id"
} ,
2020-04-07 05:11:18 +00:00
{
"name" : "id" ,
"in" : "path" ,
"type" : "number" ,
2021-05-31 05:28:43 +00:00
"description" : "ID of the contact" ,
2020-04-07 05:11:18 +00:00
"required" : true
2021-05-31 05:28:43 +00:00
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/contact_conversations"
}
} ,
"404" : {
"description" : "Contact not found"
} ,
"403" : {
"description" : "Access denied"
}
}
}
} ,
"/api/v1/accounts/{account_id}/contacts/search" : {
"get" : {
"tags" : [
"Contact"
] ,
"operationId" : "contactSearch" ,
2021-09-04 12:26:46 +00:00
"description" : "Search the resolved contacts using a search key, currently supports email search (Page size = 15). Resolved contacts are the ones with a value for identifier, email or phone number" ,
2021-05-31 05:28:43 +00:00
"summary" : "Search Contacts" ,
"parameters" : [
2021-09-04 12:26:46 +00:00
{
"$ref" : "#/parameters/account_id"
} ,
2021-05-31 05:28:43 +00:00
{
"name" : "q" ,
"in" : "query" ,
2021-08-13 07:32:46 +00:00
"type" : "string" ,
"description" : "Search using contact `name`, `identifier`, `email` or `phone number`"
2021-05-31 05:28:43 +00:00
} ,
{
"$ref" : "#/parameters/contact_sort_param"
} ,
{
"$ref" : "#/parameters/page"
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"type" : "object" ,
"properties" : {
"payload" : {
"$ref" : "#/definitions/contact_list"
}
}
}
2020-04-07 05:11:18 +00:00
} ,
2021-05-31 05:28:43 +00:00
"401" : {
"description" : "Authentication error" ,
"schema" : {
"$ref" : "#/definitions/bad_request_error"
}
}
}
}
} ,
"/api/v1/accounts/{account_id}/contacts/{id}/contact_inboxes" : {
"post" : {
"tags" : [
"Contact"
] ,
"operationId" : "contactInboxCreation" ,
"description" : "Create a contact inbox record for an inbox" ,
"summary" : "Create contact inbox" ,
"parameters" : [
2021-09-04 12:26:46 +00:00
{
"$ref" : "#/parameters/account_id"
} ,
{
"name" : "id" ,
"in" : "path" ,
"type" : "number" ,
"description" : "ID of the contact" ,
"required" : true
} ,
2020-04-07 05:11:18 +00:00
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"type" : "object" ,
2021-11-17 13:25:15 +00:00
"required" : [
"inbox_id"
] ,
2020-04-07 05:11:18 +00:00
"properties" : {
2021-05-31 05:28:43 +00:00
"inbox_id" : {
2020-04-10 11:12:37 +00:00
"type" : "number" ,
2021-11-17 13:25:15 +00:00
"description" : "The ID of the inbox"
2021-05-31 05:28:43 +00:00
} ,
"source_id" : {
2021-11-17 13:25:15 +00:00
"type" : "string" ,
"description" : "Contact Inbox Source Id"
2020-04-07 05:11:18 +00:00
}
}
}
}
] ,
"responses" : {
2021-05-31 05:28:43 +00:00
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/contact_inboxes"
}
2020-04-07 05:11:18 +00:00
} ,
2021-05-31 05:28:43 +00:00
"401" : {
"description" : "Authentication error" ,
"schema" : {
"$ref" : "#/definitions/bad_request_error"
}
2020-04-07 05:11:18 +00:00
} ,
2021-05-31 05:28:43 +00:00
"422" : {
"description" : "Incorrect payload"
2020-04-07 05:11:18 +00:00
}
}
}
} ,
2021-05-31 05:28:43 +00:00
"/api/v1/accounts/{account_id}/contacts/{id}/contactable_inboxes" : {
2020-04-07 05:11:18 +00:00
"get" : {
"tags" : [
2021-05-31 05:28:43 +00:00
"Contact"
2020-04-07 05:11:18 +00:00
] ,
2021-05-31 05:28:43 +00:00
"operationId" : "contactableInboxesGet" ,
"description" : "Get List of contactable Inboxes" ,
"summary" : "Get Contactable Inboxes" ,
2021-09-04 12:26:46 +00:00
"parameters" : [
{
"$ref" : "#/parameters/account_id"
} ,
{
"name" : "id" ,
"in" : "path" ,
"type" : "number" ,
"description" : "ID of the contact" ,
"required" : true
}
] ,
2020-04-07 05:11:18 +00:00
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
2021-05-31 05:28:43 +00:00
"$ref" : "#/definitions/contactable_inboxes"
2020-04-07 05:11:18 +00:00
}
} ,
2021-05-31 05:28:43 +00:00
"401" : {
"description" : "Authentication error" ,
"schema" : {
"$ref" : "#/definitions/bad_request_error"
}
2020-04-07 05:11:18 +00:00
} ,
2021-05-31 05:28:43 +00:00
"422" : {
"description" : "Incorrect payload"
2020-04-07 05:11:18 +00:00
}
}
}
} ,
2021-05-31 05:28:43 +00:00
"/api/v1/accounts/{account_id}/conversations" : {
2021-11-17 13:25:15 +00:00
"parameters" : [
{
"$ref" : "#/parameters/account_id"
}
] ,
2020-02-23 19:21:31 +00:00
"get" : {
"tags" : [
"Conversation"
] ,
2021-11-17 13:25:15 +00:00
"operationId" : "conversationList" ,
"description" : "List all the conversations with pagination" ,
"summary" : "Conversations List" ,
2020-02-23 19:21:31 +00:00
"parameters" : [
{
2020-03-11 10:49:13 +00:00
"name" : "assignee_type" ,
2020-02-23 19:21:31 +00:00
"in" : "query" ,
2020-03-11 10:49:13 +00:00
"type" : "string" ,
"enum" : [
"me" ,
"unassigned" ,
2021-07-14 17:21:27 +00:00
"all" ,
"assigned"
2021-11-17 13:25:15 +00:00
] ,
"required" : true
2020-03-11 10:49:13 +00:00
} ,
{
"name" : "status" ,
"in" : "query" ,
"type" : "string" ,
"enum" : [
"open" ,
"resolved" ,
2021-11-17 13:25:15 +00:00
"pending"
] ,
"required" : true
2020-03-11 10:49:13 +00:00
} ,
{
"name" : "page" ,
"in" : "query" ,
2021-11-17 13:25:15 +00:00
"type" : "integer" ,
"required" : true
2020-03-11 10:49:13 +00:00
} ,
{
"name" : "inbox_id" ,
"in" : "query" ,
"type" : "integer"
} ,
{
"name" : "labels" ,
"in" : "query" ,
"type" : "array" ,
"items" : {
"type" : "string"
}
2020-02-23 19:21:31 +00:00
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/conversation_list"
}
} ,
"400" : {
"description" : "Bad Request Error" ,
"schema" : {
"$ref" : "#/definitions/bad_request_error"
}
2021-11-17 13:25:15 +00:00
}
2020-04-10 11:12:37 +00:00
}
} ,
"post" : {
"tags" : [
"Conversation"
] ,
"operationId" : "newConversation" ,
"summary" : "Create New Conversation" ,
2021-05-11 17:08:46 +00:00
"description" : "Creating a conversation in chatwoot requires a source id. \n\n Learn more about source_id: https://github.com/chatwoot/chatwoot/wiki/Building-on-Top-of-Chatwoot:-Importing-Existing-Contacts-and-Creating-Conversations" ,
2020-06-25 18:05:16 +00:00
"security" : [
{
"userApiKey" : [
]
} ,
{
"agentBotApiKey" : [
]
}
] ,
2020-04-10 11:12:37 +00:00
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"type" : "object" ,
"properties" : {
"source_id" : {
2021-11-17 13:25:15 +00:00
"type" : "string" ,
"description" : "Conversation source id"
2021-05-11 17:08:46 +00:00
} ,
"inbox_id" : {
"type" : "string" ,
"description" : "Id of inbox in which the conversation is created <br/> Allowed Inbox Types: Website, Phone, Api, Email "
} ,
"contact_id" : {
2020-04-10 11:12:37 +00:00
"type" : "string" ,
2021-05-11 17:08:46 +00:00
"description" : "Contact Id for which conversation is created"
2021-01-07 08:17:38 +00:00
} ,
"additional_attributes" : {
"type" : "object" ,
"description" : "Lets you specify attributes like browser information"
2021-06-07 14:34:31 +00:00
} ,
"status" : {
"type" : "string" ,
"enum" : [
"open" ,
"resolved" ,
2021-07-21 16:32:43 +00:00
"pending"
2021-06-07 14:34:31 +00:00
] ,
2021-07-21 16:32:43 +00:00
"description" : "Specify the conversation whether it's pending, open, closed"
2021-10-11 09:47:30 +00:00
} ,
"assignee_id" : {
"type" : "string" ,
"description" : "Agent Id for assigning a conversation to an agent"
} ,
"team_id" : {
"type" : "string" ,
"description" : "Team Id for assigning a conversation to a team"
2020-04-10 11:12:37 +00:00
}
}
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "number" ,
"description" : "ID of the conversation"
} ,
"account_id" : {
"type" : "number" ,
"description" : "Account Id"
} ,
"inbox_id" : {
"type" : "number" ,
"description" : "ID of the inbox"
}
}
}
} ,
"403" : {
"description" : "Access denied"
2020-02-23 19:21:31 +00:00
}
}
}
} ,
2021-11-12 13:58:03 +00:00
"/api/v1/accounts/{account_id}/conversations/filter" : {
2021-11-17 13:25:15 +00:00
"parameters" : [
{
"$ref" : "#/parameters/account_id"
}
] ,
2021-11-12 13:58:03 +00:00
"post" : {
"tags" : [
"Conversation"
] ,
"operationId" : "conversationFilter" ,
"description" : "Filter conversations with custom filter options and pagination" ,
"summary" : "Conversations Filter" ,
"security" : [
{
"userApiKey" : [
]
} ,
{
"agentBotApiKey" : [
]
}
] ,
"parameters" : [
{
"name" : "page" ,
"in" : "query" ,
"type" : "integer"
} ,
{
"name" : "payload" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"attribute_key" : {
"type" : "string" ,
"description" : "filter attribute name"
} ,
"filter_operator" : {
"type" : "string" ,
"description" : "filter operator name"
} ,
"values" : {
"type" : "array" ,
2021-11-17 13:25:15 +00:00
"items" : {
"type" : "string"
} ,
2021-11-12 13:58:03 +00:00
"description" : "array of the attribute values to filter"
} ,
"query_operator" : {
"type" : "string" ,
"description" : "query operator name"
}
}
}
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/conversation_list"
}
} ,
"400" : {
"description" : "Bad Request Error" ,
"schema" : {
"$ref" : "#/definitions/bad_request_error"
}
2021-11-17 13:25:15 +00:00
}
2021-11-12 13:58:03 +00:00
}
}
} ,
2021-11-17 13:25:15 +00:00
"/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"
}
] ,
2020-02-23 19:21:31 +00:00
"get" : {
"tags" : [
"Conversation"
] ,
2021-05-11 14:50:52 +00:00
"operationId" : "get-details-of-a-conversation" ,
2020-02-23 19:21:31 +00:00
"summary" : "Conversation Details" ,
"description" : "Get all details regarding a conversation with all messages in the conversation" ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/conversation_show"
}
} ,
"404" : {
"description" : "Conversation not found"
} ,
"403" : {
"description" : "Access denied"
}
}
}
} ,
2021-05-31 05:28:43 +00:00
"/api/v1/accounts/{account_id}/conversations/{conversation_id}/toggle_status" : {
2021-05-11 14:50:52 +00:00
"parameters" : [
{
"$ref" : "#/parameters/account_id"
} ,
{
"$ref" : "#/parameters/conversation_id"
}
] ,
2020-02-23 19:21:31 +00:00
"post" : {
"tags" : [
"Conversation"
] ,
2021-05-11 14:50:52 +00:00
"operationId" : "toggle-status-of-a-conversation" ,
2020-02-23 19:21:31 +00:00
"summary" : "Toggle Status" ,
"description" : "Toggles the status of the conversation between open and resolved" ,
2020-06-25 18:05:16 +00:00
"security" : [
{
"userApiKey" : [
]
} ,
{
"agentBotApiKey" : [
]
}
] ,
2020-02-23 19:21:31 +00:00
"parameters" : [
2020-03-11 10:49:13 +00:00
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"type" : "object" ,
2021-11-17 13:25:15 +00:00
"required" : [
"status"
] ,
2020-03-11 10:49:13 +00:00
"properties" : {
"status" : {
"type" : "string" ,
"enum" : [
"open" ,
2020-06-25 18:05:16 +00:00
"resolved" ,
2021-07-21 16:32:43 +00:00
"pending"
2020-03-11 10:49:13 +00:00
] ,
"description" : "The status of the conversation"
}
}
}
2020-02-23 19:21:31 +00:00
}
] ,
"responses" : {
2020-03-11 10:49:13 +00:00
"200" : {
2020-02-23 19:21:31 +00:00
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/conversation_status_toggle"
}
} ,
"404" : {
"description" : "Conversation not found"
} ,
2021-05-11 14:50:52 +00:00
"401" : {
"description" : "Unauthorized"
2020-02-23 19:21:31 +00:00
}
}
}
} ,
2021-05-31 05:28:43 +00:00
"/api/v1/accounts/{account_id}/conversations/{conversation_id}/assignments" : {
"parameters" : [
{
"$ref" : "#/parameters/account_id"
} ,
{
"$ref" : "#/parameters/conversation_id"
}
] ,
2021-05-11 17:08:46 +00:00
"post" : {
"tags" : [
2021-05-31 05:28:43 +00:00
"Conversation Assignment"
2021-05-11 17:08:46 +00:00
] ,
2021-05-31 05:28:43 +00:00
"operationId" : "assign-a-conversation" ,
"summary" : "Assign Conversation" ,
"description" : "Assign a conversation to an agent or a team" ,
2021-05-11 17:08:46 +00:00
"parameters" : [
{
2021-05-31 05:28:43 +00:00
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"type" : "object" ,
"properties" : {
"assignee_id" : {
"type" : "number" ,
"description" : "Id of the assignee user"
} ,
"team_id" : {
"type" : "number" ,
"description" : "Id of the team. If the assignee_id is present, this param would be ignored"
}
}
2021-05-11 17:08:46 +00:00
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
2021-05-31 05:28:43 +00:00
"$ref" : "#/definitions/user"
2021-05-11 17:08:46 +00:00
}
} ,
"404" : {
"description" : "Conversation not found"
} ,
2021-05-31 05:28:43 +00:00
"401" : {
"description" : "Unauthorized"
2021-05-11 17:08:46 +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"
}
] ,
2020-03-11 10:49:13 +00:00
"get" : {
"tags" : [
2021-05-31 05:28:43 +00:00
"Conversation Labels"
2020-03-11 10:49:13 +00:00
] ,
2021-05-31 05:28:43 +00:00
"operationId" : "list-all-labels-of-a-conversation" ,
"summary" : "List Labels" ,
"description" : "Lists all the labels of a conversation" ,
2020-03-11 10:49:13 +00:00
"responses" : {
"200" : {
2021-05-31 05:28:43 +00:00
"description" : "Success" ,
2020-03-11 10:49:13 +00:00
"schema" : {
2021-05-31 05:28:43 +00:00
"$ref" : "#/definitions/conversation_labels"
2020-03-11 10:49:13 +00:00
}
} ,
"404" : {
"description" : "Conversation not found"
} ,
2021-05-11 14:50:52 +00:00
"401" : {
"description" : "Unauthorized"
2020-03-11 10:49:13 +00:00
}
}
} ,
2020-02-23 19:21:31 +00:00
"post" : {
"tags" : [
2021-05-31 05:28:43 +00:00
"Conversation Labels"
2020-02-23 19:21:31 +00:00
] ,
2021-05-31 05:28:43 +00:00
"operationId" : "conversation-add-labels" ,
"summary" : "Add Labels" ,
"description" : "Add labels to a conversation. Note that this API would overwrite the existing list of labels associated to the conversation." ,
"parameters" : [
2020-06-25 18:05:16 +00:00
{
2021-05-31 05:28:43 +00:00
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"type" : "object" ,
"properties" : {
"labels" : {
"type" : "array" ,
"description" : "Array of labels (comma-separated strings)" ,
2021-11-17 13:25:15 +00:00
"items" : {
2021-05-31 05:28:43 +00:00
"type" : "string"
}
}
}
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/conversation_labels"
}
2020-06-25 18:05:16 +00:00
} ,
2021-05-31 05:28:43 +00:00
"404" : {
"description" : "Conversation not found"
} ,
"401" : {
"description" : "Unauthorized"
}
}
}
} ,
"/api/v1/accounts/{account_id}/inboxes" : {
"get" : {
"tags" : [
"Inbox"
] ,
"operationId" : "listAllInboxes" ,
"summary" : "List all inboxes" ,
"description" : "List all inboxes available in the current account" ,
2021-09-04 12:26:46 +00:00
"parameters" : [
{
"$ref" : "#/parameters/account_id"
}
] ,
2021-05-31 05:28:43 +00:00
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"type" : "array" ,
"description" : "Array of inboxes" ,
"items" : {
"$ref" : "#/definitions/inbox"
}
}
} ,
"404" : {
"description" : "Inbox not found"
} ,
"403" : {
"description" : "Access denied"
2020-06-25 18:05:16 +00:00
}
2021-05-31 05:28:43 +00:00
}
}
} ,
2021-09-04 12:26:46 +00:00
"/api/v1/accounts/{account_id}/inboxes/{id}/" : {
"get" : {
"tags" : [
"Inbox"
] ,
2021-09-14 06:25:02 +00:00
"operationId" : "GetInbox" ,
2021-09-04 12:26:46 +00:00
"summary" : "Get an inbox" ,
"description" : "Get an inbox available in the current account" ,
"parameters" : [
{
"$ref" : "#/parameters/account_id"
} ,
{
"name" : "id" ,
"in" : "path" ,
"type" : "number" ,
"description" : "ID of the inbox" ,
"required" : true
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/inbox"
}
} ,
"404" : {
"description" : "Inbox not found"
} ,
"403" : {
"description" : "Access denied"
}
}
}
} ,
2021-05-31 05:28:43 +00:00
"/api/v1/accounts/{account_id}/inboxes/" : {
"post" : {
"tags" : [
"Inbox"
2020-06-25 18:05:16 +00:00
] ,
2021-05-31 05:28:43 +00:00
"operationId" : "inboxCreation" ,
"summary" : "Create an inbox" ,
"description" : "You can create more than one website inbox in each account" ,
2020-02-23 19:21:31 +00:00
"parameters" : [
2021-09-04 12:26:46 +00:00
{
"$ref" : "#/parameters/account_id"
} ,
2020-03-11 10:49:13 +00:00
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
2021-05-31 05:28:43 +00:00
"type" : "object" ,
"properties" : {
"name" : {
"type" : "string" ,
"description" : "The name of the inbox"
} ,
"avatar" : {
2021-11-17 13:25:15 +00:00
"type" : "string" ,
"format" : "binary" ,
2021-05-31 05:28:43 +00:00
"description" : "File for avatar image"
} ,
"channel" : {
"type" : "object" ,
"properties" : {
"type" : {
"type" : "string" ,
"enum" : [
"web_widget"
]
} ,
"website_url" : {
"type" : "string" ,
"description" : "URL at which the widget will be loaded"
} ,
"welcome_title" : {
"type" : "string" ,
"description" : "Welcome title to be displayed on the widget"
} ,
"welcome_tagline" : {
"type" : "string" ,
"description" : "Welcome tagline to be displayed on the widget"
} ,
"agent_away_message" : {
"type" : "string" ,
"description" : "A message which will be sent if there is not agent available. This is not available if agentbot is connected"
} ,
"widget_color" : {
"type" : "string" ,
"description" : "A Hex-color string used to customize the widget"
}
}
}
}
2020-03-11 10:49:13 +00:00
}
2020-02-23 19:21:31 +00:00
}
] ,
"responses" : {
"200" : {
2020-03-11 10:49:13 +00:00
"description" : "Success" ,
"schema" : {
2021-05-31 05:28:43 +00:00
"$ref" : "#/definitions/inbox"
2020-03-11 10:49:13 +00:00
}
2020-02-23 19:21:31 +00:00
} ,
"404" : {
2021-05-31 05:28:43 +00:00
"description" : "Inbox not found"
2020-02-23 19:21:31 +00:00
} ,
"403" : {
"description" : "Access denied"
}
}
}
} ,
2021-05-31 05:28:43 +00:00
"/api/v1/accounts/{account_id}/inboxes/{id}" : {
"patch" : {
2021-05-11 14:50:52 +00:00
"tags" : [
2021-05-31 05:28:43 +00:00
"Inbox"
2021-05-11 14:50:52 +00:00
] ,
2021-05-31 05:28:43 +00:00
"operationId" : "updateInbox" ,
"summary" : "Update Inbox" ,
"description" : "Add avatar and disable auto assignment for an inbox" ,
"parameters" : [
2021-09-04 12:26:46 +00:00
{
"$ref" : "#/parameters/account_id"
} ,
2021-05-31 05:28:43 +00:00
{
"name" : "id" ,
"in" : "path" ,
"type" : "number" ,
"description" : "ID of the inbox" ,
"required" : true
2021-05-11 14:50:52 +00:00
} ,
2021-05-31 05:28:43 +00:00
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"type" : "object" ,
2021-11-17 13:25:15 +00:00
"required" : [
"enable_auto_assignment"
] ,
2021-05-31 05:28:43 +00:00
"properties" : {
"name" : {
"type" : "string" ,
"description" : "The name of the inbox"
} ,
"enable_auto_assignment" : {
"type" : "boolean" ,
"description" : "Enable Auto Assignment"
} ,
"avatar" : {
2021-11-17 13:25:15 +00:00
"type" : "string" ,
"format" : "binary" ,
2021-05-31 05:28:43 +00:00
"description" : "Image file for avatar"
} ,
"channel" : {
"type" : "object" ,
"properties" : {
"website_url" : {
"type" : "string" ,
"description" : "URL at which the widget will be loaded"
} ,
"welcome_title" : {
"type" : "string" ,
"description" : "Welcome title to be displayed on the widget"
} ,
"welcome_tagline" : {
"type" : "string" ,
"description" : "Welcome tagline to be displayed on the widget"
} ,
"agent_away_message" : {
"type" : "string" ,
"description" : "A message which will be sent if there is not agent available. This is not available if agentbot is connected"
} ,
"widget_color" : {
"type" : "string" ,
"description" : "A Hex-color string used to customize the widget"
}
}
}
}
}
2021-05-11 14:50:52 +00:00
}
2020-02-23 19:21:31 +00:00
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
2021-05-31 05:28:43 +00:00
"$ref" : "#/definitions/inbox"
2020-02-23 19:21:31 +00:00
}
} ,
"404" : {
2021-05-31 05:28:43 +00:00
"description" : "Inbox not found"
2020-02-23 19:21:31 +00:00
} ,
2021-05-31 05:28:43 +00:00
"403" : {
"description" : "Access denied"
2020-02-23 19:21:31 +00:00
}
}
2021-05-31 05:28:43 +00:00
}
} ,
"/api/v1/accounts/{account_id}/inboxes/{id}/agent_bot" : {
"get" : {
2020-02-23 19:21:31 +00:00
"tags" : [
2021-05-31 05:28:43 +00:00
"Inbox"
2020-02-23 19:21:31 +00:00
] ,
2021-05-31 05:28:43 +00:00
"operationId" : "getInboxAgentBot" ,
"summary" : "Show Inbox Agent Bot" ,
"description" : "See if an agent bot is associated to the Inbox" ,
2020-02-23 19:21:31 +00:00
"parameters" : [
2021-09-04 12:26:46 +00:00
{
"$ref" : "#/parameters/account_id"
} ,
2020-02-23 19:21:31 +00:00
{
2021-05-31 05:28:43 +00:00
"name" : "id" ,
"in" : "path" ,
"type" : "number" ,
"description" : "ID of the inbox" ,
"required" : true
2020-02-23 19:21:31 +00:00
}
] ,
"responses" : {
2021-05-31 05:28:43 +00:00
"204" : {
2020-02-23 19:21:31 +00:00
"description" : "Success" ,
"schema" : {
2021-05-31 05:28:43 +00:00
"$ref" : "#/definitions/agent_bot"
2020-02-23 19:21:31 +00:00
}
} ,
"404" : {
2021-05-31 05:28:43 +00:00
"description" : "Inbox not found, Agent bot not found"
2020-02-23 19:21:31 +00:00
} ,
2021-05-31 05:28:43 +00:00
"403" : {
"description" : "Access denied"
2020-02-23 19:21:31 +00:00
}
}
}
} ,
2021-05-31 05:28:43 +00:00
"/api/v1/accounts/{account_id}/inboxes/{id}/set_agent_bot" : {
2020-02-23 19:21:31 +00:00
"post" : {
"tags" : [
2021-05-31 05:28:43 +00:00
"Inbox"
2020-02-23 19:21:31 +00:00
] ,
2021-05-31 05:28:43 +00:00
"operationId" : "updateAgentBot" ,
"summary" : "Add or remove agent bot" ,
"description" : "To add an agent bot pass agent_bot id, to remove agent bot from an inbox pass null" ,
2020-02-23 19:21:31 +00:00
"parameters" : [
2021-09-04 12:26:46 +00:00
{
"$ref" : "#/parameters/account_id"
} ,
2021-05-31 05:28:43 +00:00
{
"name" : "id" ,
"in" : "path" ,
"type" : "number" ,
"description" : "ID of the inbox" ,
"required" : true
} ,
2020-02-23 19:21:31 +00:00
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"type" : "object" ,
2021-11-17 13:25:15 +00:00
"required" : [
"agent_bot"
] ,
2020-02-23 19:21:31 +00:00
"properties" : {
2021-05-31 05:28:43 +00:00
"agent_bot" : {
2021-05-05 15:09:00 +00:00
"type" : "number" ,
2021-05-31 05:28:43 +00:00
"description" : "Agent bot ID"
2020-02-23 19:21:31 +00:00
}
}
}
}
] ,
"responses" : {
2021-05-31 05:28:43 +00:00
"204" : {
"description" : "Success"
2020-02-23 19:21:31 +00:00
} ,
"404" : {
2021-05-31 05:28:43 +00:00
"description" : "Inbox not found, Agent bot not found"
2020-02-23 19:21:31 +00:00
} ,
2021-05-31 05:28:43 +00:00
"403" : {
"description" : "Access denied"
2020-02-23 19:21:31 +00:00
}
}
}
} ,
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" : {
"tags" : [
"Inbox"
] ,
"operationId" : "get-inbox-members" ,
"summary" : "List Agents in Inbox" ,
"description" : "Get Details of Agents in an Inbox" ,
"security" : [
{
"userApiKey" : [
]
}
] ,
"parameters" : [
{
"$ref" : "#/parameters/inbox_id"
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"type" : "array" ,
"description" : "Array of all active agents" ,
"items" : {
"$ref" : "#/definitions/agent"
}
}
} ,
"404" : {
"description" : "Inbox not found"
} ,
"403" : {
"description" : "Access denied"
}
}
} ,
"post" : {
"tags" : [
"Inbox"
] ,
"operationId" : "add-new-agent-to-inbox" ,
"summary" : "Add a New Agent" ,
"description" : "Add a new Agent to Inbox" ,
"security" : [
{
"userApiKey" : [
]
}
] ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"type" : "object" ,
2021-11-17 13:25:15 +00:00
"required" : [
"inbox_id" ,
"user_ids"
] ,
2021-09-14 06:25:02 +00:00
"properties" : {
"inbox_id" : {
"type" : "string" ,
2021-11-17 13:25:15 +00:00
"description" : "The ID of the inbox"
2021-09-14 06:25:02 +00:00
} ,
"user_ids" : {
"type" : "array" ,
2021-11-17 13:25:15 +00:00
"items" : {
"type" : "integer"
} ,
"description" : "IDs of users to be added to the inbox"
2021-09-14 06:25:02 +00:00
}
}
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"type" : "array" ,
"description" : "Array of all active agents" ,
"items" : {
"$ref" : "#/definitions/agent"
}
}
} ,
"404" : {
"description" : "Inbox not found"
} ,
"403" : {
"description" : "Access denied"
} ,
"422" : {
"description" : "User must exist"
}
}
} ,
"patch" : {
"tags" : [
"Inbox"
] ,
"operationId" : "update-agents-in-inbox" ,
"summary" : "Update Agents in Inbox" ,
2021-11-17 13:25:15 +00:00
"description" : "All agents except the one passed in params will be removed" ,
2021-09-14 06:25:02 +00:00
"security" : [
{
"userApiKey" : [
]
}
] ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"type" : "object" ,
2021-11-17 13:25:15 +00:00
"required" : [
"inbox_id" ,
"user_ids"
] ,
2021-09-14 06:25:02 +00:00
"properties" : {
"inbox_id" : {
"type" : "string" ,
2021-11-17 13:25:15 +00:00
"description" : "The ID of the inbox"
2021-09-14 06:25:02 +00:00
} ,
"user_ids" : {
"type" : "array" ,
2021-11-17 13:25:15 +00:00
"items" : {
"type" : "integer"
} ,
"description" : "IDs of users to be added to the inbox"
2021-09-14 06:25:02 +00:00
}
}
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"type" : "array" ,
"description" : "Array of all active agents" ,
"items" : {
"$ref" : "#/definitions/agent"
}
}
} ,
"404" : {
"description" : "Inbox not found"
} ,
"403" : {
"description" : "Access denied"
} ,
"422" : {
"description" : "User must exist"
}
}
} ,
"delete" : {
"tags" : [
"Inbox"
] ,
"operationId" : "delete-agent-in-inbox" ,
"summary" : "Remove an Agent from Inbox" ,
"description" : "Remove an Agent from Inbox" ,
"security" : [
{
"userApiKey" : [
]
}
] ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"type" : "object" ,
2021-11-17 13:25:15 +00:00
"required" : [
"inbox_id" ,
"user_ids"
] ,
2021-09-14 06:25:02 +00:00
"properties" : {
"inbox_id" : {
"type" : "string" ,
2021-11-17 13:25:15 +00:00
"description" : "The ID of the inbox"
2021-09-14 06:25:02 +00:00
} ,
"user_ids" : {
"type" : "array" ,
2021-11-17 13:25:15 +00:00
"items" : {
"type" : "integer"
} ,
"description" : "IDs of users to be deleted from the inbox"
2021-09-14 06:25:02 +00:00
}
}
}
}
] ,
"responses" : {
"200" : {
"description" : "Success"
} ,
"404" : {
"description" : "Inbox not found"
} ,
"403" : {
"description" : "Access denied"
} ,
"422" : {
"description" : "User must exist"
}
}
}
} ,
2021-11-17 13:25:15 +00:00
"/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages" : {
2021-05-31 05:28:43 +00:00
"parameters" : [
{
"$ref" : "#/parameters/account_id"
} ,
{
"$ref" : "#/parameters/conversation_id"
}
] ,
2020-03-11 10:49:13 +00:00
"get" : {
"tags" : [
2021-05-31 05:28:43 +00:00
"Messages"
2020-03-11 10:49:13 +00:00
] ,
2021-05-31 05:28:43 +00:00
"operationId" : "list-all-messages" ,
"summary" : "Get messages" ,
"description" : "List all messages of a conversation" ,
2020-03-11 10:49:13 +00:00
"responses" : {
"200" : {
2021-11-17 13:25:15 +00:00
"description" : "Success" ,
2020-03-11 10:49:13 +00:00
"schema" : {
2021-11-17 13:25:15 +00:00
"type" : "array" ,
"description" : "Array of messages" ,
"items" : {
"allOf" : [
{
"$ref" : "#/definitions/generic_id"
} ,
{
"$ref" : "#/definitions/message"
}
]
}
2020-03-11 10:49:13 +00:00
}
} ,
"404" : {
2021-05-31 05:28:43 +00:00
"description" : "Conversation not found"
2020-03-11 10:49:13 +00:00
} ,
2021-05-31 05:28:43 +00:00
"401" : {
"description" : "Unauthorized"
2020-03-11 10:49:13 +00:00
}
}
} ,
2021-05-31 05:28:43 +00:00
"post" : {
2020-03-11 10:49:13 +00:00
"tags" : [
2021-05-31 05:28:43 +00:00
"Messages"
2020-03-11 10:49:13 +00:00
] ,
2021-05-31 05:28:43 +00:00
"operationId" : "create-a-new-message-in-a-conversation" ,
"summary" : "Create New Message" ,
"description" : "Create a new message in the conversation" ,
"security" : [
2020-03-11 10:49:13 +00:00
{
2021-05-31 05:28:43 +00:00
"userApiKey" : [
]
2020-02-23 19:21:31 +00:00
} ,
2021-05-31 05:28:43 +00:00
{
"agentBotApiKey" : [
]
}
] ,
"parameters" : [
2020-02-23 19:21:31 +00:00
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
2021-05-31 05:28:43 +00:00
"$ref" : "#/definitions/conversation_message_create"
2020-02-23 19:21:31 +00:00
}
}
] ,
"responses" : {
2021-05-31 05:28:43 +00:00
"200" : {
2020-02-23 19:21:31 +00:00
"description" : "Success" ,
"schema" : {
2021-05-31 05:28:43 +00:00
"allOf" : [
{
"$ref" : "#/definitions/generic_id"
} ,
{
"$ref" : "#/definitions/message"
}
]
2020-02-23 19:21:31 +00:00
}
} ,
"404" : {
2021-05-31 05:28:43 +00:00
"description" : "Conversation not found"
2020-03-11 10:49:13 +00:00
} ,
"403" : {
"description" : "Access denied"
}
}
}
} ,
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" : {
2020-03-11 10:49:13 +00:00
"tags" : [
2021-05-31 05:28:43 +00:00
"Messages"
2020-03-11 10:49:13 +00:00
] ,
2021-05-31 05:28:43 +00:00
"operationId" : "delete-a-message" ,
"summary" : "Delete a message" ,
"description" : "Delete a message and it's attachments from the conversation." ,
"responses" : {
"200" : {
"description" : "Success"
} ,
"401" : {
"description" : "Unauthorized"
} ,
"404" : {
"description" : "The message or conversation does not exist in the account"
2020-03-11 10:49:13 +00:00
}
2021-05-31 05:28:43 +00:00
}
}
} ,
"/api/v1/accounts/{account_id}/integrations/apps" : {
"parameters" : [
{
"$ref" : "#/parameters/account_id"
}
] ,
"get" : {
"tags" : [
"Integrations"
2020-03-11 10:49:13 +00:00
] ,
2021-05-31 05:28:43 +00:00
"operationId" : "get-details-of-all-integrations" ,
"summary" : "List all the Integrations" ,
"description" : "Get the details of all Integrations available for the account" ,
2020-03-11 10:49:13 +00:00
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
2021-05-31 05:28:43 +00:00
"type" : "array" ,
"description" : "Array of Integration apps" ,
"items" : {
"$ref" : "#/definitions/integrations_app"
}
2020-03-11 10:49:13 +00:00
}
} ,
2021-05-31 05:28:43 +00:00
"401" : {
"description" : "Unauthorized"
2020-02-23 19:21:31 +00:00
} ,
2021-05-31 05:28:43 +00:00
"404" : {
"description" : "Url not found"
2020-02-23 19:21:31 +00:00
}
}
}
2020-08-18 06:44:37 +00:00
} ,
2021-05-31 05:28:43 +00:00
"/api/v1/accounts/{account_id}/integrations/hooks" : {
"post" : {
2020-08-18 06:44:37 +00:00
"tags" : [
2021-05-31 05:28:43 +00:00
"Integrations"
2020-08-18 06:44:37 +00:00
] ,
2021-05-31 05:28:43 +00:00
"operationId" : "create-an-integration-hook" ,
"summary" : "Create an integration hook" ,
"description" : "Create an integration hook" ,
2020-08-18 06:44:37 +00:00
"parameters" : [
{
2021-05-31 05:28:43 +00:00
"$ref" : "#/parameters/account_id"
2021-05-13 08:02:19 +00:00
} ,
{
2021-05-31 05:28:43 +00:00
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/integrations_hook_create_payload"
}
2020-08-18 06:44:37 +00:00
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
2021-05-31 05:28:43 +00:00
"$ref" : "#/definitions/integrations_hook"
2020-08-18 06:44:37 +00:00
}
} ,
"401" : {
2021-05-31 05:28:43 +00:00
"description" : "Unauthorized"
2020-08-18 06:44:37 +00:00
}
}
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" : {
2020-08-18 06:44:37 +00:00
"tags" : [
2021-05-31 05:28:43 +00:00
"Integrations"
2020-08-18 06:44:37 +00:00
] ,
2021-05-31 05:28:43 +00:00
"operationId" : "update-an-integrations-hook" ,
"summary" : "Update an Integration Hook" ,
"description" : "Update an Integration Hook" ,
2020-08-18 06:44:37 +00:00
"parameters" : [
2021-05-31 05:28:43 +00:00
{
"$ref" : "#/parameters/account_id"
} ,
{
"$ref" : "#/parameters/hook_id"
} ,
2020-08-18 06:44:37 +00:00
{
2021-01-14 15:06:04 +00:00
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
2021-05-31 05:28:43 +00:00
"$ref" : "#/definitions/integrations_hook_update_payload"
2021-01-14 15:06:04 +00:00
}
2020-08-18 06:44:37 +00:00
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
2021-05-31 05:28:43 +00:00
"$ref" : "#/definitions/integrations_hook"
2020-08-18 06:44:37 +00:00
}
} ,
"401" : {
2021-05-31 05:28:43 +00:00
"description" : "Unauthorized"
2020-08-18 06:44:37 +00:00
}
}
2021-05-31 05:28:43 +00:00
} ,
"delete" : {
2021-05-11 17:08:46 +00:00
"tags" : [
2021-05-31 05:28:43 +00:00
"Integrations"
] ,
"operationId" : "delete-an-integration-hook" ,
"summary" : "Delete an Integration Hook" ,
"description" : "Delete an Integration Hook" ,
"parameters" : [
{
"$ref" : "#/parameters/account_id"
} ,
{
"$ref" : "#/parameters/hook_id"
}
2021-05-11 17:08:46 +00:00
] ,
"responses" : {
"200" : {
2021-05-31 05:28:43 +00:00
"description" : "Success"
2021-05-11 17:08:46 +00:00
} ,
"401" : {
2021-05-31 05:28:43 +00:00
"description" : "Unauthorized"
2021-05-11 17:08:46 +00:00
} ,
2021-05-31 05:28:43 +00:00
"404" : {
"description" : "The hook does not exist in the account"
2021-05-11 17:08:46 +00:00
}
}
}
} ,
2020-08-18 06:44:37 +00:00
"/profile" : {
"get" : {
"tags" : [
"Profile"
] ,
"operationId" : "fetchProfile" ,
"summary" : "Fetch user profile" ,
"description" : "Get the user profile details" ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/user"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
}
2021-05-05 15:09:00 +00:00
} ,
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" : {
"tags" : [
"Teams"
] ,
"operationId" : "list-all-teams" ,
"summary" : "List all teams" ,
"description" : "List all teams available in the current account" ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
2021-05-31 05:28:43 +00:00
"type" : "array" ,
"description" : "Array of teams" ,
"items" : {
"$ref" : "#/definitions/team"
}
2021-05-05 15:09:00 +00:00
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
} ,
"post" : {
"tags" : [
"Teams"
] ,
"operationId" : "create-a-team" ,
"summary" : "Create a team" ,
"description" : "Create a team in the account" ,
"parameters" : [
{
"$ref" : "#/parameters/account_id"
} ,
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/team_create_update_payload"
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/team"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
}
} ,
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" : {
"tags" : [
"Teams"
] ,
"operationId" : "get-details-of-a-single-team" ,
"summary" : "Get a team details" ,
"description" : "Get the details of a team in the account" ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/team"
}
} ,
"401" : {
"description" : "Unauthorized"
} ,
"404" : {
2021-05-20 15:16:45 +00:00
"description" : "The given team ID does not exist in the account"
2021-05-05 15:09:00 +00:00
}
}
} ,
"patch" : {
"tags" : [
"Teams"
] ,
"operationId" : "update-a-team" ,
"summary" : "Update a team" ,
"description" : "Update a team's attributes" ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/team_create_update_payload"
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/team"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
} ,
"delete" : {
"tags" : [
"Teams"
] ,
2021-05-11 14:50:52 +00:00
"operationId" : "delete-a-team" ,
2021-05-05 15:09:00 +00:00
"summary" : "Delete a team" ,
"description" : "Delete a team from the account" ,
"responses" : {
"200" : {
"description" : "Success"
} ,
"401" : {
"description" : "Unauthorized"
} ,
"404" : {
"description" : "The team does not exist in the account"
}
}
}
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" : {
"tags" : [
"Custom Filter"
] ,
"operationId" : "list-all-filters" ,
"summary" : "List all custom filters" ,
"description" : "List all custom filters in a category of a user" ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"type" : "array" ,
"description" : "Array of custom filters" ,
"items" : {
"$ref" : "#/definitions/custom_filter"
}
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
} ,
"post" : {
"tags" : [
"Custom Filter"
] ,
"operationId" : "create-a-custom-filter" ,
"summary" : "Create a custom filter" ,
"description" : "Create a custom filter in the account" ,
"parameters" : [
{
"$ref" : "#/parameters/account_id"
} ,
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/custom_filter_create_update_payload"
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/custom_filter"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
}
} ,
"/api/v1/accounts/{account_id}/custom_filters/{custom_filter_id}" : {
"parameters" : [
{
"$ref" : "#/parameters/account_id"
} ,
{
"$ref" : "#/parameters/custom_filter_id"
}
] ,
"get" : {
"tags" : [
"Custom Filter"
] ,
"operationId" : "get-details-of-a-single-custom-filter" ,
"summary" : "Get a custom filter details" ,
"description" : "Get the details of a custom filter in the account" ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/custom_filter"
}
} ,
"401" : {
"description" : "Unauthorized"
} ,
"404" : {
"description" : "The given team ID does not exist in the account"
}
}
} ,
"patch" : {
"tags" : [
"Custom Filter"
] ,
"operationId" : "update-a-custom-filter" ,
"summary" : "Update a custom filter" ,
"description" : "Update a custom filter's attributes" ,
"parameters" : [
{
"name" : "data" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/custom_filter_create_update_payload"
}
}
] ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"$ref" : "#/definitions/custom_filter"
}
} ,
"401" : {
"description" : "Unauthorized"
}
}
} ,
"delete" : {
"tags" : [
"Custom Filter"
] ,
"operationId" : "delete-a-custom-filter" ,
"summary" : "Delete a custom filter" ,
"description" : "Delete a custom filter from the account" ,
"responses" : {
"200" : {
"description" : "Success"
} ,
"401" : {
"description" : "Unauthorized"
} ,
"404" : {
"description" : "The custom filter does not exist in the account"
}
}
}
2021-08-27 17:16:32 +00:00
} ,
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" : {
"tags" : [
"Reports"
] ,
"operationId" : "list-all-conversation-statistics" ,
"summary" : "Get Account reports" ,
"description" : "Get Account reports for a specific type, metric and date range" ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"type" : "array" ,
"description" : "Array of date based conversation statistics" ,
"items" : {
"$ref" : "#/definitions/report"
}
}
} ,
"404" : {
"description" : "reports not found"
} ,
"403" : {
"description" : "Access denied"
}
}
}
} ,
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" : {
"tags" : [
"Reports"
] ,
"operationId" : "list-all-conversation-statistics-summary" ,
"summary" : "Get Account reports summary" ,
"description" : "Get Account reports summary for a specific type and date range" ,
"responses" : {
"200" : {
"description" : "Success" ,
"schema" : {
"type" : "array" ,
"description" : "Array of date based conversation statistics" ,
"items" : {
"$ref" : "#/definitions/report"
}
}
} ,
"404" : {
"description" : "reports not found"
} ,
"403" : {
"description" : "Access denied"
}
}
}
2020-02-23 07:24:29 +00:00
}
} ,
"definitions" : {
"bad_request_error" : {
"title" : "data" ,
"type" : "object" ,
"properties" : {
"description" : {
"type" : "string"
} ,
"errors" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/request_error"
}
}
}
} ,
"request_error" : {
"type" : "object" ,
"properties" : {
"field" : {
"type" : "string"
} ,
"message" : {
"type" : "string"
} ,
"code" : {
"type" : "string"
}
}
} ,
2020-02-23 19:21:31 +00:00
"generic_id" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "number"
}
}
} ,
2020-02-23 07:24:29 +00:00
"contact" : {
"type" : "object" ,
"properties" : {
"email" : {
2020-03-11 10:49:13 +00:00
"type" : "string" ,
"description" : "Email address of the contact"
2020-02-23 07:24:29 +00:00
} ,
"name" : {
2020-03-11 10:49:13 +00:00
"type" : "string" ,
"description" : "The name of the contact"
2020-02-23 07:24:29 +00:00
} ,
"phone_number" : {
2020-03-11 10:49:13 +00:00
"type" : "string" ,
"description" : "Phone number of the contact"
2020-02-23 07:24:29 +00:00
} ,
"thumbnail" : {
2020-03-11 10:49:13 +00:00
"type" : "string" ,
"description" : "Avatar URL of the contact"
2020-02-23 07:24:29 +00:00
} ,
"additional_attributes" : {
2020-03-11 10:49:13 +00:00
"type" : "object" ,
"description" : "The object containing additional attributes related to the contact"
2020-08-18 06:44:37 +00:00
} ,
"contact_inboxes" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/contact_inboxes"
}
2020-02-23 07:24:29 +00:00
}
}
} ,
"conversation" : {
"type" : "object" ,
"properties" : {
2020-03-11 10:49:13 +00:00
"id" : {
"type" : "number" ,
"description" : "ID of the conversation"
} ,
2020-02-23 07:24:29 +00:00
"messages" : {
2021-11-17 13:25:15 +00:00
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/message"
}
2020-02-23 07:24:29 +00:00
} ,
2020-04-10 11:12:37 +00:00
"account_id" : {
"type" : "number" ,
"description" : "Account Id"
} ,
2020-02-23 07:24:29 +00:00
"inbox_id" : {
2020-03-11 10:49:13 +00:00
"type" : "number" ,
"description" : "ID of the inbox"
2020-02-23 07:24:29 +00:00
} ,
"status" : {
"type" : "string" ,
"enum" : [
"open" ,
2020-03-11 10:49:13 +00:00
"resolved" ,
2021-07-21 16:32:43 +00:00
"pending"
2020-03-11 10:49:13 +00:00
] ,
"description" : "The status of the conversation"
2020-02-23 07:24:29 +00:00
} ,
"timestamp" : {
2020-03-11 10:49:13 +00:00
"type" : "string" ,
"description" : "The time at which conversation was created"
2020-02-23 07:24:29 +00:00
} ,
2020-09-10 13:49:15 +00:00
"contact_last_seen_at" : {
2020-02-23 07:24:29 +00:00
"type" : "string"
} ,
"agent_last_seen_at" : {
2021-11-17 13:25:15 +00:00
"type" : "string"
2020-02-23 07:24:29 +00:00
} ,
"unread_count" : {
2020-03-11 10:49:13 +00:00
"type" : "number" ,
"description" : "The number of unread messages"
} ,
"additional_attributes" : {
"type" : "object" ,
"description" : "The object containing additional attributes related to the conversation"
2020-02-23 07:24:29 +00:00
}
}
} ,
2020-02-23 19:21:31 +00:00
"message" : {
"type" : "object" ,
"properties" : {
"content" : {
2020-03-11 10:49:13 +00:00
"type" : "string" ,
"description" : "The text content of the message"
2020-02-23 19:21:31 +00:00
} ,
2020-04-10 11:12:37 +00:00
"content_type" : {
"type" : "string" ,
"enum" : [
"text" ,
"input_select" ,
"cards" ,
"form"
] ,
"description" : "The type of the template message"
} ,
"content_attributes" : {
"type" : "object" ,
"description" : "The content attributes for each content_type"
} ,
2020-02-23 19:21:31 +00:00
"message_type" : {
2020-03-11 10:49:13 +00:00
"type" : "string" ,
"enum" : [
"incoming" ,
"outgoing" ,
"activity" ,
"template"
] ,
"description" : "The type of the message"
2020-02-23 19:21:31 +00:00
} ,
"created_at" : {
2020-03-11 10:49:13 +00:00
"type" : "integer" ,
"description" : "The time at which message was created"
2020-02-23 19:21:31 +00:00
} ,
"private" : {
2020-03-11 10:49:13 +00:00
"type" : "boolean" ,
"description" : "The flags which shows whether the message is private or not"
2020-02-23 19:21:31 +00:00
} ,
"attachment" : {
2020-03-11 10:49:13 +00:00
"type" : "object" ,
"description" : "The file object attached to the image"
} ,
"sender" : {
"type" : "object" ,
"description" : "User/Agent/AgentBot object"
} ,
"conversation_id" : {
"type" : "number" ,
"description" : "ID of the conversation"
2020-02-23 19:21:31 +00:00
}
}
} ,
"user" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "number"
} ,
"uid" : {
"type" : "string"
} ,
"name" : {
"type" : "string"
} ,
2020-08-18 06:44:37 +00:00
"available_name" : {
"type" : "string"
} ,
"display_name" : {
"type" : "string"
} ,
2020-02-23 19:21:31 +00:00
"email" : {
"type" : "string"
} ,
"account_id" : {
"type" : "number"
} ,
"role" : {
"type" : "string" ,
"enum" : [
"agent" ,
"administrator"
]
} ,
"confirmed" : {
"type" : "boolean"
} ,
2021-09-02 12:59:45 +00:00
"custom_attributes" : {
"type" : "object" ,
"description" : "Available for users who are created through platform APIs and has custom attributes associated."
} ,
2020-08-18 06:44:37 +00:00
"accounts" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/account"
}
2020-02-23 19:21:31 +00:00
}
}
} ,
2021-09-14 06:25:02 +00:00
"agent" : {
"type" : "object" ,
"properties" : {
"id" : {
2021-10-07 07:51:46 +00:00
"type" : "integer"
2021-09-14 06:25:02 +00:00
} ,
"uid" : {
"type" : "string"
} ,
"name" : {
"type" : "string"
} ,
"available_name" : {
"type" : "string"
} ,
"display_name" : {
"type" : "string"
} ,
"email" : {
"type" : "string"
} ,
"account_id" : {
2021-10-07 07:51:46 +00:00
"type" : "integer"
2021-09-14 06:25:02 +00:00
} ,
"role" : {
"type" : "string" ,
"enum" : [
"agent" ,
"administrator"
]
} ,
"confirmed" : {
"type" : "boolean"
} ,
2021-10-07 07:51:46 +00:00
"availability_status" : {
"type" : "string" ,
"enum" : [
"available" ,
"busy" ,
"offline"
] ,
"description" : "The availability status of the agent computed by Chatwoot."
} ,
"auto_offline" : {
"type" : "boolean" ,
"description" : "Whether the availability status of agent is configured to go offline automatically when away."
} ,
2021-09-14 06:25:02 +00:00
"custom_attributes" : {
"type" : "object" ,
"description" : "Available for users who are created through platform APIs and has custom attributes associated."
}
}
} ,
2020-03-11 10:49:13 +00:00
"inbox" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "number" ,
"description" : "ID of the inbox"
} ,
2020-06-25 18:05:16 +00:00
"name" : {
"type" : "string" ,
"description" : "The name of the inbox"
} ,
"website_url" : {
"type" : "string" ,
"description" : "Website URL"
} ,
2020-03-11 10:49:13 +00:00
"channel_type" : {
"type" : "string" ,
"description" : "The type of the inbox"
} ,
"avatar_url" : {
"type" : "string" ,
"description" : "The avatar image of the inbox"
} ,
"widget_color" : {
"type" : "string" ,
"description" : "Widget Color used for customization of the widget"
} ,
"website_token" : {
"type" : "string" ,
"description" : "Website Token"
} ,
"enable_auto_assignment" : {
"type" : "boolean" ,
"description" : "The flag which shows whether Auto Assignment is enabled or not"
2020-03-16 07:02:34 +00:00
} ,
"web_widget_script" : {
"type" : "string" ,
"description" : "Script used to load the website widget"
2020-04-20 06:25:06 +00:00
} ,
"welcome_title" : {
"type" : "string" ,
"description" : "Welcome title to be displayed on the widget"
} ,
"welcome_tagline" : {
"type" : "string" ,
"description" : "Welcome tagline to be displayed on the widget"
} ,
2020-08-18 06:44:37 +00:00
"greeting_enabled" : {
"type" : "boolean" ,
"description" : "The flag which shows whether greeting is enabled"
} ,
"greeting_message" : {
2020-04-20 06:25:06 +00:00
"type" : "string" ,
2020-08-18 06:44:37 +00:00
"description" : "A greeting message when the user starts the conversation"
2020-03-11 10:49:13 +00:00
}
}
} ,
2020-04-07 05:11:18 +00:00
"agent_bot" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "number" ,
"description" : "ID of the agent bot"
} ,
2021-05-31 05:28:43 +00:00
"name" : {
"type" : "string" ,
"description" : "The name of the agent bot"
} ,
2020-04-07 05:11:18 +00:00
"description" : {
"type" : "string" ,
"description" : "The description about the agent bot"
} ,
2021-05-31 05:28:43 +00:00
"account_id" : {
"type" : "number" ,
"description" : "Account ID if it's an account specific bot"
2020-04-07 05:11:18 +00:00
} ,
"outgoing_url" : {
"type" : "string" ,
"description" : "The webhook URL for the bot"
}
}
} ,
2020-08-18 06:44:37 +00:00
"contact_inboxes" : {
"type" : "object" ,
"properties" : {
"source_id" : {
"type" : "string" ,
"description" : "Contact Inbox Source Id"
} ,
"inbox" : {
"$ref" : "#/definitions/inbox"
}
}
} ,
2021-05-11 17:08:46 +00:00
"contactable_inboxes" : {
"type" : "object" ,
"properties" : {
"source_id" : {
"type" : "string" ,
"description" : "Contact Inbox Source Id"
} ,
"inbox" : {
"$ref" : "#/definitions/inbox"
}
}
} ,
2021-06-29 13:59:57 +00:00
"custom_filter" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "number" ,
"description" : "The ID of the custom filter"
} ,
"name" : {
"type" : "string" ,
"description" : "The name of the custom filter"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"conversation" ,
"contact" ,
"report"
] ,
"description" : "The description about the custom filter"
} ,
"query" : {
"type" : "object" ,
"description" : "A query that needs to be saved as a custom filter"
} ,
"created_at" : {
2021-11-17 13:25:15 +00:00
"type" : "string" ,
"format" : "date-time" ,
2021-06-29 13:59:57 +00:00
"description" : "The time at which the custom filter was created"
} ,
"updated_at" : {
2021-11-17 13:25:15 +00:00
"type" : "string" ,
"format" : "date-time" ,
2021-06-29 13:59:57 +00:00
"description" : "The time at which the custom filter was updated"
}
}
} ,
2020-08-18 06:44:37 +00:00
"account" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "number" ,
"description" : "Account ID"
} ,
"name" : {
"type" : "string" ,
"description" : "Name of the account"
} ,
"role" : {
"type" : "string" ,
"enum" : [
"administrator" ,
"agent"
] ,
"description" : "The user role in the account"
}
}
} ,
2021-05-31 05:28:43 +00:00
"platform_account" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "number" ,
"description" : "Account ID"
} ,
"name" : {
"type" : "string" ,
"description" : "Name of the account"
}
}
} ,
2021-05-05 15:09:00 +00:00
"team" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "number" ,
2021-05-20 15:16:45 +00:00
"description" : "The ID of the team"
2021-05-05 15:09:00 +00:00
} ,
"name" : {
"type" : "string" ,
"description" : "The name of the team"
} ,
"description" : {
"type" : "string" ,
"description" : "The description about the team"
} ,
"allow_auto_assign" : {
"type" : "boolean" ,
"description" : "If this setting is turned on, the system would automatically assign the conversation to an agent in the team while assigning the conversation to a team"
} ,
"account_id" : {
"type" : "number" ,
2021-05-20 15:16:45 +00:00
"description" : "The ID of the account with the team is a part of"
2021-05-05 15:09:00 +00:00
} ,
"is_member" : {
"type" : "boolean" ,
"description" : "This field shows whether the current user is a part of the team"
}
}
} ,
2021-05-20 15:16:45 +00:00
"integrations_app" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string" ,
"description" : "The ID of the integration"
} ,
"name" : {
"type" : "string" ,
"description" : "The name of the integration"
} ,
"description" : {
"type" : "string" ,
"description" : "The description about the team"
} ,
"hook_type" : {
"type" : "string" ,
"description" : "Whether the integration is an account or inbox integration"
} ,
"enabled" : {
"type" : "boolean" ,
"description" : "Whether the integration is enabled for the account"
} ,
"allow_multiple_hooks" : {
"type" : "boolean" ,
"description" : "Whether multiple hooks can be created for the integration"
} ,
"hooks" : {
"type" : "array" ,
2021-11-17 13:25:15 +00:00
"items" : {
"type" : "object"
} ,
2021-05-20 15:16:45 +00:00
"description" : "If there are any hooks created for this integration"
}
}
} ,
"integrations_hook" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string" ,
"description" : "The ID of the integration hook"
} ,
"app_id" : {
"type" : "string" ,
"description" : "The ID of the integration app"
} ,
"inbox_id" : {
"type" : "string" ,
"description" : "Inbox ID if its an Inbox integration"
} ,
"account_id" : {
"type" : "string" ,
"description" : "Account ID of the integration"
} ,
"status" : {
"type" : "boolean" ,
"description" : "Whether the integration hook is enabled for the account"
} ,
"hook_type" : {
"type" : "boolean" ,
"description" : "Whether its an account or inbox integration hook"
} ,
"settings" : {
"type" : "object" ,
"description" : "The associated settings for the integration"
}
}
} ,
2021-06-15 18:44:09 +00:00
"public_contact" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "integer" ,
"description" : "Id of the contact"
2020-02-23 07:24:29 +00:00
} ,
2021-06-15 18:44:09 +00:00
"source_id" : {
"type" : "string" ,
"description" : "The session identifier of the contact"
2020-02-23 07:24:29 +00:00
} ,
2021-06-15 18:44:09 +00:00
"name" : {
"type" : "string" ,
"description" : "Name of the contact"
} ,
"email" : {
"type" : "string" ,
"description" : "Email of the contact"
} ,
"pubsub_token" : {
"type" : "string" ,
"description" : "The token to be used to connect to chatwoot websocket"
2020-02-23 07:24:29 +00:00
}
2021-06-15 18:44:09 +00:00
}
2020-02-23 07:24:29 +00:00
} ,
2021-06-15 18:44:09 +00:00
"public_conversation" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "integer" ,
"description" : "Id of the conversation"
} ,
"inbox_id" : {
"type" : "string" ,
"description" : "The inbox id of the conversation"
} ,
"messages" : {
"type" : "array" ,
2021-11-17 13:25:15 +00:00
"items" : {
"$ref" : "#/definitions/message"
} ,
2021-06-15 18:44:09 +00:00
"description" : "Messages in the conversation"
} ,
"contact" : {
"type" : "object" ,
"description" : "The contact information associated to the conversation"
}
}
} ,
"public_message" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string" ,
"description" : "Id of the message"
} ,
"content" : {
"type" : "string" ,
"description" : "Text content of the message"
} ,
"message_type" : {
"type" : "string" ,
"description" : "Denotes the message type"
} ,
"content_type" : {
"type" : "string" ,
"description" : "Content type of the message"
} ,
"content_attributes" : {
"type" : "string" ,
"description" : "Additional content attributes of the message"
} ,
"created_at" : {
"type" : "string" ,
"description" : "Created at time stamp of the message"
} ,
"conversation_id" : {
"type" : "string" ,
"description" : "Conversation Id of the message"
} ,
"attachments" : {
"type" : "array" ,
2021-11-17 13:25:15 +00:00
"items" : {
"type" : "object"
} ,
2021-06-15 18:44:09 +00:00
"description" : "Attachments if any"
} ,
"sender" : {
"type" : "object" ,
"description" : "Details of the sender"
}
}
} ,
"account_create_update_payload" : {
"type" : "object" ,
"properties" : {
"name" : {
"type" : "string" ,
"description" : "Name of the account"
}
}
} ,
"agent_bot_create_update_payload" : {
"type" : "object" ,
"properties" : {
"name" : {
"type" : "string" ,
"description" : "The name of the agent bot"
} ,
"description" : {
"type" : "string" ,
"description" : "The description about the agent bot"
} ,
"outgoing_url" : {
"type" : "string" ,
"description" : "The webhook URL for the bot"
}
}
} ,
"user_create_update_payload" : {
"type" : "object" ,
"properties" : {
"name" : {
"type" : "string" ,
"description" : "Name of the user"
} ,
"email" : {
"type" : "string" ,
"description" : "Email of the user"
} ,
"password" : {
"type" : "string" ,
"description" : "Password must contain uppercase, lowercase letters, number and a special character"
2021-09-02 12:59:45 +00:00
} ,
"custom_attributes" : {
"type" : "object" ,
"description" : "Custom attributes you want to associate with the user"
2021-06-15 18:44:09 +00:00
}
}
} ,
"contact_create" : {
"type" : "object" ,
2021-11-17 13:25:15 +00:00
"required" : [
"inbox_id"
] ,
2021-06-15 18:44:09 +00:00
"properties" : {
"inbox_id" : {
2021-11-17 13:25:15 +00:00
"type" : "number"
2021-06-15 18:44:09 +00:00
} ,
"name" : {
2021-08-13 07:32:46 +00:00
"type" : "string" ,
"description" : "name of the contact"
2021-06-15 18:44:09 +00:00
} ,
"email" : {
2021-08-13 07:32:46 +00:00
"type" : "string" ,
"description" : "email of the contact"
2021-06-15 18:44:09 +00:00
} ,
"phone_number" : {
2021-08-13 07:32:46 +00:00
"type" : "string" ,
"description" : "phone number of the contact"
} ,
"identifier" : {
"type" : "string" ,
"description" : "A unique identifier for the contact in external system"
2021-09-04 12:26:46 +00:00
} ,
"custom_attributes" : {
"type" : "object" ,
"description" : "An object where you can store custom attributes for contact. example {\"type\":\"customer\", \"age\":30}"
2021-06-15 18:44:09 +00:00
}
}
} ,
"contact_update" : {
"type" : "object" ,
"properties" : {
"name" : {
2021-08-13 07:32:46 +00:00
"type" : "string" ,
"description" : "name of the contact"
2021-06-15 18:44:09 +00:00
} ,
"email" : {
2021-08-13 07:32:46 +00:00
"type" : "string" ,
"description" : "email of the contact"
2021-06-15 18:44:09 +00:00
} ,
"phone_number" : {
2021-08-13 07:32:46 +00:00
"type" : "string" ,
"description" : "phone number of the contact"
} ,
"identifier" : {
"type" : "string" ,
"description" : "A unique identifier for the contact in external system"
2021-09-04 12:26:46 +00:00
} ,
"custom_attributes" : {
"type" : "object" ,
"description" : "An object where you can store custom attributes for contact. example {\"type\":\"customer\", \"age\":30}"
2021-06-15 18:44:09 +00:00
}
}
} ,
"conversation_message_create" : {
"type" : "object" ,
2021-11-17 13:25:15 +00:00
"required" : [
"content"
] ,
2021-06-15 18:44:09 +00:00
"properties" : {
"content" : {
"type" : "string" ,
2021-11-17 13:25:15 +00:00
"description" : "The content of the message"
2021-06-15 18:44:09 +00:00
} ,
"message_type" : {
"type" : "string" ,
"enum" : [
"outgoing" ,
"incoming"
]
} ,
"private" : {
"type" : "boolean" ,
"description" : "Flag to identify if it is a private note"
} ,
"content_type" : {
"type" : "string" ,
"enum" : [
"input_email" ,
"cards" ,
"input_select" ,
"form" ,
"article"
] ,
"example" : "cards" ,
"description" : "if you want to create custom message types"
} ,
"content_attributes" : {
"type" : "object" ,
"description" : "attributes based on your content type"
}
}
} ,
"team_create_update_payload" : {
"type" : "object" ,
"properties" : {
"name" : {
"type" : "string" ,
"description" : "The name of the team"
} ,
"description" : {
"type" : "string" ,
"description" : "The description of the team"
} ,
"allow_auto_assign" : {
"type" : "boolean" ,
"description" : "If this setting is turned on, the system would automatically assign the conversation to an agent in the team while assigning the conversation to a team"
}
}
} ,
2021-06-29 13:59:57 +00:00
"custom_filter_create_update_payload" : {
"type" : "object" ,
"properties" : {
"name" : {
"type" : "string" ,
"description" : "The name of the custom filter"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"conversation" ,
"contact" ,
"report"
] ,
"description" : "The description about the custom filter"
} ,
"query" : {
"type" : "object" ,
"description" : "A query that needs to be saved as a custom filter"
}
}
} ,
2021-06-15 18:44:09 +00:00
"integrations_hook_create_payload" : {
"type" : "object" ,
"properties" : {
"app_id" : {
"type" : "string" ,
"description" : "The ID of app for which integration hook is being created"
} ,
"inbox_id" : {
"type" : "string" ,
"description" : "The inbox ID, if the hook is an inbox hook"
} ,
"settings" : {
"type" : "object" ,
"description" : "The settings required by the integration"
}
}
} ,
"integrations_hook_update_payload" : {
"type" : "object" ,
"properties" : {
"settings" : {
"type" : "object" ,
"description" : "The settings required by the integration"
}
}
} ,
"public_contact_create_update_payload" : {
"type" : "object" ,
"properties" : {
"identifier" : {
"type" : "string" ,
"description" : "External identifier of the contact"
} ,
"identifier_hash" : {
"type" : "string" ,
"description" : "Identifier hash prepared for HMAC authentication"
} ,
"email" : {
"type" : "string" ,
"description" : "Email of the contact"
} ,
"name" : {
"type" : "string" ,
"description" : "Name of the contact"
} ,
"avatar_url" : {
"type" : "string" ,
"description" : "The url to a jpeg, png file for the user avatar"
} ,
"custom_attributes" : {
"type" : "object" ,
"description" : "Custom attributes of the customer"
}
}
} ,
"public_message_create_payload" : {
"type" : "object" ,
"properties" : {
"content" : {
"type" : "string" ,
"description" : "Content for the message"
} ,
"echo_id" : {
"type" : "string" ,
"description" : "Temporary identifier which will be passed back via websockets"
}
}
} ,
"public_message_update_payload" : {
"type" : "object" ,
"properties" : {
"submitted_values" : {
"type" : "object" ,
"description" : "Replies to the Bot Message Types"
}
}
} ,
"extended_contact" : {
"allOf" : [
{
"$ref" : "#/definitions/contact"
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "number" ,
"description" : "Id of the user"
} ,
"availability_status" : {
"type" : "string" ,
"enum" : [
"online" ,
"offline"
] ,
"description" : "Availability status of the user"
}
}
}
]
} ,
"contact_base" : {
"allOf" : [
{
"$ref" : "#/definitions/generic_id"
} ,
{
"$ref" : "#/definitions/contact"
}
]
} ,
"contact_list" : {
"type" : "array" ,
2020-02-23 19:21:31 +00:00
"description" : "array of contacts" ,
2020-02-23 07:24:29 +00:00
"items" : {
"allOf" : [
{
2020-02-23 19:21:31 +00:00
"$ref" : "#/definitions/generic_id"
2020-02-23 07:24:29 +00:00
} ,
{
2020-02-23 19:21:31 +00:00
"$ref" : "#/definitions/contact"
2020-02-23 07:24:29 +00:00
}
]
}
} ,
"contact_conversations" : {
"type" : "array" ,
2020-02-23 19:21:31 +00:00
"description" : "array of conversations" ,
2020-02-23 07:24:29 +00:00
"items" : {
"allOf" : [
{
"$ref" : "#/definitions/conversation"
} ,
{
"type" : "object" ,
"properties" : {
"meta" : {
"type" : "object" ,
"properties" : {
"sender" : {
"type" : "object" ,
"properties" : {
"id" : {
2020-03-11 10:49:13 +00:00
"type" : "number" ,
"description" : "ID fo the sender"
2020-02-23 07:24:29 +00:00
} ,
"name" : {
2020-03-11 10:49:13 +00:00
"type" : "string" ,
"description" : "The name of the sender"
2020-02-23 07:24:29 +00:00
} ,
"thumbnail" : {
2020-03-11 10:49:13 +00:00
"type" : "string" ,
"description" : "Avatar URL of the contact"
2020-02-23 07:24:29 +00:00
} ,
"channel" : {
2020-03-11 10:49:13 +00:00
"type" : "string" ,
"description" : "Channel Type"
2020-02-23 07:24:29 +00:00
}
}
} ,
"assignee" : {
2020-02-23 19:21:31 +00:00
"$ref" : "#/definitions/user"
2020-02-23 07:24:29 +00:00
}
}
}
}
2020-02-23 19:21:31 +00:00
} ,
{
"type" : "object" ,
"properties" : {
"display_id" : {
"type" : "number"
}
}
2020-02-23 07:24:29 +00:00
}
]
}
} ,
2020-02-23 19:21:31 +00:00
"conversation_list" : {
"type" : "object" ,
"properties" : {
"data" : {
"type" : "object" ,
"properties" : {
"meta" : {
"type" : "object" ,
"properties" : {
"mine_count" : {
"type" : "number"
} ,
"unassigned_count" : {
"type" : "number"
} ,
"all_count" : {
"type" : "number"
}
}
} ,
"payload" : {
"type" : "array" ,
"description" : "array of conversations" ,
"items" : {
"allOf" : [
{
"$ref" : "#/definitions/generic_id"
} ,
{
"$ref" : "#/definitions/conversation"
} ,
{
"type" : "object" ,
"properties" : {
"meta" : {
"type" : "object" ,
"properties" : {
"sender" : {
"type" : "object" ,
"properties" : {
"id" : {
2020-03-11 10:49:13 +00:00
"type" : "number" ,
"description" : "ID fo the sender"
2020-02-23 19:21:31 +00:00
} ,
"name" : {
2020-03-11 10:49:13 +00:00
"type" : "string" ,
"description" : "The name of the sender"
2020-02-23 19:21:31 +00:00
} ,
"thumbnail" : {
2020-03-11 10:49:13 +00:00
"type" : "string" ,
"description" : "Avatar URL of the contact"
2020-02-23 19:21:31 +00:00
} ,
"channel" : {
2020-03-11 10:49:13 +00:00
"type" : "string" ,
"description" : "Channel Type"
2020-02-23 19:21:31 +00:00
}
}
} ,
"assignee" : {
"$ref" : "#/definitions/user"
}
}
}
}
}
]
}
}
}
}
}
} ,
"conversation_show" : {
"type" : "object" ,
2020-03-11 10:49:13 +00:00
"allOf" : [
{
"$ref" : "#/definitions/generic_id"
} ,
{
"$ref" : "#/definitions/conversation"
} ,
{
2020-02-23 19:21:31 +00:00
"type" : "object" ,
"properties" : {
2020-03-11 10:49:13 +00:00
"meta" : {
"type" : "object" ,
"properties" : {
"sender" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "number" ,
"description" : "ID fo the sender"
} ,
"name" : {
"type" : "string" ,
"description" : "The name of the sender"
} ,
"thumbnail" : {
"type" : "string" ,
"description" : "Avatar URL of the contact"
} ,
"channel" : {
"type" : "string" ,
"description" : "Channel Type"
}
}
} ,
"assignee" : {
"$ref" : "#/definitions/user"
}
2020-02-23 19:21:31 +00:00
}
}
}
}
2020-03-11 10:49:13 +00:00
]
2020-02-23 19:21:31 +00:00
} ,
"conversation_status_toggle" : {
"type" : "object" ,
"properties" : {
"meta" : {
"type" : "object"
} ,
"payload" : {
"type" : "object" ,
"properties" : {
"success" : {
"type" : "boolean"
} ,
"current_status" : {
"type" : "string" ,
"enum" : [
"open" ,
"resolved"
]
} ,
"conversation_id" : {
"type" : "number"
}
}
}
}
} ,
"conversation_labels" : {
"type" : "object" ,
"properties" : {
"payload" : {
"type" : "array" ,
2020-03-11 10:49:13 +00:00
"description" : "Array of labels" ,
2020-02-23 19:21:31 +00:00
"items" : {
"type" : "string"
}
}
}
} ,
"extended_message" : {
"allOf" : [
{
"$ref" : "#/definitions/generic_id"
} ,
{
"$ref" : "#/definitions/message"
} ,
{
"type" : "object" ,
"properties" : {
"source_id" : {
"type" : "number"
} ,
"sender" : {
"type" : "object"
}
}
}
]
2021-08-27 17:16:32 +00:00
} ,
"report" : {
"type" : "array" ,
"description" : "array of conversation count based on date" ,
"items" : {
"allOf" : [
{
"type" : "object" ,
"properties" : {
"value" : {
"type" : "number"
} ,
"timestamp" : {
"type" : "string"
}
}
}
]
}
2021-05-05 15:09:00 +00:00
}
} ,
"parameters" : {
"account_id" : {
"in" : "path" ,
"name" : "account_id" ,
2021-11-17 13:25:15 +00:00
"type" : "integer" ,
2021-05-05 15:09:00 +00:00
"required" : true ,
2021-05-11 14:50:52 +00:00
"description" : "The numeric ID of the account"
2021-05-05 15:09:00 +00:00
} ,
2021-05-31 05:28:43 +00:00
"agent_bot_id" : {
"in" : "path" ,
"name" : "id" ,
2021-11-17 13:25:15 +00:00
"type" : "integer" ,
2021-05-31 05:28:43 +00:00
"required" : true ,
"description" : "The ID of the agentbot to be updated"
} ,
2021-05-05 15:09:00 +00:00
"team_id" : {
"in" : "path" ,
"name" : "id" ,
2021-11-17 13:25:15 +00:00
"type" : "integer" ,
2021-05-05 15:09:00 +00:00
"required" : true ,
2021-05-20 15:16:45 +00:00
"description" : "The ID of the team to be updated"
} ,
2021-09-14 06:25:02 +00:00
"inbox_id" : {
"in" : "path" ,
"name" : "inbox_id" ,
2021-11-17 13:25:15 +00:00
"type" : "integer" ,
2021-09-14 06:25:02 +00:00
"required" : true ,
"description" : "The ID of the Inbox"
} ,
2021-05-20 15:16:45 +00:00
"hook_id" : {
"in" : "path" ,
"name" : "hook_id" ,
2021-11-17 13:25:15 +00:00
"type" : "integer" ,
2021-05-20 15:16:45 +00:00
"required" : true ,
"description" : "The numeric ID of the integration hook"
2021-05-11 14:50:52 +00:00
} ,
2021-05-11 17:08:46 +00:00
"source_id" : {
2021-11-17 13:25:15 +00:00
"in" : "path" ,
"name" : "source_id" ,
"required" : true ,
2021-05-11 17:08:46 +00:00
"type" : "string" ,
"description" : "Id of the session for which the conversation is created.\n\n\n\n Source Ids can be obtained through contactable inboxes API or via generated.<br/><br/>Website: Chatwoot generated string which can be obtained from webhook events. <br/> Phone Channels(Twilio): Phone number in e164 format <br/> Email Channels: Contact Email address <br/> API Channel: Any Random String"
} ,
2021-05-11 14:50:52 +00:00
"conversation_id" : {
"in" : "path" ,
"name" : "conversation_id" ,
2021-11-17 13:25:15 +00:00
"type" : "integer" ,
2021-05-11 14:50:52 +00:00
"required" : true ,
"description" : "The numeric ID of the conversation"
} ,
"message_id" : {
"in" : "path" ,
"name" : "message_id" ,
2021-11-17 13:25:15 +00:00
"type" : "integer" ,
2021-05-11 14:50:52 +00:00
"required" : true ,
"description" : "The numeric ID of the message"
2021-05-13 08:02:19 +00:00
} ,
"contact_sort_param" : {
"in" : "query" ,
"name" : "sort" ,
2021-11-17 13:25:15 +00:00
"type" : "string" ,
"enum" : [
"name" ,
"email" ,
"phone_number" ,
"last_activity_at" ,
"-name" ,
"-email" ,
"-phone_number" ,
"-last_activity_at"
] ,
2021-05-13 08:02:19 +00:00
"required" : false ,
"description" : "The attribute by which list should be sorted"
} ,
"page" : {
"in" : "query" ,
"name" : "page" ,
2021-11-17 13:25:15 +00:00
"type" : "integer" ,
"default" : 1 ,
2021-05-13 08:02:19 +00:00
"required" : false ,
"description" : "The page parameter"
2021-06-06 15:48:47 +00:00
} ,
"platform_user_id" : {
"in" : "path" ,
"name" : "id" ,
2021-11-17 13:25:15 +00:00
"type" : "integer" ,
2021-06-06 15:48:47 +00:00
"required" : true ,
"description" : "The numeric ID of the user on the platform"
2021-06-15 18:44:09 +00:00
} ,
2021-06-29 13:59:57 +00:00
"custom_filter_id" : {
"in" : "path" ,
"name" : "custom_filter_id" ,
2021-11-17 13:25:15 +00:00
"type" : "integer" ,
2021-06-29 13:59:57 +00:00
"required" : true ,
"description" : "The numeric ID of the custom filter"
} ,
2021-08-27 17:16:32 +00:00
"report_type" : {
"in" : "query" ,
"name" : "report_type" ,
2021-11-17 13:25:15 +00:00
"type" : "string" ,
"enum" : [
"account" ,
"agent" ,
"inbox" ,
"label" ,
"team"
] ,
2021-08-27 17:16:32 +00:00
"required" : true ,
"description" : "Type of report"
} ,
"report_metric" : {
"in" : "query" ,
"name" : "metric" ,
2021-11-17 13:25:15 +00:00
"type" : "string" ,
"enum" : [
"conversations_count" ,
"incoming_messages_count" ,
"outgoing_messages_count" ,
"avg_first_response_time" ,
"avg_resolution_time" ,
"resolutions_count"
] ,
2021-08-27 17:16:32 +00:00
"required" : true ,
"description" : "The type of metric"
} ,
2021-06-15 18:44:09 +00:00
"public_inbox_identifier" : {
"in" : "path" ,
"name" : "inbox_identifier" ,
2021-11-17 13:25:15 +00:00
"type" : "string" ,
2021-06-15 18:44:09 +00:00
"required" : true ,
"description" : "The identifier obtained from API inbox channel"
} ,
"public_contact_identifier" : {
"in" : "path" ,
"name" : "contact_identifier" ,
2021-11-17 13:25:15 +00:00
"type" : "string" ,
2021-06-15 18:44:09 +00:00
"required" : true ,
"description" : "The source id of contact obtained on contact create"
2020-02-23 07:24:29 +00:00
}
2021-05-31 05:28:43 +00:00
} ,
"x-tagGroups" : [
{
"name" : "Platform" ,
"tags" : [
"Accounts" ,
"Account Users" ,
"AgentBots" ,
"Users"
]
} ,
{
"name" : "Application" ,
"tags" : [
"Account AgentBots" ,
2021-10-07 07:51:46 +00:00
"Agent" ,
2021-05-31 05:28:43 +00:00
"Contact" ,
"Conversation" ,
"Conversation Assignment" ,
"Conversation Labels" ,
"Inbox" ,
"Messages" ,
"Integrations" ,
"Profile" ,
2021-06-29 13:59:57 +00:00
"Teams" ,
2021-08-27 17:16:32 +00:00
"Custom Filter" ,
"Reports"
2021-05-31 05:28:43 +00:00
]
2021-06-15 18:44:09 +00:00
} ,
{
2021-09-02 12:59:45 +00:00
"name" : "Client" ,
2021-06-15 18:44:09 +00:00
"tags" : [
"Contacts API" ,
"Conversations API" ,
"Messages API"
]
2021-05-31 05:28:43 +00:00
}
]
2020-02-23 07:24:29 +00:00
}