SupportBee API documentation (1.0.0)

Download OpenAPI specification:

SupportBee's support ticket system enables teams to organize, prioritize and collaborate on customer support emails.

Introduction

This page documents SupportBee's REST(like) API and how to access SupportBee's functionality programatically.

Authentication

  • All API requests must have the Accept header set to application/json

We use Bearer Token Authentication to authenticate API requests. Pass your API token via the Authorization header.

Authorization: Bearer your_api_token

To find your API token, click on your profile picture at the top left corner of your SupportBee desk and then click on "API Token".

All API endpoints except the Create Ticket endpoint require authentication.

Response Status Codes

The API will respond with a HTTP 2xx status upon success and a non 2x status upon failure.

Description Status Code
Success 200
Created 201
Failure 500
Access Denied 403
Validation Failure 400

Date Format

Some of the following API calls accept parameters which represent Date/Time. The date/time should be provided in UTC. The format to specify date is shown in the following examples:

2001-02-15T04:05:06+07:00
20010215T040506+0700
15th Feb 2001 04:05:06 PM
2001-02-15
20010215

Attachments

An attachment can be created by multipart/form-data POST request to /attachments.

Example (using curl):

curl -v -X POST '<company>.supportbee.com/attachments?auth_token=<auth_token>' -F 'files[]=@/location/of/the/file'

Create Attachment

An attachment can be created by multipart/form-data POST request to /attachments.

The name of the POST parameter should be files[].

Authorizations:
ApiKeyHeader
header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: multipart/form-data
required
files[]
string <binary>

Responses

Response samples

Content type
application/json
{}

Comments

Fetch and post comments on the tickets.

Fetch Comments

Retrieves all the comments on the ticket specified by the ticket ID.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Create Comment

Creates a comment on a ticket specified by the ticket ID.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

A comment for a ticket

object

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{}

CustomerGroups

Actions to work with customer groups.

Fetching Users and Customer Groups

Retrieves all users of the company

Authorizations:
ApiKeyHeader
query Parameters
with_invited
boolean
Default: false

If true, returns all the agents, including invited (unconfirmed) agents.

with_roles
string
Default: "admin,agent,collaborator"
Enum: "admin" "agent" "collaborator" "customer"
type
string
Default: "user"
Enum: "user" "customer_group"
header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Create a user or customer group

Creates a user for the company. Also used to create customer groups, which are treated as users.

Authorizations:
ApiKeyHeader
header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
One of
object

Responses

Request samples

Content type
application/json
Example
{
  • "user": {
    }
}

Response samples

Content type
appliction/json
{}

Show User or Customer Group

Retrieves the user specified by id.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The users ID.

query Parameters
max_tickets
integer
Default: 5

Specify the maximum number of recent tickets you want to retrieve that this user created. If false returns all tickets.

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Fetch Members of a customer group

Retrieves all members of a customer group specified by the customer groups ID.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The ID of the customer group.

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Add Member

Add a user to a customer group as a member.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The ID of the customer group

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "member": {
    }
}

Response samples

Content type
application/json
{}

Drafts

Create, update, fetch and delete reply drafts on tickets.

Drafts allow agents to save work-in-progress replies before sending them.

Fetch Draft

Retrieves the reply draft for the ticket specified by the ticket ID. If no draft exists, returns a new draft with quoted content from the last message.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The ticket ID

query Parameters
quote
boolean
Default: true

If false, the draft is returned without quoted content from the previous message.

time_zone
string
Default: "UTC"

The time zone to use when formatting quoted content timestamps. Accepts IANA time zone names (e.g. "America/New_York").

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Create Draft

Creates a reply draft on the ticket specified by the ticket ID.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The ticket ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

A draft for a ticket reply

object

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{}

Update Draft

Updates the reply draft on the ticket specified by the ticket ID.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The ticket ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

A draft for a ticket reply

object

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{}

Delete Draft

