List routings

GET/routings

Return the environment's routings as a list, {object, data, has_more, url}, newest first: the order the grid renders and the order a person reads a movement feed in.

  • The filters are named.

    settlement_id, state, provider, scenario, source_network_id and destination_network_id match exactly, and created[gte], created[gt], created[lte] and created[lt] bound created_at; together they are ANDed, and each page lists under the filters its own request sends, so a later page sends them again beside starting_after or ending_before. Any other query parameter answers 400 parameter_unknown naming it, and a value outside its schema, a bad limit or a starting_after or ending_before naming no object of this list answers 422 parameter_invalid naming it.

  • Finding the routings of a settlement.

    settlement_id answers every routing that carried that settlement: one per dispatch, so a retried or credit-parked settlement lists each of its routings (id suffixed -r<n> or -p<n>), the second route a fallback tried included.

Show 3 more details
  • Finding one routing.

    A routing is read by its id with GET /routings/{id}. Matching part of an identifier, or one value OR another, is GET /routings/search.

  • The scope comes from the request, not from a filter.

    The environment is resolved from the credential and the X-Stridge-Environment header before any filter is read, and no filter can widen it: a routing of another environment is on no page, settlement_id naming another environment's settlement included.

  • A resetting sandbox.

    While a sandbox's reset runs it answers 409 environment_resetting: nothing is served for a sandbox until its reset finishes.

Parameters

Query

  • limitinteger <int32>optionaldefault 20

    The page size. A value that is not an integer from 1 to the maximum answers 422 parameter_invalid naming limit; it is never clamped.

  • starting_afterstringoptional

    A cursor: the id of an object of this list, usually the last one of the page just read. The page answered holds the objects that come right after it in the list's order. The object need not match this request's filters; its place in the order is what counts.

    Show full description

    An id that names no object of this list in this environment answers 422 parameter_invalid naming starting_after. It cannot be sent with ending_before.

  • ending_beforestringoptional

    A cursor: the id of an object of this list, usually the first one of the page just read. The page answered holds the objects that come right before it, still in the list's order, and has_more says whether there are more before them.

    Show full description

    An id that names no object of this list in this environment answers 422 parameter_invalid naming ending_before, as does sending it together with starting_after.

  • settlement_idstring <uuid>optional

    Only routings that carry this settlement.

  • statestringoptionalenum created · quoting · quoted · executing · awaiting_destination · fallback · completed · failed

    Only routings in this state.

  • providerstringoptional

    Only routings this carrier executed, as provider names it.

  • scenariostringoptionalenum same_chain_same_token · same_chain_diff_token · cross_chain_same_token · cross_chain_diff_token

    Only routings of this corridor, as scenario names it.

  • source_network_idinteger <int32>optional

    Only routings whose source sits on this chain, by the chain's own numeric identifier.

  • destination_network_idinteger <int32>optional

    Only routings whose destination sits on this chain, by the chain's own numeric identifier.

  • created[gte]string <date-time>optional

    Only objects created at or after this instant (RFC 3339).

  • created[gt]string <date-time>optional

    Only objects created after this instant (RFC 3339).

  • created[lte]string <date-time>optional

    Only objects created at or before this instant (RFC 3339).

  • created[lt]string <date-time>optional

    Only objects created before this instant (RFC 3339).

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 description

    It is required under a person's session, exactly as EnvironmentHeader describes: a session request that omits it answers 400 with environment required, and one naming an environment the caller holds no membership of answers 404.

    An API key names its own environment, so a request made with one omits this header. A key request that sends it answers 400 with environment 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.

  • objectstringrequiredenum list

    The object's type, always list.

    • 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

      true when environment_id names a live environment and false in 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 null on 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 through quoting and quoted, moves through executing and awaiting_destination, and ends in completed or failed; fallback is the second route tried after the first could not carry it.

      Show full description

      completed and failed are 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_token or cross_chain_diff_token.

      Show full description

      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 null on 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 amount is "0" until a quote exists.

    • What actually landed at the destination, in the destination asset. Its amount is "0" until the destination leg lands, so a client compares it against estimated_output to 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 null on every routing that has not. It is developer documentation rather than user copy.

    • What the carrier reported, or null before any carrier has run — which is every routing still in created or quoting.

    • created_atstring <date-time>required

      When the routing was raised. RFC3339 UTC, Z suffixed.

    • updated_atstring <date-time>required

      When the routing last moved. It equals created_at on one that has not moved since it was raised, so the two together are the completion span a terminal routing took.

  • has_morebooleanrequired

    Whether the list holds more objects past this page in the direction it was read: after its last object, or before its first for a page read with ending_before.

  • urlstringrequired

    The path the list 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.

Request
curl "https://api.stridge.com/v2/routings" \
  -H "Authorization: Bearer $STRIDGE_SECRET_KEY"

Set your secret key as STRIDGE_SECRET_KEY (sent as Authorization: Bearer).

Response200
"object": "list",
"id": "9b2e4c17-58af-4d0b-a3e1-6c74f9d2810b",
"object": "routing",
"environment_id": "3f2a6d7e-6b1c-4f2a-9a11-0b53f8d6b2c1",
"livemode": false,
"settlement_id": "4c81d3f6-7a92-4b0e-9d1f-2e6a8c05b743",
"state": "completed",
"scenario": "cross_chain_same_token",
"provider": "lifi",
"network_id": 8453,
"asset_address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"address": "0x7a5f2c81b93e4d6a0c1f8b25e73d940ab6c5e812",
"amount": "12500000",
"amount_decimal": "12.5",
"decimals": 6,
"asset": "USDC"
}
},
"network_id": 8453,
"asset_address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"address": "0x7a5f2c81b93e4d6a0c1f8b25e73d940ab6c5e812",
"amount": "12500000",
"amount_decimal": "12.5",
"decimals": 6,
"asset": "USDC"
}
},
"amount": "12500000",
"amount_decimal": "12.5",
"decimals": 6,
"asset": "USDC"
},
"amount": "12500000",
"amount_decimal": "12.5",
"decimals": 6,
"asset": "USDC"
},
"source_tx_id": "0x6f1c9d2a4b8e0357af1d6c92b34e708d5a1f2c6b9e0d4738a52c1b6f9d80e347",
"destination_tx_id": "0xb37a02e6c95d148f2a760b3c81e94d5f60a7c2891b4e3d05f6a89c1207b4e3d5",
"error": null,
"provider": "lifi",
"polled_at": "2026-06-17T09:34:17Z",
"status": "completed",
"substatus": "DONE",
"provider_error": "",
"network_id": 8453,
"tx_id": "0xb37a02e6c95d148f2a760b3c81e94d5f60a7c2891b4e3d05f6a89c1207b4e3d5",
"amount": "12500000",
"amount_decimal": "12.5",
"decimals": 6,
"asset": "USDC"
},
"token_address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"recipient": "0x1f8b25e73d940ab6c5e8127a5f2c81b93e4d6a0c",
"explorer_link": "https://etherscan.io/tx/0xb37a02e6c95d148f2a760b3c81e94d5f60a7c2891b4e3d05f6a89c1207b4e3d5"
},
"tx_status": "success",
"verified_at": "2026-06-17T09:34:17Z"
},
"route_id": "lifi-8f2a91cd",
"hops": 2
}
},
"created_at": "2026-06-17T09:33:47Z",
"updated_at": "2026-06-17T09:34:20Z"
}
],
"has_more": false,
"url": "/v2/routings"
}