For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tickets

GetTicketsByAccount returns tickets for a specific account with pagination and filtering

get
/tickets/v1/accounts/{accountId}

Scoped to a single account_id. Use GetTickets for the platform-wide admin view across every account

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Path parameters
accountIdstringRequired

account_id is the unique identifier of the account whose tickets are requested

Query parameters
pageinteger · int32Optional

page is an optional query parameter to set the page

limitinteger · int32Optional

limit is an optional query parameter to set the max number of results

displayStatusstringOptional

display_status is an optional filter to return only tickets with the given display status

statestringOptional

state is an optional filter to return only tickets with the given state

typestringOptional

type is an optional filter to return only tickets of the given type

sortBystringOptional

sort_by is an optional field to sort the results

sortOrderstringOptional

sort_order is an optional field to set the sort direction

Responses
200

A successful response.

application/json
get/tickets/v1/accounts/{accountId}

CreateOffRampTicket creates a new off-ramp ticket

post
/tickets/v1/offramp

Kicks off the off-ramp flow for the given quote. Response includes the transactions the user must sign to fund it

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Body
accountIdstringRequired
productsProviderIdstringRequired
templateobject · Template information as JSONOptional
userChainAddressstringRequired
withdrawDestinationIdstringOptional
Responses
200

A successful response.

application/json
post/tickets/v1/offramp

CreateSwapTicket creates a new swap ticket with the given parameters

post
/tickets/v1/swap

Kicks off the swap flow for an instrument's quote. Response includes the transactions the user must sign to fund it

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Body
accountIdstringRequired
instrumentIdstringRequired
templateobject · Template information as JSONOptional
userChainAddressstringRequired
withdrawDestinationIdstringOptional
Responses
200

A successful response.

application/json
post/tickets/v1/swap

GetTicket returns a ticket by its ID

get
/tickets/v1/{ticketId}

Ticket data only. Use GetTicketDetails for the context, flows and provider information as well

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Path parameters
ticketIdstringRequired

Unique identifier for the ticket

Responses
200

A successful response.

application/json
get/tickets/v1/{ticketId}

TicketGetPendingUserAction returns the pending user actions for a ticket

get
/tickets/v1/{ticketId}/pending_user_actions

Returns either a transaction the user still needs to sign/submit or a URL they need to visit, depending on the ticket's current state

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Path parameters
ticketIdstringRequired

Unique identifier for the ticket

Responses
200

A successful response.

application/json
typestringOptional
get/tickets/v1/{ticketId}/pending_user_actions

GetUserTransactions returns the list of available user transactions for a ticket based on its current state

get
/tickets/v1/{ticketId}/user_txs

Transactions the end user still needs to sign and submit themselves For admin-side transactions see GetAdminTransactions

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Path parameters
ticketIdstringRequired

The ID of the ticket

Responses
200

A successful response.

application/json
get/tickets/v1/{ticketId}/user_txs

Last updated