Clienvy API documentation

List tickets

GET
https://api.clienvy.io/employee/v1
/tickets

Returns a paginated list of tickets, most recently active first. The response meta additionally carries per-status, unassigned and snoozed totals.

List tickets › query Parameters

search
​string

Full-text search across the ticket subject and the subject and text of its mails, remarks and phone calls. Every word has to be found in the ticket subject, or all of them in one item.

status_ids
​string

Only return tickets in these statuses. Accepts a comma-separated list of UUIDs.

company_ids
​string

Only return tickets with a participant from these companies. Accepts a comma-separated list of UUIDs.

contact_ids
​string

Only return tickets with these contacts as participant. Accepts a comma-separated list of UUIDs.

emails
​string

Only return tickets with these e-mail addresses as participant (exact address, case-insensitive). The organization's own sending addresses are no participants. Accepts a comma-separated list.

scope
​string

Restrict the ticket scope: mine for tickets assigned to you, or employee-{uuid} for tickets assigned to that employee. Unassigned tickets are included in both.

group
​string

Return a single bucket of tickets: unassigned, snoozed or status-{uuid}.

List tickets › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

List tickets › Responses

Array of TicketListResource

​TicketListResource[] · required
​object · required

Create a ticket

POST
https://api.clienvy.io/employee/v1
/tickets

Creates a new ticket. When created by a user (not an API token) that user is assigned to the ticket.

Create a ticket › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Create a ticket › Request Body

subject
​string · maxLength: 255

Subject of the ticket.

status_id
​string · uuid

UUID of the ticket status to open the ticket in. Leave it out for the organization's default status.

Create a ticket › Responses

TicketResource

id
​string · uuid
subject
​string
preview
​string | null
​TicketStatusResource
last_activity_at
​string | null · date-time
​TicketAssigneeResource[]
​TicketParticipantResource[]
​TicketOutboundMailResource[]
​TimeEntryResource[]
updated_at
​string · date-time
created_at
​string · date-time

Delete tickets in bulk

POST
https://api.clienvy.io/employee/v1
/tickets/bulk-delete

Deletes every ticket whose UUID is listed in ids, together with their items.

Delete tickets in bulk › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Delete tickets in bulk › Request Body

ids
​string[] · required

UUIDs of the tickets to delete.

Delete tickets in bulk › Responses

​object · required

Change the status of tickets in bulk

PUT
https://api.clienvy.io/employee/v1
/tickets/bulk-status

Moves every ticket whose UUID is listed in ids to the status status_id.

Change the status of tickets in bulk › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Change the status of tickets in bulk › Request Body

ids
​string[] · required

UUIDs of the tickets to update.

status_id
​string · uuid · required

UUID of the ticket status to move the tickets to.

Change the status of tickets in bulk › Responses

​object · required

Get a ticket

GET
https://api.clienvy.io/employee/v1
/tickets/{ticket}

Returns a single ticket by ID, together with the first page of its items (messages, notes and activity) in a paginated items envelope.

Get a ticket › path Parameters

ticket
​string · uuid · required

The ticket UUID

Get a ticket › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Get a ticket › Responses

TicketResource

​TicketResource · required
​object · required

Update a ticket

PUT
https://api.clienvy.io/employee/v1
/tickets/{ticket}

Updates a ticket's subject or status. Only the fields present in the request are changed.

Update a ticket › path Parameters

ticket
​string · uuid · required

The ticket UUID

Update a ticket › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Update a ticket › Request Body

subject
​string · maxLength: 255

Subject of the ticket.

status_id
​string · uuid

UUID of the ticket status.

Update a ticket › Responses

TicketResource

id
​string · uuid
subject
​string
preview
​string | null
​TicketStatusResource
last_activity_at
​string | null · date-time
​TicketAssigneeResource[]
​TicketParticipantResource[]
​TicketOutboundMailResource[]
​TimeEntryResource[]
updated_at
​string · date-time
created_at
​string · date-time

Delete a ticket

DELETE
https://api.clienvy.io/employee/v1
/tickets/{ticket}

Deletes a ticket and all of its items.

Delete a ticket › path Parameters

ticket
​string · uuid · required

The ticket UUID

Delete a ticket › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Delete a ticket › Responses

TicketResource

id
​string · uuid
subject
​string
preview
​string | null
​TicketStatusResource
last_activity_at
​string | null · date-time
​TicketAssigneeResource[]
​TicketParticipantResource[]
​TicketOutboundMailResource[]
​TimeEntryResource[]
updated_at
​string · date-time
created_at
​string · date-time

Snooze a ticket

PUT
https://api.clienvy.io/employee/v1
/tickets/{ticket}/snooze

