List treasuries

GET/treasuries

Return the environment's named payout destinations as a list, {object, data, has_more, url}, newest first.

  • The filters are named.

    name matches a treasury's name exactly, network_id the chain it is on, asset_symbol the asset it receives, 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.

  • 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 treasury of another environment is on no page.

Show 2 more details
  • A resetting sandbox.

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

  • A secret key reads the list holding treasury.read.

    It reads in its own environment and sends no X-Stridge-Environment; a key without treasury.read answers 403 permission_denied naming it. Creating or rotating a treasury is a person's act, and no key reaches it.

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.

  • namestringoptional

    Only the treasury carrying this name. A name is unique inside the environment.

  • network_idinteger <int32>optional

    Only the treasuries on this chain, as the chain's own numeric identifier. A value that is not a non-negative integer answers 422 parameter_invalid naming network_id.

  • asset_symbolstringoptional

    Only the treasuries receiving this asset, as its symbol is written.

  • 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 treasuries.

  • objectstringrequiredenum list

    The object's type, always list.

    • idstring <uuid>required

      The treasury's own identifier, and the one its change log hangs off.

    • objectstringrequired

      The object's type, always treasury.

    • environment_idstring <uuid>required

      The environment this treasury belongs to. v1 keyed a treasury to a workspace, which made a sandbox's destinations and a live one's the same set and left no way to rehearse a rotation.

    • 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.

    • namestringrequired

      What everything else refers to this destination by: lowercase, starting with a letter, three to sixty-four characters of letters, digits and underscores. It is unique inside the environment and immutable after creation, because it is a reference other objects hold.

    • network_idinteger <int32>required

      The chain the destination is on, as the chain's own numeric identifier. It is not a UUID and it addresses nothing in this API: a client resolves it against the network catalogue. v1 sent the same fact as a string.

    • destination_addressstringrequired

      The address money lands at, in the chain's own encoding.

    • asset_symbolstringrequired

      The asset the destination receives. It must be an asset the network catalogue carries as enabled on network_id.

    • providerstring | nullrequired

      The custody provider holding the address, or null when the environment holds it itself. v1 sent the empty string for both cases, which made "self-custodied" and "provider not recorded" the same value.

    • created_atstring <date-time>required

      When the treasury was created. RFC3339 UTC, Z suffixed. The list is ordered on it, newest first.

    • updated_atstring <date-time>required

      When it was last rotated. RFC3339 UTC, Z suffixed.

  • 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/treasuries" \
  -H "Authorization: Bearer $STRIDGE_SECRET_KEY"

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

Response200
"object": "list",
"id": "5b0e9c4a-2f71-4d3e-8a6b-1c9d0e7f3a25",
"object": "treasury",
"environment_id": "3f2a6d7e-6b1c-4f2a-9a11-0b53f8d6b2c1",
"livemode": false,
"name": "treasury_main",
"network_id": 60,
"destination_address": "0x1111111111111111111111111111111111111111",
"asset_symbol": "USDC",
"provider": "fireblocks",
"created_at": "2026-01-08T10:12:41Z",
"updated_at": "2026-01-27T16:03:55Z"
}
],
"has_more": false,
"url": "/v2/treasuries"
}