Deletes the reply draft on the ticket specified by the ticket ID.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The ticket ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Emails

Setup forwarding addresses.

Fetch Emails

Returns all the emails of the company.

Authorizations:
ApiKeyHeader
header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Create Email

Creates an email for the company

Authorizations:
ApiKeyHeader
header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

Payload to create a forwarding address

object

Responses

Request samples

Content type
application/json
{
  • "forwarding_address": {
    }
}

Response samples

Content type
application/json
{}

Filters

A filter is composed of two parts; a rule and a consequence.

  • A rule dictates which tickets are matched
  • A consequence decides what action is taken on the ticket.

To create a filter, you need to create a rule, a consequence and then associate them together.

Create Rule

Creates a new rule

Authorizations:
ApiKeyHeader
header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

Payload to create a rule.

object

Responses

Request samples

Content type
application/json
{
  • "rule": {}
}

Response samples

Content type
application/json
{
  • "rule": {
    }
}

Create Consequence

Creates a new consequence

Authorizations:
ApiKeyHeader
header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

Payload to create a consequence.

object

Responses

Request samples

Content type
application/json
{
  • "consequence": {
    }
}

Response samples

Content type
application/json
{
  • "consequence": {
    }
}

Create Filter

Creates a filter with a rule and a consequence.

Authorizations:
ApiKeyHeader
header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
consequence_id
string
rule_id
string

Responses

Request samples

Content type
application/json
{
  • "consequence_id": "5_20130430051603",
  • "rule_id": "5_20130430051601"
}

Labels

Fetch the labels you are using in your company.

Add Label

Adds a label to the ticket. The label must already exist in your company.

Authorizations:
ApiKeyHeader
path Parameters
ticket_id
required
integer

The ticket ID

label_name
required
string

The name of the label to add

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{
  • "label": {
    }
}

Remove Label

Removes a label from the ticket.

Authorizations:
ApiKeyHeader
path Parameters
ticket_id
required
integer

The ticket ID

label_name
required
string

The name of the label to remove

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Fetch Labels

Retrieves all the custom labels of a company.

Authorizations:
ApiKeyHeader
header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{
  • "labels": [
    ]
}

Replies

List, create and fetch replies.

Fetch ticket replies

Retrieves all the replies of a ticket specified by it's ID

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Create a reply

Post a reply to a ticket specified by it's ID. Admin users can reply on behalf of an agent.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

A reply to a ticket

object

Responses

Request samples

Content type
application/json
{
  • "reply": {
    }
}

Response samples

Content type
application/json
{}

Show a reply

Retrieves the reply for the ticket specified by the ticket and reply IDs.

Authorizations:
ApiKeyHeader
path Parameters
ticket_id
required
integer

The tickets ID

id
required
integer

The reply ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Reports

Reports on average first response time, ticket counts and replies count.

Note: Reports are only available to admins.

Returns data points for average first response tim

Returns data points for average first response time.

Authorizations:
ApiKeyHeader
query Parameters
user
integer

ID of the agent to filter data points on.

team
integer

ID of the team to filter data points on.

label
string

Name of the label to filter data points on.

Date (string) or DateTime (string) or Timestamp (string)
header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{
  • "data_points": [
    ]
}

Returns data points for tickets' count.

Returns data points for tickets' count.

Authorizations:
ApiKeyHeader
query Parameters
user
integer

ID of the agent to filter data points on.

team
integer

ID of the team to filter data points on.

label
string

Name of the label to filter data points on.

Date (string) or DateTime (string) or Timestamp (string)
header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{
  • "data_points": [
    ]
}

Returns data points for replies' count.

Returns data points for replies' count.

Authorizations:
ApiKeyHeader
query Parameters
user
integer

ID of the agent to filter data points on.

team
integer

ID of the team to filter data points on.

label
string

Name of the label to filter data points on.