Snoozes or unsnoozes the ticket for the calling employee, who must be assigned to it. With snoozed_type date the ticket reappears at snoozed_until. With next-activity it reappears on the next activity.

Snooze a ticket › path Parameters

ticket
​string · uuid · required

The ticket UUID

Snooze a ticket › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Snooze a ticket › Request Body

is_snoozed
​boolean · required

Whether to snooze (true) or unsnooze (false) the ticket.

snoozed_type
​string

When to resurface the ticket: next-activity or date. Required when snoozing.

snoozed_until
​string · date-time

Date/time (Y-m-d H:i:s) to resurface the ticket. Required when snoozed_type is date.

Snooze a ticket › Responses

TicketResource

id
​string · uuid
subject
​string
preview
​string | null
​TicketStatusResource
last_activity_at
​string | null · date-time
​TicketAssigneeResource[]
​TicketParticipantResource[]
​TicketOutboundMailResource[]
​TimeEntryResource[]
updated_at
​string · date-time
created_at
​string · date-time

List merge suggestions

GET
https://api.clienvy.io/employee/v1
/tickets/{ticket}/merge-suggestions

Returns up to ten other tickets that look like duplicates of this one and are candidates to merge it into.

List merge suggestions › path Parameters

ticket
​string · uuid · required

The ticket UUID

List merge suggestions › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

List merge suggestions › Responses

Array of TicketMergeSuggestionResource

id
​string · uuid
subject
​string
​TicketStatusResource
last_activity_at
​string | null · date-time

Merge a ticket

POST
https://api.clienvy.io/employee/v1
/tickets/{ticket}/merge

Merges this ticket into the target ticket (target_ticket_id) and returns the resulting target ticket. The two tickets must be different.

Merge a ticket › path Parameters

ticket
​string · uuid · required

The ticket UUID

Merge a ticket › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Merge a ticket › Request Body

target_ticket_id
​string · uuid · required

UUID of the ticket to merge this ticket into.

Merge a ticket › Responses

TicketResource

id
​string · uuid
subject
​string
preview
​string | null
​TicketStatusResource
last_activity_at
​string | null · date-time
​TicketAssigneeResource[]
​TicketParticipantResource[]
​TicketOutboundMailResource[]
​TimeEntryResource[]
updated_at
​string · date-time
created_at
​string · date-time

Assign an employee

POST
https://api.clienvy.io/employee/v1
/tickets/{ticket}/employees/{employee}

Assigns the employee (identified in the path) to the ticket.

Assign an employee › path Parameters

ticket
​string · uuid · required

The ticket UUID

employee
​string · uuid · required

The employee UUID

Assign an employee › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Assign an employee › Responses

TicketResource

id
​string · uuid
subject
​string
preview
​string | null
​TicketStatusResource
last_activity_at
​string | null · date-time
​TicketAssigneeResource[]
​TicketParticipantResource[]
​TicketOutboundMailResource[]
​TimeEntryResource[]
updated_at
​string · date-time
created_at
​string · date-time

Unassign an employee

DELETE
https://api.clienvy.io/employee/v1
/tickets/{ticket}/employees/{employee}

Removes the employee (identified in the path) from the ticket.

Unassign an employee › path Parameters

ticket
​string · uuid · required

The ticket UUID

employee
​string · uuid · required

The employee UUID

Unassign an employee › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Unassign an employee › Responses

TicketResource

id
​string · uuid
subject
​string
preview
​string | null
​TicketStatusResource
last_activity_at
​string | null · date-time
​TicketAssigneeResource[]
​TicketParticipantResource[]
​TicketOutboundMailResource[]
​TimeEntryResource[]
updated_at
​string · date-time
created_at
​string · date-time

List participant e-mail addresses

GET
https://api.clienvy.io/employee/v1
/tickets/participant-emails

Returns every e-mail address that takes part in a ticket once, most recently seen first. The organization's own sending addresses are no participants. An address works as the email filter of GET /tickets and GET /ticket-items.

List participant e-mail addresses › query Parameters

search
​string

Full-text search across the address and the name.

page
​integer

Page number of the paginated result set.

per_page
​integer

Number of items per page. Defaults to the endpoint's own page size; capped at 500.

List participant e-mail addresses › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

List participant e-mail addresses › Responses

Array of TicketParticipantEmailResource

​object

POST
https://api.clienvy.io/employee/v1
/tickets/{ticket}/participants

Links a contact or company to the ticket by hand, for instance to a ticket that has no mails yet. The participant has no address of its own (type and value empty): it counts for the company_id and contact_id filters, and a new reply goes to the first e-mail address of the relation.

ticket
​string · uuid · required

The ticket UUID

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

contact_id
​string · uuid

