Skip to content

List or search tickets

GET
/products/{productId}/tickets
curl --request GET \
--url 'https://api.motenya.app/v1/products/example/tickets?view=all&requesterKind=CUSTOMER' \
--header 'Authorization: Bearer <token>'

Most recent activity first, cursor-paginated.

Requires tickets:read.

productId
required
string
>= 1 characters <= 64 characters
first

Page size, 1–100 (default 25).

integer
>= 1 <= 100

Page size, 1–100 (default 25).

after

The nextCursor of the previous page.

string
<= 500 characters

The nextCursor of the previous page.

view

Default all.

string
Allowed values: all unassigned

Default all.

search
string
<= 200 characters
statuses

Comma-separated: OPEN,PENDING,SOLVED,CLOSED.

string
<= 100 characters

Comma-separated: OPEN,PENDING,SOLVED,CLOSED.

priorities

Comma-separated: LOW,NORMAL,HIGH,URGENT.

string
<= 100 characters

Comma-separated: LOW,NORMAL,HIGH,URGENT.

channelId
string
<= 64 characters
tag
string
<= 50 characters
requesterId
string
>= 1 characters <= 64 characters
contactId
string
>= 1 characters <= 64 characters
requesterKind
string
Allowed values: CUSTOMER LEAD
storeId
string
>= 1 characters <= 64 characters

Success

Media typeapplication/json
object
items
required
Array<object>
object
id
required
string
>= 1 characters <= 64 characters
productId
required
string
>= 1 characters <= 64 characters
number
required
integer
subject
required
string | null
status
required
string
Allowed values: OPEN PENDING SOLVED CLOSED
priority
required
string
Allowed values: LOW NORMAL HIGH URGENT
source
required
string
Allowed values: EMAIL HELP_CENTER WIDGET
channelId
required
string | null
requester
required
object
id
required
string
>= 1 characters <= 64 characters
email
required
string
name
required
string | null
contactId
required

The CRM contact; null for a lead.

string | null
>= 1 characters <= 64 characters
storeIds
required
Array<string>
assigneeUserId
required
string | null
tags
required
Array<string>
mergedIntoTicketId
required
string | null
>= 1 characters <= 64 characters
createdAt
required
string
updatedAt
required
string
lastActivityAt
required
string
key
additional properties
nextCursor
required

Pass as after for the next page; null on the last.

string | null

Example

{
"items": [
{
"status": "OPEN",
"priority": "LOW",
"source": "EMAIL"
}
]
}

Invalid request

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string

Example

{
"error": {
"code": "SLUG_TAKEN"
}
}

Missing, invalid, revoked or expired API key

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string

Example

{
"error": {
"code": "SLUG_TAKEN"
}
}

Missing scope, API turned off, published article without publish scope, or account suspended

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string

Example

{
"error": {
"code": "SLUG_TAKEN"
}
}

Not found, or outside the knowledge bases this key may use

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string

Example

{
"error": {
"code": "SLUG_TAKEN"
}
}

Slug or translation already exists

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string

Example

{
"error": {
"code": "SLUG_TAKEN"
}
}

Rejected by validation (e.g. unknown language or category)

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string

Example

{
"error": {
"code": "SLUG_TAKEN"
}
}

Rate limited; see Retry-After

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string

Example

{
"error": {
"code": "SLUG_TAKEN"
}
}

Internal error