Date (string) or DateTime (string) or Timestamp (string)
header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{
  • "data_points": [
    ]
}

Snippets

Snippets allow you to create canned responses you can use when replying to your customers.

List, create, update and delete snippets.

Fetch Snippets

Returns all the snippets of the company

Authorizations:
ApiKeyHeader
header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{
  • "snippets": [
    ]
}

Create Snippet

Creates a snippet for the company

Authorizations:
ApiKeyHeader
header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

Snippet payload to create a snippet

object

Responses

Request samples

Content type
application/json
{
  • "snippet": {
    }
}

Response samples

Content type
application/json
{
  • "snippet": {
    }
}

Update Snippet

Updates a Snippet specified by it's ID.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The ID of the snippet to be updated.

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

Snippet payload to create a snippet

object

Responses

Request samples

Content type
application/json
{
  • "snippet": {
    }
}

Response samples

Content type
application/json
{
  • "snippet": {
    }
}

Delete Snippet

Deletes a Snippet specified by it's ID

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The ID of the snippet to be deleted

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Spam

Mark and un-mark tickets as spam.

Mark ticket as spam

Marks a ticket as spam specified by it's ID

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Un-spam a ticket

Marks a ticket as NOT spam specified by it's ID

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Teams

List teams, assign and un-assign tickets to a team.

Assign a ticket to a team

Assigns a ticket to a team specified by the tickets ID and the team to be assigned (If the ticket is already assigned to a team and a user, reassigning the ticket to another team will remove the user assignee).

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

A ticket assignation to a team

object

Responses

Request samples

Content type
application/json
{
  • "team_assignment": {
    }
}

Response samples

Content type
application/json
{}

Un-assign a ticket

Un-assign a ticket from the assigned team

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Fetching Teams

Retrieves all the teams of the company

Authorizations:
ApiKeyHeader
query Parameters
with_users
boolean

If true, retrieves only teams with users in them.

user
string
Value: "me"

When me, retrives only the teams of the current user. All other values passed to this parameter is ignored

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Tickets

Actions you can do on tickets.

List, add, create, search, delete, archive, unarchive, assign, answer, mark as spam, trash, show replies and comment on tickets.

List tickets

Returns 15 tickets of the company in the order of their last activity.

Only tickets that are not archived are returned.

Authorizations:
ApiKeyHeader
query Parameters
per_page
integer
Default: 15

Specifies the number of tickets to retrieve. Must be less than 100.

page
integer
Default: 1

Specifies the page of tickets to retrieve.

archived
string
Default: false

If true, retrieves only archived tickets. If false, it does not return any archived tickets. If any, includes archived tickets in the result.

spam
boolean
Default: false

If true, retrieved tickets contain tickets marked as spam.

trash
boolean
Default: false

If true, retrieved tickets contain tickets that are trashed.

replies
boolean

If true, retrieved tickets contain only tickets with replies. If false, retrieved tickets contain only tickets without replies.

max_replies
integer

Specifies the number of replies that a ticket must have. This cannot be used with replies = false.

assigned_user
string

If me, retrieves only tickets assigned to the current user If agent_id, retrieves only tickets assigned to the Agent with id agent_id If any, retrieves tickets that are assigned to any user If none, retrieves tickets that aren't assigned to any user.

assigned_team
string

If mine, retrieves only tickets assigned to the teams of the current user If team_id, retrieves only tickets assigned to the team with id team_id If none, retrieves tickets that aren't assigned to any team.

label
string

Set to label_name, retrieves only the tickets with the label label_name

Date (string) or DateTime (string) or Timestamp (string)

Can be used to retrieve tickets whose last activity timestamp is greater than the time specified in this parameter. The last activity timestamp of a ticket is updated whenever there is a new reply or a new comment on the ticket. To retrieve tickets sorted by creation time, instead of last activity, send the sort_by parameter along with the since parameter.

Date (string) or DateTime (string) or Timestamp (string)

