Lists and search

Every list in the Stridge API has the same shape and pages the same way, so the code you write for one list works for all of them. When you need to find something by part of a value, use the search endpoint beside its list.

A list

A list returns one page of objects in data, and has_more tells you whether there is more to read:

GET /v2/deposits?limit=2
{
  "object": "list",
  "data": [
    { "id": "4f0c6c2e-8a71-4d2b-9e35-1b7c0a9f6d28", "object": "deposit", "livemode": false },
    { "id": "9b1e2d3c-4a5f-4e6d-8c7b-0a1b2c3d4e5f", "object": "deposit", "livemode": false }
  ],
  "has_more": true,
  "url": "/v2/deposits"
}
  • object is always list. url is the path you read the list at.
  • Order. Most lists are newest first. Each list's page in the reference states its order.
  • limit sets the page size: 20 by default, from 1 to 100. A value outside that range returns 422 parameter_invalid, and error.param names limit. The API never clamps it into range.
  • has_more says whether the list holds more objects past this page, in the direction you are reading.

Paging with cursors

Stridge lists use cursor-based pagination (opens in a new tab). Instead of asking for page 3, you point at an object you have already seen and ask for what comes after it or before it. That pointer is the cursor: the id of an object in the list. Send the last id of the page you read to move forward, or the first id to move back:

Newest first, in the list's order
The page beforeGET /v2/deposits?limit=3&ending_before=4f0c6c2e…
  1. 7c2a91e0…
  2. e41b0d6f…
  3. 0a9f6d28…
has_more: falseNothing before these
ending_before= the first id
The page you readGET /v2/deposits?limit=3
  1. 4f0c6c2e…first id
  2. 9b1e2d3c…
  3. 2d8e4b71…last id
has_more: trueMore past this page
starting_after= the last id
The next pageGET /v2/deposits?limit=3&starting_after=2d8e4b71…
  1. b5c3f019…
  2. 61aa7e42…
  3. d03c58b9…
has_more: falseThe end of the list
A list of nine deposits read three at a time, newest first. Send the last id of a page as starting_after for the objects after it, or its first id as ending_before for the objects before it.
  • starting_after returns the objects right after the one it names. Send the last id of the page you just read.
  • ending_before returns the objects right before the one it names, still in the list's order. Send the first id of the page you just read. has_more then says whether there are more objects before them.

A few rules apply to every cursor:

  • A cursor that names no object of the list in your environment returns 422 parameter_invalid, and error.param names the cursor.
  • Send one cursor at a time. Sending starting_after and ending_before together returns 422 parameter_invalid, and error.param names ending_before.
  • Lists carry no total count.

To read a whole list, send the last id of each page as starting_after until has_more is false:

Every deposit, page by page
const url = new URL("https://api.stridge.com/v2/deposits");
url.searchParams.set("limit", "100");
for (;;) {
  const res = await fetch(url, {
    headers: { Authorization: `Bearer ${process.env.STRIDGE_SECRET_KEY}` },
  });
  const page = await res.json();
  for (const deposit of page.data) handle(deposit);
  if (!page.has_more) break;
  url.searchParams.set("starting_after", page.data.at(-1).id);
}

One list returns everything at once: GET /v2/settlements/{id}/attempts returns every attempt, oldest first. Its has_more is always false, and it takes no limit or cursor.

Filters

Filters narrow a list to the objects you care about. Each list takes the filters its page in the reference names, one value each, and an object must match all of them:

