List or search tickets
const url = 'https://api.motenya.app/v1/products/example/tickets?view=all&requesterKind=CUSTOMER';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Page size, 1–100 (default 25).
Page size, 1–100 (default 25).
The nextCursor of the previous page.
The nextCursor of the previous page.
Default all.
Default all.
Comma-separated: OPEN,PENDING,SOLVED,CLOSED.
Comma-separated: OPEN,PENDING,SOLVED,CLOSED.
Comma-separated: LOW,NORMAL,HIGH,URGENT.
Comma-separated: LOW,NORMAL,HIGH,URGENT.
Responses
Section titled “Responses”Success
object
object
object
The CRM contact; null for a lead.
Pass as after for the next page; null on the last.
Example
{ "items": [ { "status": "OPEN", "priority": "LOW", "source": "EMAIL" } ]}Invalid request
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Missing, invalid, revoked or expired API key
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Missing scope, API turned off, published article without publish scope, or account suspended
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Not found, or outside the knowledge bases this key may use
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Slug or translation already exists
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Rejected by validation (e.g. unknown language or category)
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Rate limited; see Retry-After
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Internal error