Skip to main content
GET
/
v1
/
swaps
List
curl --request GET \
  --url https://{defaultHost}/v1/swaps \
  --header 'Authorization: Bearer <token>'
{
  "object": "list",
  "pagination": {
    "count": 1,
    "limit": 20,
    "page": 1,
    "url": "/v1/swaps"
  },
  "data": [
    {
      "id": "9653ce51-e7d6-4581-aca8-dd9c1992702c",
      "object": "swap",
      "archived": false,
      "archived_at": null,
      "description": "Swap this price for another",
      "metadata": {},
      "price": "46c2e5ab-f6ee-4b7e-a706-ff40797e493b",
      "swap_price": "cbd5aabe-230b-4bdf-aacb-ccb9d3e0d458",
      "discarded_at": null,
      "created_at": 1776176588,
      "updated_at": 1776176588
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

archived
boolean

Only return objects that are archived or not archived.

ids[]
string[]

Only return objects with the given IDs.

limit
integer

A limit on the number of items to be returned, between 1 and 100.

page
integer

The page of items you want returned.

price_ids[]
string[]

Only return objects that belong to the given prices.

Response

200 - application/json

Success

object
string

A string describing the object type returned.

pagination
object
data
array

An array of objects.