Deposits to one owner in October
curl -g -G "https://api.stridge.com/v2/deposits" \
  -d "owner=customer_8412" \
  -d "created[gte]=2026-10-01T00:00:00Z" \
  -d "created[lt]=2026-11-01T00:00:00Z" \
  -H "Authorization: Bearer $STRIDGE_SECRET_KEY"
  • Exact values. A filter such as owner, status or network_id matches one value exactly. Sending the same filter twice returns 422 parameter_invalid.
  • Time ranges. On a list that names them, created[gte], created[gt], created[lte] and created[lt] bound when an object was created. Send them as RFC 3339 timestamps.
  • Send the filters on every page. A cursor marks a place in the list's order. It does not remember your filters, so send them again beside every starting_after or ending_before. The object the cursor names does not have to match them.
  • Nothing undeclared. A parameter the list does not name returns 400 parameter_unknown, and error.param names it. That includes page. A value outside a parameter's schema returns 422 parameter_invalid. A typo never silently widens your results.

Use a search when you need to match part of a value, or one value or another. GET /v2/deposits/search and GET /v2/routings/search take a query written in the search query language and return a search result:

Deposits from an address fragment, on one chain
curl -G "https://api.stridge.com/v2/deposits/search" \
  --data-urlencode 'query=from_address~"8f3c" AND network_id:"60"' \
  -H "Authorization: Bearer $STRIDGE_SECRET_KEY"
A search result
{
  "object": "search_result",
  "data": [
    { "id": "4f0c6c2e-8a71-4d2b-9e35-1b7c0a9f6d28", "object": "deposit", "livemode": true }
  ],
  "has_more": true,
  "next_page": "eyJ2IjoyfQ",
  "url": "/v2/deposits/search"
}

A search result looks like a list, but it pages with a token instead of a cursor:

A list and a search result compared
object
A list
"list"
A search result
"search_result"
data
A list
The page of objects, in the list's order.
A search result
The page of matches.
has_more
A list
Whether there are more objects past this page, in the direction you are reading.
A search result
Whether there are more matches past this page.
next_page
A list
Not in a list
A search result
An opaque token for the next page, or null on the last page.
url
A list
The path you read the list at.
A search result
The path you read the search at.
Narrowed by
A list
The filters the list names, one value each. An object must match all of them.
A search result
A query in the search query language.
Next page
A list
Send the last id as starting_after. To go back, send the first id as ending_before.
A search result
Send next_page back as page.

The query language

A query is one or more clauses, each a field, an operator and a value, joined by AND or OR:

The search query language
:
field:"value"The whole value, ignoring case.
~
field~"part"Part of the value, ignoring case. The part must be at least 3 characters.
><>=<=
created>1767225600created>="2026-01-01T00:00:00Z"A time bound, in Unix seconds or a quoted RFC 3339 timestamp.
ANDOR
a AND ba OR bBoth clauses, or either. A query uses AND or OR throughout, never both.

Inside quotes, write \" for a quote and \\ for a backslash. A query holds at most 10 clauses and 1,000 characters.

Fields

Each search takes only the fields listed for it here:

The fields each search takes, and how each may be matched
Search depositsGET/v2/deposits/search
tx_idWhole:Part~
from_addressWhole:Part~
to_addressWhole:Part~
network_idWhole:
The chain's numeric identifier.
is_token_transferWhole:
"true" or "false".
createdRange> < >= <=
Search routingsGET/v2/routings/search
idWhole:Part~
settlement_idWhole:Part~
stateWhole:
scenarioWhole:
providerWhole:
source_network_idWhole:
The chain's numeric identifier.
destination_network_idWhole:
The chain's numeric identifier.
createdRange> < >= <=

Send your query on the first page, then send back the token each page gives you.

  • The first page sends query. Without it, the search returns 422 parameter_missing.
  • A later page sends next_page back as page. next_page is null on the last page. The token remembers the first page's query and limit, so you can send them again unchanged or leave them out.

A search returns 400 parameter_invalid, with error.param naming query, when the query:

  • does not parse;
  • uses a field or an operator the search does not name;
  • uses a value outside the field's set;
  • matches so much history that it runs out of the time a search is given.

A later page returns 422 parameter_invalid, with error.param naming the parameter at fault, when:

  • the page token was not issued for that search and environment;
  • the request sends a query or limit that differs from the token's.

Your credential sets the environment, not the query, so no clause can reach another environment's objects.