New to Corsair? See API access, authentication, and error handling.
Comments
list
comments.list
List comments for a specific ticket
Risk: read
await corsair.zendesk.api.comments.list({});
| Name | Type | Required | Description |
|---|---|---|---|
ticket_id | number | Yes | — |
page | number | No | — |
per_page | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
comments | object[] | Yes | — |
next_page | string | null | No | — |
previous_page | string | null | No | — |
count | number | No | — |
comments full type
comments full type
Tickets
create
tickets.create
Create a new ticket
Risk: write
await corsair.zendesk.api.tickets.create({});
| Name | Type | Required | Description |
|---|---|---|---|
subject | string | No | — |
description | string | No | — |
comment | object | No | — |
status | string | No | — |
priority | string | No | — |
requester_id | number | No | — |
assignee_id | number | No | — |
group_id | number | No | — |
organization_id | number | No | — |
tags | string[] | No | — |
comment full type
comment full type
{
body: string,
public?: boolean,
author_id?: number
}
| Name | Type | Required | Description |
|---|---|---|---|
ticket | object | Yes | — |
ticket full type
ticket full type
{
id: number,
url?: string | null,
external_id?: string | null,
created_at?: string | null,
updated_at?: string | null,
type?: string | null,
subject?: string | null,
raw_subject?: string | null,
description?: string | null,
priority?: string | null,
status?: string | null,
recipient?: string | null,
requester_id?: number | null,
submitter_id?: number | null,
assignee_id?: number | null,
organization_id?: number | null,
group_id?: number | null,
collaborator_ids?: number[] | null,
follower_ids?: number[] | null,
email_cc_ids?: number[] | null,
forum_topic_id?: number | null,
problem_id?: number | null,
has_incidents?: boolean | null,
is_public?: boolean | null,
due_at?: string | null,
tags?: string[] | null
}
delete
tickets.delete
Delete a ticket by its ID
Risk: destructive
await corsair.zendesk.api.tickets.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | No | — |
get
tickets.get
Retrieve a ticket by its ID
Risk: read
await corsair.zendesk.api.tickets.get({});
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
ticket | object | Yes | — |
ticket full type
ticket full type
{
id: number,
url?: string | null,
external_id?: string | null,
created_at?: string | null,
updated_at?: string | null,
type?: string | null,
subject?: string | null,
raw_subject?: string | null,
description?: string | null,
priority?: string | null,
status?: string | null,
recipient?: string | null,
requester_id?: number | null,
submitter_id?: number | null,
assignee_id?: number | null,
organization_id?: number | null,
group_id?: number | null,
collaborator_ids?: number[] | null,
follower_ids?: number[] | null,
email_cc_ids?: number[] | null,
forum_topic_id?: number | null,
problem_id?: number | null,
has_incidents?: boolean | null,
is_public?: boolean | null,
due_at?: string | null,
tags?: string[] | null
}
list
tickets.list
List tickets with pagination
Risk: read
await corsair.zendesk.api.tickets.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | — |
per_page | number | No | — |
sort_by | string | No | — |
sort_order | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
tickets | object[] | Yes | — |
next_page | string | null | No | — |
previous_page | string | null | No | — |
count | number | No | — |
tickets full type
tickets full type
{
id: number,
url?: string | null,
external_id?: string | null,
created_at?: string | null,
updated_at?: string | null,
type?: string | null,
subject?: string | null,
raw_subject?: string | null,
description?: string | null,
priority?: string | null,
status?: string | null,
recipient?: string | null,
requester_id?: number | null,
submitter_id?: number | null,
assignee_id?: number | null,
organization_id?: number | null,
group_id?: number | null,
collaborator_ids?: number[] | null,
follower_ids?: number[] | null,
email_cc_ids?: number[] | null,
forum_topic_id?: number | null,
problem_id?: number | null,
has_incidents?: boolean | null,
is_public?: boolean | null,
due_at?: string | null,
tags?: string[] | null
}[]
update
tickets.update
Update an existing ticket
Risk: write
await corsair.zendesk.api.tickets.update({});
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
subject | string | No | — |
status | string | No | — |
priority | string | No | — |
requester_id | number | No | — |
assignee_id | number | No | — |
comment | object | No | — |
tags | string[] | No | — |
comment full type
comment full type
{
body: string,
public?: boolean,
author_id?: number
}
| Name | Type | Required | Description |
|---|---|---|---|
ticket | object | Yes | — |
ticket full type
ticket full type
{
id: number,
url?: string | null,
external_id?: string | null,
created_at?: string | null,
updated_at?: string | null,
type?: string | null,
subject?: string | null,
raw_subject?: string | null,
description?: string | null,
priority?: string | null,
status?: string | null,
recipient?: string | null,
requester_id?: number | null,
submitter_id?: number | null,
assignee_id?: number | null,
organization_id?: number | null,
group_id?: number | null,
collaborator_ids?: number[] | null,
follower_ids?: number[] | null,
email_cc_ids?: number[] | null,
forum_topic_id?: number | null,
problem_id?: number | null,
has_incidents?: boolean | null,
is_public?: boolean | null,
due_at?: string | null,
tags?: string[] | null
}
Users
create
users.create
Create a new user
Risk: write
await corsair.zendesk.api.users.create({});
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | — |
email | string | Yes | — |
role | string | No | — |
external_id | string | No | — |
active | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
user | object | Yes | — |
user full type
user full type
{
id: number,
url?: string | null,
name: string,
email?: string | null,
created_at?: string | null,
updated_at?: string | null,
time_zone?: string | null,
iana_time_zone?: string | null,
phone?: string | null,
shared_phone?: boolean | null,
locale_id?: number | null,
locale?: string | null,
organization_id?: number | null,
role?: string | null,
verified?: boolean | null,
external_id?: string | null,
tags?: string[] | null,
active?: boolean | null
}
delete
users.delete
Delete a user by their ID
Risk: destructive
await corsair.zendesk.api.users.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | No | — |
get
users.get
Retrieve a user by their ID
Risk: read
await corsair.zendesk.api.users.get({});
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
user | object | Yes | — |
user full type
user full type
{
id: number,
url?: string | null,
name: string,
email?: string | null,
created_at?: string | null,
updated_at?: string | null,
time_zone?: string | null,
iana_time_zone?: string | null,
phone?: string | null,
shared_phone?: boolean | null,
locale_id?: number | null,
locale?: string | null,
organization_id?: number | null,
role?: string | null,
verified?: boolean | null,
external_id?: string | null,
tags?: string[] | null,
active?: boolean | null
}
list
users.list
List users with pagination
Risk: read
await corsair.zendesk.api.users.list({});
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | — |
per_page | number | No | — |
role | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
users | object[] | Yes | — |
next_page | string | null | No | — |
previous_page | string | null | No | — |
count | number | No | — |
users full type
users full type
{
id: number,
url?: string | null,
name: string,
email?: string | null,
created_at?: string | null,
updated_at?: string | null,
time_zone?: string | null,
iana_time_zone?: string | null,
phone?: string | null,
shared_phone?: boolean | null,
locale_id?: number | null,
locale?: string | null,
organization_id?: number | null,
role?: string | null,
verified?: boolean | null,
external_id?: string | null,
tags?: string[] | null,
active?: boolean | null
}[]
update
users.update
Update an existing user
Risk: write
await corsair.zendesk.api.users.update({});
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
name | string | No | — |
email | string | No | — |
role | string | No | — |
external_id | string | No | — |
active | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
user | object | Yes | — |
user full type
user full type
{
id: number,
url?: string | null,
name: string,
email?: string | null,
created_at?: string | null,
updated_at?: string | null,
time_zone?: string | null,
iana_time_zone?: string | null,
phone?: string | null,
shared_phone?: boolean | null,
locale_id?: number | null,
locale?: string | null,
organization_id?: number | null,
role?: string | null,
verified?: boolean | null,
external_id?: string | null,
tags?: string[] | null,
active?: boolean | null
}