UUID of the contact to link. Give this or company_id.

company_id
​string · uuid

UUID of the company to link. Give this or contact_id.

TicketResource

id
​string · uuid
subject
​string
preview
​string | null
​TicketStatusResource
last_activity_at
​string | null · date-time
​TicketAssigneeResource[]
​TicketParticipantResource[]
​TicketOutboundMailResource[]
​TimeEntryResource[]
updated_at
​string · date-time
created_at
​string · date-time

Take a participant out of the conversation

POST
https://api.clienvy.io/employee/v1
/tickets/{ticket}/participants/{participant}/remove

A participant that took part in no mail or call (seen_count 0), such as one from a draft or one linked by hand, is deleted. Any other stays on the ticket and linked to its relation, but is no longer added to a new reply (is_removed). It is put back on its own when it takes part in a mail or call again, or is put on a draft.

Take a participant out of the conversation › path Parameters

ticket
​string · uuid · required

The ticket UUID

participant
​string · uuid · required

The participant UUID

Take a participant out of the conversation › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Take a participant out of the conversation › Responses

TicketResource

id
​string · uuid
subject
​string
preview
​string | null
​TicketStatusResource
last_activity_at
​string | null · date-time
​TicketAssigneeResource[]
​TicketParticipantResource[]
​TicketOutboundMailResource[]
​TimeEntryResource[]
updated_at
​string · date-time
created_at
​string · date-time

Put a participant back in the conversation

POST
https://api.clienvy.io/employee/v1
/tickets/{ticket}/participants/{participant}/restore

Undoes taking a participant out (is_removed), so they are added to a new reply again. Answers with the ticket.

Put a participant back in the conversation › path Parameters

ticket
​string · uuid · required

The ticket UUID

participant
​string · uuid · required

The participant UUID

Put a participant back in the conversation › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Put a participant back in the conversation › Responses

TicketResource

id
​string · uuid
subject
​string
preview
​string | null
​TicketStatusResource
last_activity_at
​string | null · date-time
​TicketAssigneeResource[]
​TicketParticipantResource[]
​TicketOutboundMailResource[]
​TimeEntryResource[]
updated_at
​string · date-time
created_at
​string · date-time

List ticket items

GET
https://api.clienvy.io/employee/v1
/tickets/{ticket}/items

Returns a paginated list of a ticket's items (messages, notes, remarks and activity) newest first.

List ticket items › path Parameters

ticket
​string · uuid · required

The ticket UUID

List ticket items › query Parameters

page
​integer

Page number of the paginated result set.

per_page
​integer

Number of items per page. Defaults to the endpoint's own page size; capped at 500.

List ticket items › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

List ticket items › Responses

Array of TicketItemResource

​object

Search ticket items

GET
https://api.clienvy.io/employee/v1
/ticket-items

Returns a paginated list of mails, remarks and phone calls across all tickets, newest first. Use it to find the messages themselves; GET /tickets with search returns the tickets they belong to instead. The text comes as plain text in content_text, the HTML of one ticket's items is at GET /tickets/{ticket}/items.

Search ticket items › query Parameters

search
​string

Full-text search across the subject and text of the item. Every word has to be found. The text of a reply includes the mails it quotes.

emails
​string

Only return items with these e-mail addresses as sender or recipient (exact address, case-insensitive). Accepts a comma-separated list.

types
​string

Only return these types: mail, remark or phone-call. Accepts a comma-separated list. Defaults to all three.

direction
​string

Only return inbound or outbound mails and calls.

ticket_ids
​string

Only return items of these tickets. Accepts a comma-separated list of UUIDs.

page
​integer

Page number of the paginated result set.

per_page
​integer

Number of items per page. Defaults to the endpoint's own page size; capped at 500.

Search ticket items › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Search ticket items › Responses

Array of TicketItemListResource

​object

Add an internal remark

POST
https://api.clienvy.io/employee/v1
/tickets/{ticket}/items/remarks

Adds an internal remark (note) to the ticket as a new ticket item, optionally with file attachments. Mentioned employees are notified and the ticket is unsnoozed.

Add an internal remark › path Parameters

ticket
​string · uuid · required

The ticket UUID

Add an internal remark › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Add an internal remark › Request Body

remark
​string · maxLength: 20000

The remark as HTML, formatted like a mail body: a <p> per paragraph and an empty <p><br></p> between paragraphs. Mention an employee with <span class="quill-mention" data-employee-id="{uuid}" data-name="{name}">@{name}</span>: they are notified and, when the author has ticket.edit, assigned to the ticket.

file_ids
​string[]

UUIDs of uploaded files to attach to the remark.

Add an internal remark › Responses

TicketItemResource

​TicketItemResource · required
​TicketResource · required