Can be used to retrieve tickets whose last activity timestamp is lesser than the time specified in this parameter. The last activity timestamp of a ticket is updated whenever there is a new reply or a new comment on the ticket. To retrieve tickets sorted by creation time, instead of last activity, send the sort_by parameter along with the until parameter.

sort_by
string
Default: "last_activity"

If last_activity, retrieves tickets sorted by last activity. If creation_time, retrieves tickets sorted by creation time.

requester_emails
string

Can be used to filter tickets by requester email addresses. Accepts a string of comma separated email addresses.

total_only
boolean
Default: false

Can be used in conjunction with any other parameters to return only the total number of tickets

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Create ticket

This API endpoint doesn't require Authentication and can be used directly in your website's javascript (to create a ticket in your SupportBee desk upon a form submission for example). When Authentication information not provided, the endpoint is rate limited to 5 API requests per hour per IP address to prevent abuse by spammers. When the rate limit is hit, the endpoint will respond with a 429 status code.

If you use the API endpoint in your website's backend, we recommended that you provide Authentication information. When Authentication information is provided, the rate limit is 8 tickets per minute.

Authorizations:
ApiKeyHeader
header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

A support ticket

object

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{}

Search tickets

Returns 15 tickets of the company in the order of their last activity matching the search query.

Authorizations:
ApiKeyHeader
query Parameters
query
required
string

Specifies the query or keywords to searched.

per_page
integer
Default: 15

Specifies the number of tickets to retrieve. Must be less than 100.

page
integer
Default: 1

Specifies the page of tickets to retrieve.

spam
boolean
Default: false

If true, retrieved tickets contain tickets marked as spam.

trash
boolean
Default: false

If true, retrieved tickets contain tickets marked as trash.

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Retrieve a ticket

Retrieves a ticked recognized by it's ID

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Delete a trashed ticket

Deletes a ticked recognized by it's ID. Only Admins can delete trashed tickets.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Archive a ticket

Archives an unarchived ticket specified by it's ID

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Un-archives a ticket

Un-archives a previously archived ticked specified by it's ID

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Marks a ticket as answered.

Marks a ticket, specified by it's ID, as answered.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Marks a ticket as un-answered.

Marks a ticket, specified by it's ID, as un-answered.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Assign a ticket to a user

Assigns a ticket to a user specified by the tickets ID and the user to be assigned (If the ticket is already assigned to a team, then the given user must be a member of that team).

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

A ticket assignation to a user

object

Responses

Request samples

Content type
application/json
{
  • "user_assignment": {
    }
}

Response samples

Content type
application/json
{}

Un-assign a ticket

Un-assign a ticket from the assigned user

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Assign a ticket to a team

Assigns a ticket to a team specified by the tickets ID and the team to be assigned (If the ticket is already assigned to a team and a user, reassigning the ticket to another team will remove the user assignee).

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

A ticket assignation to a team

object

Responses

Request samples

Content type
application/json
{
  • "team_assignment": {
    }
}

Response samples

Content type
application/json
{}

Un-assign a ticket

Un-assign a ticket from the assigned team

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Mark ticket as spam

Marks a ticket as spam specified by it's ID

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Un-spam a ticket

Marks a ticket as NOT spam specified by it's ID

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Trash Ticket

Trashes a ticket specified by it's ID

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Un-trash a ticket

Un-trashes a ticket specified by it's ID

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Fetch ticket replies

Retrieves all the replies of a ticket specified by it's ID

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Create a reply

Post a reply to a ticket specified by it's ID. Admin users can reply on behalf of an agent.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

A reply to a ticket

object

Responses

Request samples

Content type
application/json
{
  • "reply": {
    }
}

Response samples

Content type
application/json
{}

Show a reply

Retrieves the reply for the ticket specified by the ticket and reply IDs.

Authorizations:
ApiKeyHeader
path Parameters
ticket_id
required
integer

The tickets ID

