Search routings
/ routings/ searchReturn the environment's routings that match a search query, as a search result, {object, data, has_more, next_page, url}, newest first. A plain GET /routings takes one value per filter; this is where a client matches part of an identifier, or one value OR another.
The fields.
idandsettlement_idmatch whole with:or in part with~(at least 3 characters,id~"9b2e4c17"finds every dispatch of that settlement);state,scenario,provider,source_network_idanddestination_network_idmatch whole with:(a network by the chain's own numeric identifier,source_network_id:"60");createdtakes>,<,>=and<=. Every match ignores case. Clauses join byAND, or byOR, never both in one query:state:"failed" OR state:"fallback"is the grid's multi-select. A query this search does not take answers400parameter_invalidnamingquery, as does a query that matches so much history that its search outlasts the time a search is given, and a first page withoutqueryanswers422parameter_missing.Paging.
A later page sends the
next_pagetoken back aspage. The token carries the first page's query andlimit, so a request sending it may send them again unchanged or leave them out; a badlimit, apagetoken Stridge did not mint for this search, or aqueryorlimitother than the token's answers422parameter_invalidnaming it.
Show 2 more detailsShow fewer details
The scope comes from the request, not from the query.
The environment is resolved from the credential and the
X-Stridge-Environmentheader before the query is read, and no clause can widen it: a routing of another environment matches nothing, anORclause naming it included.A resetting sandbox.
While a sandbox's reset runs it answers
409environment_resetting: nothing is served for a sandbox until its reset finishes.
Parameters
Query
- querystringoptional
The search, in the search query language: one or more clauses joined by
AND, or byOR(either keyword in upper or lower case), never both in one query, at most 10 clauses. A clause is a field, an operator and a value with no space between them.Show full descriptionShow less
field:"value"matches the whole value, ignoring case;field~"part"matches a field holdingpartanywhere, ignoring case, and takes at least 3 characters;created>,created<,created>=andcreated<=bound the creation time, given as a Unix timestamp in seconds from 0 to 253402300799 (created>1767225600) or as a quoted RFC 3339 instant (created>="2026-01-01T00:00:00Z"). Inside quotes,\"is a quote and\\a backslash. The operation names the fields its query may use. An unknown field, an operator the field does not take, a value outside the field's set, a query that does not parse, one longer than 1000 characters, and one that is not UTF-8 or holds a NUL character answer400parameter_invalidnamingquery. Every first page sends it: one withoutqueryanswers422parameter_missing. On a later page the query travels inside the page token, so a request sendingpagemay send it again unchanged or leave it out. - limitinteger <int32>optionaldefault 20
The page size. A value that is not an integer from 1 to the maximum answers
422parameter_invalidnaminglimit; it is never clamped. - pagestringoptional
The opaque token of a search's next page, as
next_pagecarries it. It holds the first page'squeryandlimit: a request sending it may send them again unchanged, or leave them out.Show full descriptionShow less
A token Stridge did not mint for this search and this environment, or a
queryorlimitother than its own, answers422parameter_invalidnaming that parameter.
Headers
- X-Stridge-Environmentstring <uuid>optional
Which environment the request acts inside, on an operation a session and an API key both call. Learn more
Show full descriptionShow less
It is required under a person's session, exactly as
EnvironmentHeaderdescribes: a session request that omits it answers400withenvironment required, and one naming an environment the caller holds no membership of answers404.An API key names its own environment, so a request made with one omits this header. A key request that sends it answers
400withenvironment header not accepted, whatever it names, rather than having the header ignored: a header that is silently ignored hides the integration bug that sent it.
Responses
The page of routings the query matches.
- objectstringrequiredenum search_result
The object's type, always
search_result. - idstringrequired
The routing's identifier. It is the identifier of the settlement the routing carries, followed by
-r<n>when the settlement was retried and-p<n>when its credit was parked, so each dispatch of one settlement is its own routing. A client reads it as an opaque string. - objectstringrequired
The object's type, always
routing. - environment_idstring <uuid>required
The environment this routing is scoped to. It is carried on the object rather than implied by the request, so the scope a client rendered is the scope the server answered in.
- livemodebooleanrequired
truewhenenvironment_idnames aliveenvironment andfalsein a sandbox. It is carried on the object itself, so a payload read on its own, a logged response or a webhook body, still says which side of the boundary it came from. - settlement_idstring | null <uuid>required
The settlement this routing carries, or
nullon a routing raised outside one. v1 reported the same absence as an empty string, which a client could not tell from an identifier it failed to read. - statestringrequiredenum created · quoting · quoted · executing · awaiting_destination · fallback · completed · failed
Where the routing stands. It is raised in
created, is priced throughquotingandquoted, moves throughexecutingandawaiting_destination, and ends incompletedorfailed;fallbackis the second route tried after the first could not carry it.Show full descriptionShow less
completedandfailedare the two terminal states, and they are the pair the success rate is computed over. A client reads this value and never sets it. - scenariostringrequired
Which of the four corridors the move is:
same_chain_same_token,same_chain_diff_token,cross_chain_same_tokenorcross_chain_diff_token.Show full descriptionShow less
It is free text rather than an enumeration because it describes the shape of a corridor rather than a state a client branches on, and a corridor named later must not break a client reading this one.
- providerstring | nullrequired
The carrier that executed the move, or
nullon a routing no carrier has taken yet. The set is open: a carrier a client does not recognise reads the same as no carrier at all rather than failing the row it arrived on. One end of a routing: where the money sat, on which chain, in which asset, and how much of it. Both ends carry this one shape, so a client renders either with the same component.
One end of a routing: where the money sat, on which chain, in which asset, and how much of it. Both ends carry this one shape, so a client renders either with the same component.
What the quote promised would land at the destination, in the destination asset. Its
amountis"0"until a quote exists.What actually landed at the destination, in the destination asset. Its
amountis"0"until the destination leg lands, so a client compares it againstestimated_outputto read the slippage a completed routing took.- source_tx_idstringrequired
The transaction that moved the money out of the source, or the empty string before execution begins.
- destination_tx_idstringrequired
The transaction that credited the destination, or the empty string until it lands. A routing that failed carries the empty string here permanently.
- errorstring | nullrequired
Why the routing failed, or
nullon every routing that has not. It is developer documentation rather than user copy. What the carrier reported, or
nullbefore any carrier has run — which is every routing still increatedorquoting.- created_atstring <date-time>required
When the routing was raised. RFC3339 UTC,
Zsuffixed. - updated_atstring <date-time>required
When the routing last moved. It equals
created_aton one that has not moved since it was raised, so the two together are the completion span a terminal routing took.
- idstringrequired
- has_morebooleanrequired
Whether the search matches more objects past this page.
- next_pagestring | nullrequired
The opaque token of the next page, sent back as
pageto read it;nullon the last page. - urlstringrequired
The path the search is read at.
Errors
The error.code values this operation can return. Each one links to its entry in the error catalogue, which explains the cause and the fix.
- 400environment_requiredEnvironment required
- 400header_invalidInvalid header
- 400422parameter_invalidInvalid parameter
- 400parameter_unknownUnknown parameter
- 401api_key_not_acceptedAPI key not accepted
- 401authentication_requiredAuthentication required
- 401publishable_key_not_acceptedPublishable key not accepted
- 401token_invalidInvalid or expired token
- 403membership_suspendedMembership suspended
- 403permission_deniedPermission denied
- 404environment_not_foundEnvironment not found
- 409environment_provisioningEnvironment provisioning
- 409environment_resettingEnvironment resetting
- 422parameter_missingMissing parameter
- 429rate_limitedToo many requests