Create an Account
name | string Name of the account |
{- "name": "string"
}
{- "id": 0,
- "name": "string"
}
Update an account's attributes
account_id required | integer The numeric ID of the account |
name | string Name of the account |
{- "name": "string"
}
{- "id": 0,
- "name": "string"
}
Create an Account User
account_id required | integer The numeric ID of the account |
user_id required | integer The ID of the user |
role required | string whether user is an administrator or agent |
{- "user_id": 0,
- "role": "string"
}
{- "account_id": 0,
- "user_id": 0,
- "role": "string"
}
Delete an Account User
account_id required | integer The numeric ID of the account |
user_id required | integer The ID of the user |
{- "user_id": 0
}
Create an agent bot
name | string The name of the agent bot |
description | string The description about the agent bot |
outgoing_url | string The webhook URL for the bot |
{- "name": "string",
- "description": "string",
- "outgoing_url": "string"
}
{- "id": 0,
- "name": "string",
- "description": "string",
- "account_id": 0,
- "outgoing_url": "string"
}
Get the details of an agent bot
id required | integer The ID of the agentbot to be updated |
{- "id": 0,
- "name": "string",
- "description": "string",
- "account_id": 0,
- "outgoing_url": "string"
}
Update an agent bot's attributes
id required | integer The ID of the agentbot to be updated |
name | string The name of the agent bot |
description | string The description about the agent bot |
outgoing_url | string The webhook URL for the bot |
{- "name": "string",
- "description": "string",
- "outgoing_url": "string"
}
{- "id": 0,
- "name": "string",
- "description": "string",
- "account_id": 0,
- "outgoing_url": "string"
}
Create a User
name | string Name of the user |
string Email of the user | |
password | string Password must contain uppercase, lowercase letters, number and a special character |
custom_attributes | object Custom attributes you want to associate with the user |
{- "name": "string",
- "email": "string",
- "password": "string",
- "custom_attributes": { }
}
{- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "custom_attributes": { },
- "accounts": [
- {
- "id": 0,
- "name": "string",
- "role": "administrator"
}
]
}
Get the details of an user
id required | integer The numeric ID of the user on the platform |
{- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "custom_attributes": { },
- "accounts": [
- {
- "id": 0,
- "name": "string",
- "role": "administrator"
}
]
}
Update a user's attributes
id required | integer The numeric ID of the user on the platform |
name | string Name of the user |
string Email of the user | |
password | string Password must contain uppercase, lowercase letters, number and a special character |
custom_attributes | object Custom attributes you want to associate with the user |
{- "name": "string",
- "email": "string",
- "password": "string",
- "custom_attributes": { }
}
{- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "custom_attributes": { },
- "accounts": [
- {
- "id": 0,
- "name": "string",
- "role": "administrator"
}
]
}
List all agent bots available for the current account
account_id required | integer The numeric ID of the account |
[- {
- "id": 0,
- "name": "string",
- "description": "string",
- "account_id": 0,
- "outgoing_url": "string"
}
]
Create an agent bot in the account
account_id required | integer The numeric ID of the account |
name | string The name of the agent bot |
description | string The description about the agent bot |
outgoing_url | string The webhook URL for the bot |
{- "name": "string",
- "description": "string",
- "outgoing_url": "string"
}
{- "id": 0,
- "name": "string",
- "description": "string",
- "account_id": 0,
- "outgoing_url": "string"
}
Get the details of an agent bot in the account
account_id required | integer The numeric ID of the account |
id required | integer The ID of the agentbot to be updated |
{- "id": 0,
- "name": "string",
- "description": "string",
- "account_id": 0,
- "outgoing_url": "string"
}
Update an agent bot's attributes
account_id required | integer The numeric ID of the account |
id required | integer The ID of the agentbot to be updated |
name | string The name of the agent bot |
description | string The description about the agent bot |
outgoing_url | string The webhook URL for the bot |
{- "name": "string",
- "description": "string",
- "outgoing_url": "string"
}
{- "id": 0,
- "name": "string",
- "description": "string",
- "account_id": 0,
- "outgoing_url": "string"
}
Get Details of Agents in an Account
account_id required | integer The numeric ID of the account |
[- {
- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "availability_status": "available",
- "auto_offline": true,
- "custom_attributes": { }
}
]
Add a new Agent to Account
account_id required | integer The numeric ID of the account |
name required | string Full Name of the agent |
email required | string Email of the Agent |
role required | string Enum: "agent" "administrator" Whether its administrator or agent |
availability_status | string Enum: "available" "busy" "offline" The availability setting of the agent. |
auto_offline | boolean Whether the availability status of agent is configured to go offline automatically when away. |
{- "name": "string",
- "email": "string",
- "role": "agent",
- "availability_status": "available",
- "auto_offline": true
}
{- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "availability_status": "available",
- "auto_offline": true,
- "custom_attributes": { }
}
Update an Agent in Account
account_id required | integer The numeric ID of the account |
id required | integer The ID of the agent to be updated. |
role required | string Enum: "agent" "administrator" Whether its administrator or agent |
availability | string Enum: "available" "busy" "offline" The availability setting of the agent. |
auto_offline | boolean Whether the availability status of agent is configured to go offline automatically when away. |
{- "role": "agent",
- "availability": "available",
- "auto_offline": true
}
{- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "availability_status": "available",
- "auto_offline": true,
- "custom_attributes": { }
}
Get Details of Canned Responses in an Account
account_id required | integer The numeric ID of the account |
[- {
- "id": 0,
- "content": "string",
- "short_code": "string",
- "account_id": 0
}
]
Add a new Canned Response to Account
account_id required | integer The numeric ID of the account |
content | string Message content for canned response |
short_code | string Short Code for quick access of the canned response |
{- "content": "string",
- "short_code": "string"
}
{- "id": 0,
- "content": "string",
- "short_code": "string",
- "account_id": 0
}
Listing all the resolved contacts with pagination (Page size = 15) . Resolved contacts are the ones with a value for identifier, email or phone number
account_id required | integer The numeric ID of the account |
sort | string Enum: "name" "email" "phone_number" "last_activity_at" "-name" "-email" "-phone_number" "-last_activity_at" The attribute by which list should be sorted |
page | integer Default: 1 The page parameter |
[- {
- "id": 0,
- "payload": {
- "contact": {
- "email": "string",
- "name": "string",
- "phone_number": "string",
- "thumbnail": "string",
- "additional_attributes": { },
- "custom_attributes": {
- "attribute_key": "attribute_value",
- "signed_up_at": "dd/mm/yyyy"
}, - "contact_inboxes": [
- {
- "source_id": "string",
- "inbox": {
- "id": 0,
- "name": "string",
- "website_url": "string",
- "channel_type": "string",
- "avatar_url": "string",
- "widget_color": "string",
- "website_token": "string",
- "enable_auto_assignment": true,
- "web_widget_script": "string",
- "welcome_title": "string",
- "welcome_tagline": "string",
- "greeting_enabled": true,
- "greeting_message": "string"
}
}
]
}
}
}
]
Create a new Contact
account_id required | integer The numeric ID of the account |
inbox_id required | number |
name | string name of the contact |
string email of the contact | |
phone_number | string phone number of the contact |
avatar | string <binary> Send the form data with the avatar image binary or use the avatar_url |
avatar_url | string The url to a jpeg, png file for the contact avatar |
identifier | string A unique identifier for the contact in external system |
custom_attributes | object An object where you can store custom attributes for contact. example {"type":"customer", "age":30} |
{- "inbox_id": 0,
- "name": "string",
- "email": "string",
- "phone_number": "string",
- "avatar": "string",
- "avatar_url": "string",
- "identifier": "string",
- "custom_attributes": { }
}
{- "payload": {
- "contact": {
- "email": "string",
- "name": "string",
- "phone_number": "string",
- "thumbnail": "string",
- "additional_attributes": { },
- "custom_attributes": {
- "attribute_key": "attribute_value",
- "signed_up_at": "dd/mm/yyyy"
}, - "contact_inboxes": [
- {
- "source_id": "string",
- "inbox": {
- "id": 0,
- "name": "string",
- "website_url": "string",
- "channel_type": "string",
- "avatar_url": "string",
- "widget_color": "string",
- "website_token": "string",
- "enable_auto_assignment": true,
- "web_widget_script": "string",
- "welcome_title": "string",
- "welcome_tagline": "string",
- "greeting_enabled": true,
- "greeting_message": "string"
}
}
]
}
}, - "id": 0,
- "availability_status": "online"
}
Get a contact belonging to the account using ID
account_id required | integer The numeric ID of the account |
id required | number ID of the contact |
{- "payload": {
- "contact": {
- "email": "string",
- "name": "string",
- "phone_number": "string",
- "thumbnail": "string",
- "additional_attributes": { },
- "custom_attributes": {
- "attribute_key": "attribute_value",
- "signed_up_at": "dd/mm/yyyy"
}, - "contact_inboxes": [
- {
- "source_id": "string",
- "inbox": {
- "id": 0,
- "name": "string",
- "website_url": "string",
- "channel_type": "string",
- "avatar_url": "string",
- "widget_color": "string",
- "website_token": "string",
- "enable_auto_assignment": true,
- "web_widget_script": "string",
- "welcome_title": "string",
- "welcome_tagline": "string",
- "greeting_enabled": true,
- "greeting_message": "string"
}
}
]
}
}, - "id": 0,
- "availability_status": "online"
}
Update a contact belonging to the account using ID
account_id required | integer The numeric ID of the account |
id required | number ID of the contact |
name | string name of the contact |
string email of the contact | |
phone_number | string phone number of the contact |
avatar | string <binary> Send the form data with the avatar image binary or use the avatar_url |
avatar_url | string The url to a jpeg, png file for the contact avatar |
identifier | string A unique identifier for the contact in external system |
custom_attributes | object An object where you can store custom attributes for contact. example {"type":"customer", "age":30} |
{- "name": "string",
- "email": "string",
- "phone_number": "string",
- "avatar": "string",
- "avatar_url": "string",
- "identifier": "string",
- "custom_attributes": { }
}
{- "id": 0,
- "payload": {
- "contact": {
- "email": "string",
- "name": "string",
- "phone_number": "string",
- "thumbnail": "string",
- "additional_attributes": { },
- "custom_attributes": {
- "attribute_key": "attribute_value",
- "signed_up_at": "dd/mm/yyyy"
}, - "contact_inboxes": [
- {
- "source_id": "string",
- "inbox": {
- "id": 0,
- "name": "string",
- "website_url": "string",
- "channel_type": "string",
- "avatar_url": "string",
- "widget_color": "string",
- "website_token": "string",
- "enable_auto_assignment": true,
- "web_widget_script": "string",
- "welcome_title": "string",
- "welcome_tagline": "string",
- "greeting_enabled": true,
- "greeting_message": "string"
}
}
]
}
}
}
Get conversations associated to that contact
account_id required | integer The numeric ID of the account |
id required | number ID of the contact |
[- {
- "id": 0,
- "messages": [
- {
- "content": "string",
- "content_type": "text",
- "content_attributes": { },
- "message_type": "incoming",
- "created_at": 0,
- "private": true,
- "attachment": { },
- "sender": { },
- "conversation_id": 0
}
], - "account_id": 0,
- "inbox_id": 0,
- "status": "open",
- "timestamp": "string",
- "contact_last_seen_at": "string",
- "agent_last_seen_at": "string",
- "unread_count": 0,
- "additional_attributes": { },
- "custom_attributes": {
- "attribute_key": "attribute_value",
- "priority_conversation_number": 3
}, - "meta": {
- "sender": {
- "id": 0,
- "name": "string",
- "thumbnail": "string",
- "channel": "string"
}, - "assignee": {
- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "custom_attributes": { },
- "accounts": [
- {
- "id": 0,
- "name": "string",
- "role": "administrator"
}
]
}
}, - "display_id": 0
}
]
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
account_id required | integer The numeric ID of the account |
q | string Search using contact |
sort | string Enum: "name" "email" "phone_number" "last_activity_at" "-name" "-email" "-phone_number" "-last_activity_at" The attribute by which list should be sorted |
page | integer Default: 1 The page parameter |
{- "payload": [
- {
- "id": 0,
- "payload": {
- "contact": {
- "email": "string",
- "name": "string",
- "phone_number": "string",
- "thumbnail": "string",
- "additional_attributes": { },
- "custom_attributes": {
- "attribute_key": "attribute_value",
- "signed_up_at": "dd/mm/yyyy"
}, - "contact_inboxes": [
- {
- "source_id": "string",
- "inbox": {
- "id": 0,
- "name": "string",
- "website_url": "string",
- "channel_type": "string",
- "avatar_url": "string",
- "widget_color": "string",
- "website_token": "string",
- "enable_auto_assignment": true,
- "web_widget_script": "string",
- "welcome_title": "string",
- "welcome_tagline": "string",
- "greeting_enabled": true,
- "greeting_message": "string"
}
}
]
}
}
}
]
}
Filter contacts with custom filter options and pagination
account_id required | integer The numeric ID of the account |
page | integer |
Array of objects |
{- "payload": [
- {
- "attribute_key": "name",
- "filter_operator": "equal_to",
- "values": [
- "en"
], - "query_operator": "AND"
}, - {
- "attribute_key": "country_code",
- "filter_operator": "equal_to",
- "values": [
- "us"
], - "query_operator": null
}
]
}
[- {
- "id": 0,
- "payload": {
- "contact": {
- "email": "string",
- "name": "string",
- "phone_number": "string",
- "thumbnail": "string",
- "additional_attributes": { },
- "custom_attributes": {
- "attribute_key": "attribute_value",
- "signed_up_at": "dd/mm/yyyy"
}, - "contact_inboxes": [
- {
- "source_id": "string",
- "inbox": {
- "id": 0,
- "name": "string",
- "website_url": "string",
- "channel_type": "string",
- "avatar_url": "string",
- "widget_color": "string",
- "website_token": "string",
- "enable_auto_assignment": true,
- "web_widget_script": "string",
- "welcome_title": "string",
- "welcome_tagline": "string",
- "greeting_enabled": true,
- "greeting_message": "string"
}
}
]
}
}
}
]
Assign a conversation to an agent or a team
account_id required | integer The numeric ID of the account |
conversation_id required | integer The numeric ID of the conversation |
assignee_id | number Id of the assignee user |
team_id | number Id of the team. If the assignee_id is present, this param would be ignored |
{- "assignee_id": 0,
- "team_id": 0
}
{- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "custom_attributes": { },
- "accounts": [
- {
- "id": 0,
- "name": "string",
- "role": "administrator"
}
]
}
Lists all the labels of a conversation
account_id required | integer The numeric ID of the account |
conversation_id required | integer The numeric ID of the conversation |
{- "payload": [
- "string"
]
}
Add labels to a conversation. Note that this API would overwrite the existing list of labels associated to the conversation.
account_id required | integer The numeric ID of the account |
conversation_id required | integer The numeric ID of the conversation |
labels | Array of strings Array of labels (comma-separated strings) |
{- "labels": [
- "string"
]
}
{- "payload": [
- "string"
]
}
Get open, unassigned and all Conversation counts
account_id required | integer The numeric ID of the account |
status | string Default: "open" Enum: "open" "resolved" "pending" "snoozed" Filter by conversation status. |
q | string Filters conversations with messages containing the search term |
inbox_id | integer |
team_id | integer |
labels | Array of strings |
{- "meta": {
- "mine_count": 0,
- "unassigned_count": 0,
- "assigned_count": 0,
- "all_count": 0
}
}
List all the conversations with pagination
account_id required | integer The numeric ID of the account |
assignee_type | string Default: "all" Enum: "me" "unassigned" "all" "assigned" Filter conversations by assignee type. |
status | string Default: "open" Enum: "open" "resolved" "pending" "snoozed" Filter by conversation status. |
q | string Filters conversations with messages containing the search term |
inbox_id | integer |
team_id | integer |
labels | Array of strings |
page | integer Default: 1 paginate through conversations |
{- "data": {
- "meta": {
- "mine_count": 0,
- "unassigned_count": 0,
- "assigned_count": 0,
- "all_count": 0
}, - "payload": [
- {
- "id": 0,
- "messages": [
- {
- "content": "string",
- "content_type": "text",
- "content_attributes": { },
- "message_type": "incoming",
- "created_at": 0,
- "private": true,
- "attachment": { },
- "sender": { },
- "conversation_id": 0
}
], - "account_id": 0,
- "inbox_id": 0,
- "status": "open",
- "timestamp": "string",
- "contact_last_seen_at": "string",
- "agent_last_seen_at": "string",
- "unread_count": 0,
- "additional_attributes": { },
- "custom_attributes": {
- "attribute_key": "attribute_value",
- "priority_conversation_number": 3
}, - "meta": {
- "sender": {
- "id": 0,
- "name": "string",
- "thumbnail": "string",
- "channel": "string"
}, - "assignee": {
- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "custom_attributes": { },
- "accounts": [
- {
- "id": 0,
- "name": "string",
- "role": "administrator"
}
]
}
}
}
]
}
}
Creating a conversation in nimchat requires a source id.
account_id required | integer The numeric ID of the account |
source_id required | string Conversation source id |
inbox_id required | string Id of inbox in which the conversation is created |
contact_id | string Contact Id for which conversation is created |
additional_attributes | object Lets you specify attributes like browser information |
custom_attributes | object The object to save custom attributes for conversation, accepts custom attributes key and value |
status | string Enum: "open" "resolved" "pending" Specify the conversation whether it's pending, open, closed |
assignee_id | string Agent Id for assigning a conversation to an agent |
team_id | string Team Id for assigning a conversation to a team |
object The initial message to be sent to the conversation |
{- "source_id": "string",
- "inbox_id": "string",
- "contact_id": "string",
- "additional_attributes": { },
- "custom_attributes": {
- "attribute_key": "attribute_value",
- "priority_conversation_number": 3
}, - "status": "open",
- "assignee_id": "string",
- "team_id": "string",
- "message": {
- "content": "string",
- "template_params": {
- "name": "sample_issue_resolution",
- "category": "UTILITY",
- "language": "en_US",
- "processed_params": {
- "1": "Nimchat"
}
}
}
}
{- "id": 0,
- "account_id": 0,
- "inbox_id": 0
}
Filter conversations with custom filter options and pagination
account_id required | integer The numeric ID of the account |
page | integer |
Array of objects |
{- "payload": [
- {
- "attribute_key": "browser_language",
- "filter_operator": "not_eq",
- "values": [
- "en"
], - "query_operator": "AND"
}, - {
- "attribute_key": "status",
- "filter_operator": "eq",
- "values": [
- "pending"
], - "query_operator": null
}
]
}
{- "data": {
- "meta": {
- "mine_count": 0,
- "unassigned_count": 0,
- "assigned_count": 0,
- "all_count": 0
}, - "payload": [
- {
- "id": 0,
- "messages": [
- {
- "content": "string",
- "content_type": "text",
- "content_attributes": { },
- "message_type": "incoming",
- "created_at": 0,
- "private": true,
- "attachment": { },
- "sender": { },
- "conversation_id": 0
}
], - "account_id": 0,
- "inbox_id": 0,
- "status": "open",
- "timestamp": "string",
- "contact_last_seen_at": "string",
- "agent_last_seen_at": "string",
- "unread_count": 0,
- "additional_attributes": { },
- "custom_attributes": {
- "attribute_key": "attribute_value",
- "priority_conversation_number": 3
}, - "meta": {
- "sender": {
- "id": 0,
- "name": "string",
- "thumbnail": "string",
- "channel": "string"
}, - "assignee": {
- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "custom_attributes": { },
- "accounts": [
- {
- "id": 0,
- "name": "string",
- "role": "administrator"
}
]
}
}
}
]
}
}
Get all details regarding a conversation with all messages in the conversation
account_id required | integer The numeric ID of the account |
conversation_id required | integer The numeric ID of the conversation |
{- "id": 0,
- "messages": [
- {
- "content": "string",
- "content_type": "text",
- "content_attributes": { },
- "message_type": "incoming",
- "created_at": 0,
- "private": true,
- "attachment": { },
- "sender": { },
- "conversation_id": 0
}
], - "account_id": 0,
- "inbox_id": 0,
- "status": "open",
- "timestamp": "string",
- "contact_last_seen_at": "string",
- "agent_last_seen_at": "string",
- "unread_count": 0,
- "additional_attributes": { },
- "custom_attributes": {
- "attribute_key": "attribute_value",
- "priority_conversation_number": 3
}, - "meta": {
- "sender": {
- "id": 0,
- "name": "string",
- "thumbnail": "string",
- "channel": "string"
}, - "assignee": {
- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "custom_attributes": { },
- "accounts": [
- {
- "id": 0,
- "name": "string",
- "role": "administrator"
}
]
}
}
}
Toggles the status of the conversation between open and resolved
account_id required | integer The numeric ID of the account |
conversation_id required | integer The numeric ID of the conversation |
status required | string Enum: "open" "resolved" "pending" The status of the conversation |
{- "status": "open"
}
{- "meta": { },
- "payload": {
- "success": true,
- "current_status": "open",
- "conversation_id": 0
}
}
Toggles the priority of conversation
account_id required | integer The numeric ID of the account |
conversation_id required | integer The numeric ID of the conversation |
priority required | string Enum: "urgent" "high" "medium" "low" "none" The priority of the conversation |
{- "priority": "urgent"
}
Get details of custom attributes in an Account
account_id required | integer The numeric ID of the account |
attribute_model required | string Enum: "0" "1" conversation_attribute(0)/contact_attribute(1) |
[- {
- "id": 0,
- "attribute_display_name": "string",
- "attribute_display_type": "string",
- "attribute_description": "string",
- "attribute_key": "string",
- "attribute_values": "string",
- "default_value": "string",
- "attribute_model": "string",
- "account_id": 0
}
]
Add a new custom attribute to account
account_id required | integer The numeric ID of the account |
attribute_display_name | string Attribute display name |
attribute_display_type | integer Attribute display type (text- 0, number- 1, currency- 2, percent- 3, link- 4, date- 5, list- 6, checkbox- 7) |
attribute_description | string Attribute description |
attribute_key | string Attribute unique key value |
attribute_values | Array of strings Attribute values |
attribute_model | integer Attribute type(conversation_attribute- 0, contact_attribute- 1) |
{- "attribute_display_name": "string",
- "attribute_display_type": 0,
- "attribute_description": "string",
- "attribute_key": "string",
- "attribute_values": [
- "string"
], - "attribute_model": 0
}
{- "id": 0,
- "attribute_display_name": "string",
- "attribute_display_type": "string",
- "attribute_description": "string",
- "attribute_key": "string",
- "attribute_values": "string",
- "default_value": "string",
- "attribute_model": "string",
- "account_id": 0
}
Get the details of a custom attribute in the account
account_id required | integer The numeric ID of the account |
id required | integer The ID of the custom attribute to be updated. |
{- "id": 0,
- "attribute_display_name": "string",
- "attribute_display_type": "string",
- "attribute_description": "string",
- "attribute_key": "string",
- "attribute_values": "string",
- "default_value": "string",
- "attribute_model": "string",
- "account_id": 0
}
Update a custom attribute in account
account_id required | integer The numeric ID of the account |
id required | integer The ID of the custom attribute to be updated. |
attribute_display_name | string Attribute display name |
attribute_display_type | integer Attribute display type (text- 0, number- 1, currency- 2, percent- 3, link- 4, date- 5, list- 6, checkbox- 7) |
attribute_description | string Attribute description |
attribute_key | string Attribute unique key value |
attribute_values | Array of strings Attribute values |
attribute_model | integer Attribute type(conversation_attribute- 0, contact_attribute- 1) |
{- "attribute_display_name": "string",
- "attribute_display_type": 0,
- "attribute_description": "string",
- "attribute_key": "string",
- "attribute_values": [
- "string"
], - "attribute_model": 0
}
{- "id": 0,
- "attribute_display_name": "string",
- "attribute_display_type": "string",
- "attribute_description": "string",
- "attribute_key": "string",
- "attribute_values": "string",
- "default_value": "string",
- "attribute_model": "string",
- "account_id": 0
}
List all custom filters in a category of a user
account_id required | integer The numeric ID of the account |
filter_type | string Enum: "conversation" "contact" "report" The type of custom filter |
[- {
- "id": 0,
- "name": "string",
- "type": "conversation",
- "query": { },
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
Create a custom filter in the account
account_id required | integer The numeric ID of the account |
filter_type | string Enum: "conversation" "contact" "report" The type of custom filter |
name | string The name of the custom filter |
type | string Enum: "conversation" "contact" "report" The description about the custom filter |
query | object A query that needs to be saved as a custom filter |
{- "name": "string",
- "type": "conversation",
- "query": { }
}
{- "id": 0,
- "name": "string",
- "type": "conversation",
- "query": { },
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Get the details of a custom filter in the account
account_id required | integer The numeric ID of the account |
custom_filter_id required | integer The numeric ID of the custom filter |
{- "id": 0,
- "name": "string",
- "type": "conversation",
- "query": { },
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Update a custom filter's attributes
account_id required | integer The numeric ID of the account |
custom_filter_id required | integer The numeric ID of the custom filter |
name | string The name of the custom filter |
type | string Enum: "conversation" "contact" "report" The description about the custom filter |
query | object A query that needs to be saved as a custom filter |
{- "name": "string",
- "type": "conversation",
- "query": { }
}
{- "id": 0,
- "name": "string",
- "type": "conversation",
- "query": { },
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
List all inboxes available in the current account
account_id required | integer The numeric ID of the account |
[- {
- "id": 0,
- "name": "string",
- "website_url": "string",
- "channel_type": "string",
- "avatar_url": "string",
- "widget_color": "string",
- "website_token": "string",
- "enable_auto_assignment": true,
- "web_widget_script": "string",
- "welcome_title": "string",
- "welcome_tagline": "string",
- "greeting_enabled": true,
- "greeting_message": "string"
}
]
Get an inbox available in the current account
account_id required | integer The numeric ID of the account |
id required | number ID of the inbox |
{- "id": 0,
- "name": "string",
- "website_url": "string",
- "channel_type": "string",
- "avatar_url": "string",
- "widget_color": "string",
- "website_token": "string",
- "enable_auto_assignment": true,
- "web_widget_script": "string",
- "welcome_title": "string",
- "welcome_tagline": "string",
- "greeting_enabled": true,
- "greeting_message": "string"
}
You can create more than one website inbox in each account
account_id required | integer The numeric ID of the account |
name | string The name of the inbox |
avatar | string <binary> File for avatar image |
object |
{- "name": "string",
- "avatar": "string",
- "channel": {
- "type": "web_widget",
- "website_url": "string",
- "welcome_title": "string",
- "welcome_tagline": "string",
- "agent_away_message": "string",
- "widget_color": "string"
}
}
{- "id": 0,
- "name": "string",
- "website_url": "string",
- "channel_type": "string",
- "avatar_url": "string",
- "widget_color": "string",
- "website_token": "string",
- "enable_auto_assignment": true,
- "web_widget_script": "string",
- "welcome_title": "string",
- "welcome_tagline": "string",
- "greeting_enabled": true,
- "greeting_message": "string"
}
Add avatar and disable auto assignment for an inbox
account_id required | integer The numeric ID of the account |
id required | number ID of the inbox |
name | string The name of the inbox |
enable_auto_assignment required | boolean Enable Auto Assignment |
avatar | string <binary> Image file for avatar |
object |
{- "name": "string",
- "enable_auto_assignment": true,
- "avatar": "string",
- "channel": {
- "website_url": "string",
- "welcome_title": "string",
- "welcome_tagline": "string",
- "agent_away_message": "string",
- "widget_color": "string"
}
}
{- "id": 0,
- "name": "string",
- "website_url": "string",
- "channel_type": "string",
- "avatar_url": "string",
- "widget_color": "string",
- "website_token": "string",
- "enable_auto_assignment": true,
- "web_widget_script": "string",
- "welcome_title": "string",
- "welcome_tagline": "string",
- "greeting_enabled": true,
- "greeting_message": "string"
}
See if an agent bot is associated to the Inbox
account_id required | integer The numeric ID of the account |
id required | number ID of the inbox |
{- "id": 0,
- "name": "string",
- "description": "string",
- "account_id": 0,
- "outgoing_url": "string"
}
To add an agent bot pass agent_bot id, to remove agent bot from an inbox pass null
account_id required | integer The numeric ID of the account |
id required | number ID of the inbox |
agent_bot required | number Agent bot ID |
{- "agent_bot": 0
}
Get Details of Agents in an Inbox
account_id required | integer The numeric ID of the account |
inbox_id required | integer The ID of the Inbox |
[- {
- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "availability_status": "available",
- "auto_offline": true,
- "custom_attributes": { }
}
]
Add a new Agent to Inbox
account_id required | integer The numeric ID of the account |
inbox_id required | string The ID of the inbox |
user_ids required | Array of integers IDs of users to be added to the inbox |
{- "inbox_id": "string",
- "user_ids": [
- 0
]
}
[- {
- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "availability_status": "available",
- "auto_offline": true,
- "custom_attributes": { }
}
]
All agents except the one passed in params will be removed
account_id required | integer The numeric ID of the account |
inbox_id required | string The ID of the inbox |
user_ids required | Array of integers IDs of users to be added to the inbox |
{- "inbox_id": "string",
- "user_ids": [
- 0
]
}
[- {
- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "availability_status": "available",
- "auto_offline": true,
- "custom_attributes": { }
}
]
Remove an Agent from Inbox
account_id required | integer The numeric ID of the account |
inbox_id required | string The ID of the inbox |
user_ids required | Array of integers IDs of users to be deleted from the inbox |
{- "inbox_id": "string",
- "user_ids": [
- 0
]
}
Get the details of all Integrations available for the account
account_id required | integer The numeric ID of the account |
[- {
- "id": "string",
- "name": "string",
- "description": "string",
- "hook_type": "string",
- "enabled": true,
- "allow_multiple_hooks": true,
- "hooks": [
- { }
]
}
]
Create an integration hook
account_id required | integer The numeric ID of the account |
app_id | string The ID of app for which integration hook is being created |
inbox_id | string The inbox ID, if the hook is an inbox hook |
settings | object The settings required by the integration |
{- "app_id": "string",
- "inbox_id": "string",
- "settings": { }
}
{- "id": "string",
- "app_id": "string",
- "inbox_id": "string",
- "account_id": "string",
- "status": true,
- "hook_type": true,
- "settings": { }
}
Update an Integration Hook
account_id required | integer The numeric ID of the account |
hook_id required | integer The numeric ID of the integration hook |
settings | object The settings required by the integration |
{- "settings": { }
}
{- "id": "string",
- "app_id": "string",
- "inbox_id": "string",
- "account_id": "string",
- "status": true,
- "hook_type": true,
- "settings": { }
}
List all messages of a conversation
account_id required | integer The numeric ID of the account |
conversation_id required | integer The numeric ID of the conversation |
[- {
- "id": 0,
- "content": "string",
- "content_type": "text",
- "content_attributes": { },
- "message_type": "incoming",
- "created_at": 0,
- "private": true,
- "attachment": { },
- "sender": { },
- "conversation_id": 0
}
]
Create a new message in the conversation
account_id required | integer The numeric ID of the account |
conversation_id required | integer The numeric ID of the conversation |
content required | string The content of the message |
message_type | string Enum: "outgoing" "incoming" |
private | boolean Flag to identify if it is a private note |
content_type | string Enum: "input_email" "cards" "input_select" "form" "article" if you want to create custom message types |
content_attributes | object attributes based on your content type |
object The template params for the message in case of whatsapp Channel |
{- "content": "string",
- "message_type": "outgoing",
- "private": true,
- "content_type": "cards",
- "content_attributes": { },
- "template_params": {
- "name": "sample_issue_resolution",
- "category": "UTILITY",
- "language": "en_US",
- "processed_params": {
- "1": "Nimchat"
}
}
}
{- "id": 0,
- "content": "string",
- "content_type": "text",
- "content_attributes": { },
- "message_type": "incoming",
- "created_at": 0,
- "private": true,
- "attachment": { },
- "sender": { },
- "conversation_id": 0
}
Delete a message and it's attachments from the conversation.
account_id required | integer The numeric ID of the account |
conversation_id required | integer The numeric ID of the conversation |
message_id required | integer The numeric ID of the message |
{- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "custom_attributes": { },
- "accounts": [
- {
- "id": 0,
- "name": "string",
- "role": "administrator"
}
]
}
Get Account reports for a specific type, metric and date range
account_id required | integer The numeric ID of the account |
metric required | string Enum: "conversations_count" "incoming_messages_count" "outgoing_messages_count" "avg_first_response_time" "avg_resolution_time" "resolutions_count" The type of metric |
type required | string Enum: "account" "agent" "inbox" "label" "team" Type of report |
id | string The Id of specific object in case of agent/inbox/label |
since | string The timestamp from where report should start. |
until | string The timestamp from where report should stop. |
[- {
- "value": "string",
- "timestamp": 0
}
]
Get Account reports summary for a specific type and date range
account_id required | integer The numeric ID of the account |
type required | string Enum: "account" "agent" "inbox" "label" "team" Type of report |
id | string The Id of specific object in case of agent/inbox/label |
since | string The timestamp from where report should start. |
until | string The timestamp from where report should stop. |
{- "avg_first_response_time": "string",
- "avg_resolution_time": "string",
- "conversations_count": 0,
- "incoming_messages_count": 0,
- "outgoing_messages_count": 0,
- "resolutions_count": 0,
- "previous": {
- "avg_first_response_time": "string",
- "avg_resolution_time": "string",
- "conversations_count": 0,
- "incoming_messages_count": 0,
- "outgoing_messages_count": 0,
- "resolutions_count": 0
}
}
Get conversation metrics for Account
account_id required | integer The numeric ID of the account |
type required | string Value: "account" Type of report |
{- "open": 0,
- "unattended": 0,
- "unassigned": 0
}
Get conversation metrics for Agent
account_id required | integer The numeric ID of the account |
type required | string Value: "agent" Type of report |
user_id | string The numeric ID of the user |
[- {
- "id": 0,
- "name": "string",
- "email": "string",
- "thumbnail": "string",
- "availability": "string",
- "metric": {
- "open": 0,
- "unattended": 0
}
}
]
List all teams available in the current account
account_id required | integer The numeric ID of the account |
[- {
- "id": 0,
- "name": "string",
- "description": "string",
- "allow_auto_assign": true,
- "account_id": 0,
- "is_member": true
}
]
Create a team in the account
account_id required | integer The numeric ID of the account |
name | string The name of the team |
description | string The description of the team |
allow_auto_assign | boolean 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 |
{- "name": "string",
- "description": "string",
- "allow_auto_assign": true
}
{- "id": 0,
- "name": "string",
- "description": "string",
- "allow_auto_assign": true,
- "account_id": 0,
- "is_member": true
}
Get the details of a team in the account
account_id required | integer The numeric ID of the account |
team_id required | integer The ID of the team to be updated |
{- "id": 0,
- "name": "string",
- "description": "string",
- "allow_auto_assign": true,
- "account_id": 0,
- "is_member": true
}
Update a team's attributes
account_id required | integer The numeric ID of the account |
team_id required | integer The ID of the team to be updated |
name | string The name of the team |
description | string The description of the team |
allow_auto_assign | boolean 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 |
{- "name": "string",
- "description": "string",
- "allow_auto_assign": true
}
{- "id": 0,
- "name": "string",
- "description": "string",
- "allow_auto_assign": true,
- "account_id": 0,
- "is_member": true
}
Get Details of Agents in an Team
account_id required | integer The numeric ID of the account |
team_id required | integer The ID of the team to be updated |
[- {
- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "availability_status": "available",
- "auto_offline": true,
- "custom_attributes": { }
}
]
Add a new Agent to Team
account_id required | integer The numeric ID of the account |
team_id required | integer The ID of the team to be updated |
user_ids required | Array of integers IDs of users to be added to the team |
{- "user_ids": [
- 0
]
}
[- {
- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "availability_status": "available",
- "auto_offline": true,
- "custom_attributes": { }
}
]
All agents except the one passed in params will be removed
account_id required | integer The numeric ID of the account |
team_id required | integer The ID of the team to be updated |
user_ids required | Array of integers IDs of users to be added to the team |
{- "user_ids": [
- 0
]
}
[- {
- "id": 0,
- "uid": "string",
- "name": "string",
- "available_name": "string",
- "display_name": "string",
- "email": "string",
- "account_id": 0,
- "role": "agent",
- "confirmed": true,
- "availability_status": "available",
- "auto_offline": true,
- "custom_attributes": { }
}
]
Remove an Agent from Team
account_id required | integer The numeric ID of the account |
team_id required | integer The ID of the team to be updated |
user_ids required | Array of integers IDs of users to be deleted from the team |
{- "user_ids": [
- 0
]
}
List all webhooks in the account
account_id required | integer The numeric ID of the account |
[- {
- "id": 0,
- "url": "string",
- "subscriptions": [
- "conversation_created"
], - "account_id": 0
}
]
Add a webhook subscription to the account
account_id required | integer The numeric ID of the account |
url | string The url where the events should be sent |
subscriptions | Array of strings Items Enum: "conversation_created" "conversation_status_changed" "conversation_updated" "message_created" "message_updated" "webwidget_triggered" The events you want to subscribe to. |
{- "url": "string",
- "subscriptions": [
- "conversation_created"
]
}
{- "id": 0,
- "url": "string",
- "subscriptions": [
- "conversation_created"
], - "account_id": 0
}
Update a webhook object in the account
webhook_id required | integer The numeric ID of the webhook |
account_id required | integer The numeric ID of the account |
url | string The url where the events should be sent |
subscriptions | Array of strings Items Enum: "conversation_created" "conversation_status_changed" "conversation_updated" "message_created" "message_updated" "webwidget_triggered" The events you want to subscribe to. |
{- "url": "string",
- "subscriptions": [
- "conversation_created"
]
}
{- "id": 0,
- "url": "string",
- "subscriptions": [
- "conversation_created"
], - "account_id": 0
}
Get details of automation rules in an Account
account_id required | integer The numeric ID of the account |
page | integer Default: 1 The page parameter |
[- {
- "event_name": "message_created",
- "name": "Add label on message create event",
- "description": "Add label support and sales on message create event if incoming message content contains text help",
- "active": true,
- "actions": [
- {
- "action_name": "add_label",
- "action_params": [
- "support",
- "sales"
]
}
], - "conditions": [
- {
- "attribute_key": "content",
- "filter_operator": "contains",
- "values": [
- "help"
], - "query_operator": "nil"
}
], - "account_id": 0
}
]
Add a new automation rule to account
account_id required | integer The numeric ID of the account |
name | string Rule name |
description | string The description about the automation and actions |
event_name | string Enum: "conversation_created" "conversation_updated" "message_created" The event when you want to execute the automation actions |
active | boolean Enable/disable automation rule |
actions | Array of objects Array of actions which you want to perform when condition matches, e.g add label support if message contains content help. |
conditions | Array of objects Array of conditions on which conversation filter would work, e.g message content contains text help. |
{- "name": "Add label on message create event",
- "description": "Add label support and sales on message create event if incoming message content contains text help",
- "event_name": "message_created",
- "active": true,
- "actions": [
- {
- "action_name": "add_label",
- "action_params": [
- "support"
]
}
], - "conditions": [
- {
- "attribute_key": "content",
- "filter_operator": "contains",
- "query_operator": "nil",
- "values": [
- "help"
]
}
]
}
{- "event_name": "message_created",
- "name": "Add label on message create event",
- "description": "Add label support and sales on message create event if incoming message content contains text help",
- "active": true,
- "actions": [
- {
- "action_name": "add_label",
- "action_params": [
- "support",
- "sales"
]
}
], - "conditions": [
- {
- "attribute_key": "content",
- "filter_operator": "contains",
- "values": [
- "help"
], - "query_operator": "nil"
}
], - "account_id": 0
}
Get the details of a automation rule in the account
account_id required | integer The numeric ID of the account |
id required | integer The ID of the automation rule to be updated. |
{- "event_name": "message_created",
- "name": "Add label on message create event",
- "description": "Add label support and sales on message create event if incoming message content contains text help",
- "active": true,
- "actions": [
- {
- "action_name": "add_label",
- "action_params": [
- "support",
- "sales"
]
}
], - "conditions": [
- {
- "attribute_key": "content",
- "filter_operator": "contains",
- "values": [
- "help"
], - "query_operator": "nil"
}
], - "account_id": 0
}
Update a automation rule in account
account_id required | integer The numeric ID of the account |
id required | integer The ID of the automation rule to be updated. |
name | string Rule name |
description | string The description about the automation and actions |
event_name | string Enum: "conversation_created" "conversation_updated" "message_created" The event when you want to execute the automation actions |
active | boolean Enable/disable automation rule |
actions | Array of objects Array of actions which you want to perform when condition matches, e.g add label support if message contains content help. |
conditions | Array of objects Array of conditions on which conversation filter would work, e.g message content contains text help. |
{- "name": "Add label on message create event",
- "description": "Add label support and sales on message create event if incoming message content contains text help",
- "event_name": "message_created",
- "active": true,
- "actions": [
- {
- "action_name": "add_label",
- "action_params": [
- "support"
]
}
], - "conditions": [
- {
- "attribute_key": "content",
- "filter_operator": "contains",
- "query_operator": "nil",
- "values": [
- "help"
]
}
]
}
{- "event_name": "message_created",
- "name": "Add label on message create event",
- "description": "Add label support and sales on message create event if incoming message content contains text help",
- "active": true,
- "actions": [
- {
- "action_name": "add_label",
- "action_params": [
- "support",
- "sales"
]
}
], - "conditions": [
- {
- "attribute_key": "content",
- "filter_operator": "contains",
- "values": [
- "help"
], - "query_operator": "nil"
}
], - "account_id": 0
}
Add a new portal to account
account_id required | integer The numeric ID of the account |
archived | boolean Status to check if portal is live |
color | string Header color for help-center |
config | object Configuration about supporting locales |
custom_domain | string Custom domain to display help center. |
header_text | string Help center header |
homepage_link | string link to main dashboard |
name | string Name for the portal |
slug | string Slug for the portal to display in link |
page_title | string Page title for the portal |
account_id | integer |
{- "archived": true,
- "color": "add color HEX string, \"#fffff\"",
- "config": {
- "allowed_locales": [
- "en",
- "es"
], - "default_locale": "en"
}, - "header_text": "Handbook",
- "name": "string",
- "slug": "string",
- "page_title": "string",
- "account_id": 0
}
{- "id": 0,
- "archived": true,
- "color": "string",
- "config": { },
- "custom_domain": "string",
- "header_text": "string",
- "homepage_link": "string",
- "name": "string",
- "slug": "string",
- "page_title": "string",
- "account_id": 0,
- "categories": [
- {
- "id": 0,
- "description": "string",
- "locale": "string",
- "name": "string",
- "slug": "string",
- "position": 0,
- "portal_id": 0,
- "account_id": 0,
- "associated_category_id": 0,
- "parent_category_id": 0
}
], - "articles": [
- {
- "id": 0,
- "content": "string",
- "meta": { },
- "position": 0,
- "status": "draft",
- "title": "string",
- "slug": "string",
- "views": 0,
- "portal_id": 0,
- "account_id": 0,
- "author_id": 0,
- "category_id": 0,
- "folder_id": 0,
- "associated_article_id": 0
}
]
}
Get details of portals in an Account
account_id required | integer The numeric ID of the account |
[- {
- "id": 0,
- "archived": true,
- "color": "string",
- "config": { },
- "custom_domain": "string",
- "header_text": "string",
- "homepage_link": "string",
- "name": "string",
- "slug": "string",
- "page_title": "string",
- "account_id": 0,
- "categories": [
- {
- "id": 0,
- "description": "string",
- "locale": "string",
- "name": "string",
- "slug": "string",
- "position": 0,
- "portal_id": 0,
- "account_id": 0,
- "associated_category_id": 0,
- "parent_category_id": 0
}
], - "articles": [
- {
- "id": 0,
- "content": "string",
- "meta": { },
- "position": 0,
- "status": "draft",
- "title": "string",
- "slug": "string",
- "views": 0,
- "portal_id": 0,
- "account_id": 0,
- "author_id": 0,
- "category_id": 0,
- "folder_id": 0,
- "associated_article_id": 0
}
]
}
]
update a new portal to account
account_id required | integer The numeric ID of the account |
archived | boolean Status to check if portal is live |
color | string Header color for help-center |
config | object Configuration about supporting locales |
custom_domain | string Custom domain to display help center. |
header_text | string Help center header |
homepage_link | string link to main dashboard |
name | string Name for the portal |
slug | string Slug for the portal to display in link |
page_title | string Page title for the portal |
account_id | integer |
{- "archived": true,
- "color": "add color HEX string, \"#fffff\"",
- "config": {
- "allowed_locales": [
- "en",
- "es"
], - "default_locale": "en"
}, - "header_text": "Handbook",
- "name": "string",
- "slug": "string",
- "page_title": "string",
- "account_id": 0
}
{- "id": 0,
- "archived": true,
- "color": "string",
- "config": { },
- "custom_domain": "string",
- "header_text": "string",
- "homepage_link": "string",
- "name": "string",
- "slug": "string",
- "page_title": "string",
- "account_id": 0,
- "categories": [
- {
- "id": 0,
- "description": "string",
- "locale": "string",
- "name": "string",
- "slug": "string",
- "position": 0,
- "portal_id": 0,
- "account_id": 0,
- "associated_category_id": 0,
- "parent_category_id": 0
}
], - "articles": [
- {
- "id": 0,
- "content": "string",
- "meta": { },
- "position": 0,
- "status": "draft",
- "title": "string",
- "slug": "string",
- "views": 0,
- "portal_id": 0,
- "account_id": 0,
- "author_id": 0,
- "category_id": 0,
- "folder_id": 0,
- "associated_article_id": 0
}
]
}
Add a new category to portal
account_id required | integer The numeric ID of the account |
description | string Category description |
locale | string Category locale |
name | string Category name |
slug | string Category slug |
position | integer Category position in the portal list to sort |
portal_id | integer |
account_id | integer |
associated_category_id | integer To associate similar categories to each other, e.g same category of product documentation in different languages |
parent_category_id | integer To define parent category, e.g product documentation has multiple level features in sales category or in engineering category. |
{- "description": "string",
- "locale": "en/es",
- "name": "string",
- "slug": "string",
- "position": 0,
- "portal_id": 0,
- "account_id": 0,
- "associated_category_id": 0,
- "parent_category_id": 0
}
{- "id": 0,
- "description": "string",
- "locale": "string",
- "name": "string",
- "slug": "string",
- "position": 0,
- "portal_id": 0,
- "account_id": 0,
- "associated_category_id": 0,
- "parent_category_id": 0
}
Add a new article to portal
account_id required | integer The numeric ID of the account |
content | string The text content. |
meta | object Use for search |
position | integer article position in category |
status | integer |
title | string |
slug | string |
views | integer |
portal_id | integer |
account_id | integer |
author_id | integer |
category_id | integer |
folder_id | integer |
associated_article_id | integer To associate similar articles to each other, e.g to provide the link for the reference. |
{- "content": "string",
- "meta": {
- "tags": [
- "article_name"
], - "title": "article title",
- "description": "article description"
}, - "position": 0,
- "status": [
- "draft",
- "published",
- "archived"
], - "title": "string",
- "slug": "string",
- "views": 0,
- "portal_id": 0,
- "account_id": 0,
- "author_id": 0,
- "category_id": 0,
- "folder_id": 0,
- "associated_article_id": 0
}
{- "id": 0,
- "content": "string",
- "meta": { },
- "position": 0,
- "status": "draft",
- "title": "string",
- "slug": "string",
- "views": 0,
- "portal_id": 0,
- "account_id": 0,
- "author_id": 0,
- "category_id": 0,
- "folder_id": 0,
- "associated_article_id": 0
}
Create a contact
inbox_identifier required | string The identifier obtained from API inbox channel |
identifier | string External identifier of the contact |
identifier_hash | string Identifier hash prepared for HMAC authentication |
string Email of the contact | |
name | string Name of the contact |
phone_number | string Phone number of the contact |
avatar_url | string The url to a jpeg, png file for the user avatar |
custom_attributes | object Custom attributes of the customer |
{- "identifier": "string",
- "identifier_hash": "string",
- "email": "string",
- "name": "string",
- "phone_number": "string",
- "avatar_url": "string",
- "custom_attributes": { }
}
{- "id": 0,
- "source_id": "string",
- "name": "string",
- "email": "string",
- "pubsub_token": "string"
}
Get the details of a contact
inbox_identifier required | string The identifier obtained from API inbox channel |
contact_identifier required | string The source id of contact obtained on contact create |
{- "id": 0,
- "source_id": "string",
- "name": "string",
- "email": "string",
- "pubsub_token": "string"
}
Update a contact's attributes
inbox_identifier required | string The identifier obtained from API inbox channel |
contact_identifier required | string The source id of contact obtained on contact create |
identifier | string External identifier of the contact |
identifier_hash | string Identifier hash prepared for HMAC authentication |
string Email of the contact | |
name | string Name of the contact |
phone_number | string Phone number of the contact |
avatar_url | string The url to a jpeg, png file for the user avatar |
custom_attributes | object Custom attributes of the customer |
{- "identifier": "string",
- "identifier_hash": "string",
- "email": "string",
- "name": "string",
- "phone_number": "string",
- "avatar_url": "string",
- "custom_attributes": { }
}
{- "id": 0,
- "source_id": "string",
- "name": "string",
- "email": "string",
- "pubsub_token": "string"
}
Create a conversation
inbox_identifier required | string The identifier obtained from API inbox channel |
contact_identifier required | string The source id of contact obtained on contact create |
custom_attributes | object Custom attributes of the conversation |
{- "custom_attributes": { }
}
{- "id": 0,
- "inbox_id": "string",
- "messages": [
- {
- "content": "string",
- "content_type": "text",
- "content_attributes": { },
- "message_type": "incoming",
- "created_at": 0,
- "private": true,
- "attachment": { },
- "sender": { },
- "conversation_id": 0
}
], - "contact": { }
}
List all conversations for the contact
inbox_identifier required | string The identifier obtained from API inbox channel |
contact_identifier required | string The source id of contact obtained on contact create |
[- {
- "id": 0,
- "inbox_id": "string",
- "messages": [
- {
- "content": "string",
- "content_type": "text",
- "content_attributes": { },
- "message_type": "incoming",
- "created_at": 0,
- "private": true,
- "attachment": { },
- "sender": { },
- "conversation_id": 0
}
], - "contact": { }
}
]
Create a message
inbox_identifier required | string The identifier obtained from API inbox channel |
contact_identifier required | string The source id of contact obtained on contact create |
conversation_id required | integer The numeric ID of the conversation |
content | string Content for the message |
echo_id | string Temporary identifier which will be passed back via websockets |
{- "content": "string",
- "echo_id": "string"
}
{- "id": "string",
- "content": "string",
- "message_type": "string",
- "content_type": "string",
- "content_attributes": "string",
- "created_at": "string",
- "conversation_id": "string",
- "attachments": [
- { }
], - "sender": { }
}
List all messages in the conversation
inbox_identifier required | string The identifier obtained from API inbox channel |
contact_identifier required | string The source id of contact obtained on contact create |
conversation_id required | integer The numeric ID of the conversation |
[- {
- "id": "string",
- "content": "string",
- "message_type": "string",
- "content_type": "string",
- "content_attributes": "string",
- "created_at": "string",
- "conversation_id": "string",
- "attachments": [
- { }
], - "sender": { }
}
]
Update a message
inbox_identifier required | string The identifier obtained from API inbox channel |
contact_identifier required | string The source id of contact obtained on contact create |
conversation_id required | integer The numeric ID of the conversation |
message_id required | integer The numeric ID of the message |
object |
{- "submitted_values": {
- "csat_survey_response": {
- "rating": 5,
- "feedback_message": "Great"
}
}
}
{- "id": "string",
- "content": "string",
- "message_type": "string",
- "content_type": "string",
- "content_attributes": "string",
- "created_at": "string",
- "conversation_id": "string",
- "attachments": [
- { }
], - "sender": { }
}