id
required
integer

The reply ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Fetch Comments

Retrieves all the comments on the ticket specified by the ticket ID.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Create Comment

Creates a comment on a ticket specified by the ticket ID.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

A comment for a ticket

object

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{}

Add Label

Adds a label to the ticket. The label must already exist in your company.

Authorizations:
ApiKeyHeader
path Parameters
ticket_id
required
integer

The ticket ID

label_name
required
string

The name of the label to add

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{
  • "label": {
    }
}

Remove Label

Removes a label from the ticket.

Authorizations:
ApiKeyHeader
path Parameters
ticket_id
required
integer

The ticket ID

label_name
required
string

The name of the label to remove

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Fetch Audit Trail

Retrieves the audit trail for the ticket specified by the ticket ID. Returns a chronological list of actions performed on the ticket.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The ticket ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Fetch Draft

Retrieves the reply draft for the ticket specified by the ticket ID. If no draft exists, returns a new draft with quoted content from the last message.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The ticket ID

query Parameters
quote
boolean
Default: true

If false, the draft is returned without quoted content from the previous message.

time_zone
string
Default: "UTC"

The time zone to use when formatting quoted content timestamps. Accepts IANA time zone names (e.g. "America/New_York").

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Create Draft

Creates a reply draft on the ticket specified by the ticket ID.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The ticket ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

A draft for a ticket reply

object

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{}

Update Draft

Updates the reply draft on the ticket specified by the ticket ID.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The ticket ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

A draft for a ticket reply

object

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{}

Delete Draft

Deletes the reply draft on the ticket specified by the ticket ID.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The ticket ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Users

Assign tickets to users, list, create, show and update users.

Assign a ticket to a user

Assigns a ticket to a user specified by the tickets ID and the user to be assigned (If the ticket is already assigned to a team, then the given user must be a member of that team).

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
required

A ticket assignation to a user

object

Responses

Request samples

Content type
application/json
{
  • "user_assignment": {
    }
}

Response samples

Content type
application/json
{}

Un-assign a ticket

Un-assign a ticket from the assigned user

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The tickets ID

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Fetching Users and Customer Groups

Retrieves all users of the company

Authorizations:
ApiKeyHeader
query Parameters
with_invited
boolean
Default: false

If true, returns all the agents, including invited (unconfirmed) agents.

with_roles
string
Default: "admin,agent,collaborator"
Enum: "admin" "agent" "collaborator" "customer"
type
string
Default: "user"
Enum: "user" "customer_group"
header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Create a user or customer group

Creates a user for the company. Also used to create customer groups, which are treated as users.

Authorizations:
ApiKeyHeader
header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
One of
object

Responses

Request samples

Content type
application/json
Example
{
  • "user": {
    }
}

Response samples

Content type
appliction/json
{}

Show User or Customer Group

Retrieves the user specified by id.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The users ID.

query Parameters
max_tickets
integer
Default: 5

Specify the maximum number of recent tickets you want to retrieve that this user created. If false returns all tickets.

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Update a User

Updates a user specified by id. Cannot update the user whose API Token is being used. You must use the UI or submit a form to /users/{id}/settings to do that.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The users ID.

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json

This specifies the data in JSON required to update a user. All fields are optional. Any fields not provided will not be updated.

One of
object

Responses

Request samples

Content type
application/json
Example
{
  • "user": {
    }
}

Response samples

Content type
application/json
{}

Fetch Members of a customer group

Retrieves all members of a customer group specified by the customer groups ID.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The ID of the customer group.

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Responses

Response samples

Content type
application/json
{}

Add Member

Add a user to a customer group as a member.

Authorizations:
ApiKeyHeader
path Parameters
id
required
integer

The ID of the customer group

header Parameters
Accept
required
string
Default: application/json
Value: "application/json"

Must be set to application/json.

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "member": {
    }
}

Response samples

Content type
application/json
{}