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:
{
"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"
}objectis alwayslist.urlis the path you read the list at.- Order. Most lists are newest first. Each list's page in the reference states its order.
limitsets the page size: 20 by default, from 1 to 100. A value outside that range returns422parameter_invalid, anderror.paramnameslimit. The API never clamps it into range.has_moresays 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:
- 7c2a91e0…
- e41b0d6f…
- 0a9f6d28…
- 4f0c6c2e…first id
- 9b1e2d3c…
- 2d8e4b71…last id
- b5c3f019…
- 61aa7e42…
- d03c58b9…
starting_afterreturns the objects right after the one it names. Send the last id of the page you just read.ending_beforereturns 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_morethen 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
422parameter_invalid, anderror.paramnames the cursor. - Send one cursor at a time. Sending
starting_afterandending_beforetogether returns422parameter_invalid, anderror.paramnamesending_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:
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:
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,statusornetwork_idmatches one value exactly. Sending the same filter twice returns422parameter_invalid. - Time ranges. On a list that names them,
created[gte],created[gt],created[lte]andcreated[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_afterorending_before. The object the cursor names does not have to match them. - Nothing undeclared. A parameter the list does not name returns
400parameter_unknown, anderror.paramnames it. That includespage. A value outside a parameter's schema returns422parameter_invalid. A typo never silently widens your results.
Search
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:
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"{
"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:
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
nullon the last page.
url- A list
- The path you read the list at.
- A search result
- The path you read the search at.
- A list
- The filters the list names, one value each. An object must match all of them.
- A search result
- A
queryin the search query language.
- A list
- Send the last id as
starting_after. To go back, send the first id asending_before. - A search result
- Send
next_pageback aspage.
The query language
A query is one or more clauses, each a field, an operator and a value, joined by AND or OR:
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.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:
tx_idWhole:Part~from_addressWhole:Part~to_addressWhole:Part~network_idWhole:is_token_transferWhole:"true" or "false".createdRange> < >= <=idWhole:Part~settlement_idWhole:Part~stateWhole:scenarioWhole:providerWhole:source_network_idWhole:destination_network_idWhole:createdRange> < >= <=Sending a search
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 returns422parameter_missing. - A later page sends
next_pageback aspage.next_pageisnullon the last page. The token remembers the first page'squeryandlimit, 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
pagetoken was not issued for that search and environment; - the request sends a
queryorlimitthat differs from the token's.
Your credential sets the environment, not the query, so no clause can reach another environment's objects.