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": "0275947d-4664-4a7c-8992-6affb831978e",
      "object": "swap",
      "archived": false,
      "archived_at": null,
      "description": "Swap this price for another",
      "metadata": {},
      "price": "153d2644-a832-4e23-9153-4133f83c47ba",
      "swap_price": "ee5f0f07-d43f-4d37-be95-f715cae4aad6",
      "discarded_at": null,
      "created_at": 1769675011,
      "updated_at": 1769675011
    }
  ]
}

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.