Link a deposit address to a routing policy

PATCH/uda/{id}

Point the address at a shared routing policy, or clear the link so it inherits the environment's default rule list again.

  • The act belongs to the address, not to the policy.

    A policy does not know which addresses hold it, and linking answers with the whole address rather than with the policy, so this is an edit of the address and lives on its own path.

    The link is consulted at settlement time rather than copied at link time, so the change applies to the next deposit immediately and there is no backfill and no version to pick. The address's own routing_rules are unaffected: they are evaluated first and the policy is only reached when they all fall through.

  • The refusals.

    routing_policy is required, and a body without it answers 422 parameter_missing naming it; a value that is neither a non-blank string nor null answers 422 parameter_invalid naming it, and a member the body does not declare answers 400 parameter_unknown naming it. A policy name no policy in this environment carries answers 404 resource_missing naming routing_policy, which is also the answer for a policy that exists in another environment.

Show 3 more details
  • Who may.

    In live it is an owner's alone: a developer or a viewer answers 403 permission_denied, checked before the step-up. In a sandbox an owner and a developer may, and a viewer answers 403 permission_denied. A secret key of the environment may too when it was minted with uda.write; one without it answers 403 permission_denied, uda.create among them. A key links to a policy the environment already holds and never edits one.

  • Step-up.

    In live, a person needs a fresh step-up (totp or backup_code, never email) no older than 15 minutes, which the act renews; without one it answers 403 step_up_required, and an owner with no authenticator is answered enrolment_required: true. A sandbox never asks, and neither does a key: the person who mints a live key holding uda.write shows the same step-up.

  • A resetting sandbox.

    While a sandbox's reset runs it answers 409 environment_resetting.

Parameters

Path

  • idstring <uuid>required

    The deposit address being addressed. A value that is not a UUID answers 422 parameter_invalid naming id.

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.

Request body

  • routing_policystring | nullrequired

    The policy's name, or null to clear the link. A name no policy in this environment carries answers 404.

Responses

The address as it now stands.

  • idstring <uuid>required

    The address family's opaque identifier.

  • objectstringrequired

    The object's type, always uda_address.

  • environment_idstring <uuid>required

    The environment this address 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.

  • ownerstringrequired

    Who the address was assigned to, as the caller named them at assignment. It is the caller's own identifier for a customer rather than anything this API mints, so it is free text.

  • statusstringrequiredenum active · retired

    Whether the address still accepts deposits. A retired address keeps its history and its settlements; it simply stops being handed out.

Show 5 more fields
  • Where money swept from the address ends up: an address on a chain, denominated in one asset, held either inline or by a named treasury.

    • addressstringrequired

      The address the money settles at.

    • network_idinteger <int32>required

      The destination chain, as the chain's own numeric identifier.

    • eip155_idstring | nullrequired

      The destination chain's EIP-155 identifier, or null where the chain is not EVM.

    • network_namestringrequired

      The destination chain's name.

    • asset_symbolstringrequired

      The asset the destination is denominated in.

    • asset_addressstringrequired

      The asset's contract on the destination chain, or empty where it is the chain's own coin.

    • asset_decimalsinteger <int32>required

      How many decimal places the destination asset carries.

    • treasurystring | nullrequired

      The treasury holding the destination, or null where the destination is an inline address the caller stated directly. A named treasury is a level of indirection: its address can move without every address that settles into it being rewritten.

  • Every chain the family is observed on. It is empty on an address minted before any chain was configured for it.

    • network_idinteger <int32>required

      The chain, 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.

    • eip155_idstring | nullrequired

      The chain's EIP-155 identifier, or null where the chain is not EVM and has none. It is a second identifier for the same chain rather than a second chain: network_id is what this API keys on, and eip155_id is what a wallet's chainId field wants.

    • network_namestringrequired

      The chain's name.

    • addressstringrequired

      The address a payer sends to on this chain.

    • Every asset a deposit on this chain is credited for, the chain's native coin first. It is empty on a chain observed before any asset was configured for it.

  • The address's own ordered overrides, first match wins. Empty where it states none.

    • What a rule matches on. A rule fires when EVERY stated clause matches the deposit; a clause left empty matches anything, so an all-empty match is the catch-all.

    • Where money swept from the address ends up: an address on a chain, denominated in one asset, held either inline or by a named treasury.

  • routing_policy_idstring | null <uuid>required

    The shared rule list this address consults when its own rules all fall through, or null where it states none and inherits the environment's default.

  • created_atstring <date-time>required

    When the address was minted. RFC3339 UTC, Z suffixed. The list is ordered on it, newest first, and the details aggregate buckets on it.

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/uda/string" \
  -X PATCH \
  -H "Authorization: Bearer $STRIDGE_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "routing_policy": "vip_tier"
}'

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

Response200
"id": "2d94e610-8f37-4c5b-a1e0-6b73f2905c48",
"object": "uda_address",
"environment_id": "3f2a6d7e-6b1c-4f2a-9a11-0b53f8d6b2c1",
"livemode": false,
"owner": "customer_8412",
"status": "active",
"address": "0x1f8b25e73d940ab6c5e8127a5f2c81b93e4d6a0c",
"network_id": 195,
"eip155_id": "728126428",
"network_name": "Tron",
"asset_symbol": "USDT",
"asset_address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"asset_decimals": 6,
"treasury": "Operating Treasury"
},
"network_id": 60,
"eip155_id": "1",
"network_name": "Ethereum",
"address": "0x9f2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d",
"symbol": "USDC",
"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"decimals": 6,
"logo": "https://assets.stridge.mock/tokens/usdc.svg"
}
]
}
],
"source_network_id": 60,
"source_asset_symbol": "USDC",
"source_token_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
},
"address": "0x1f8b25e73d940ab6c5e8127a5f2c81b93e4d6a0c",
"network_id": 195,
"eip155_id": "728126428",
"network_name": "Tron",
"asset_symbol": "USDT",
"asset_address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"asset_decimals": 6,
"treasury": "Operating Treasury"
}
}
],
"routing_policy_id": "7e13a0c8-4b6d-4f21-9c58-2a0e7d3b5f16",
"created_at": "2026-06-17T09:12:44Z"
}