VaultsBuild a derivation path

Build a derivation path

Builds the canonical derivation path (m/44/{coinType}/{seg0}/...) from segment values. Validates that the network is connected to the Vault, all Route.code values are present, static variants exist and are enabled, and dynamic values are integers in [0, 2^31-1].

curl -X POST "https://policy-engine-rest.ezig.workers.dev/api/v1/vaults/test_vault/derivation-path/build" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "networkCode": "tron_network",
  "values": {
    "index": 0,
    "app_id": "otc_app",
    "purpose": "invoices",
    "asset": "usdt",
    "stage": "prod"
  }
}'
{
  "path": "m/44/195/0/0/1/1/0"
}
POST
/api/v1/vaults/{code}/derivation-path/build
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Session token. Mobile/services. The web uses a cookie.

Session token. Mobile/services. The web uses a cookie.
API Key (cookie: session_token)
session_tokenstring
Required

API key (sent in cookie)

path
codestring
Required

Unique Vault code (slug)

Content-Typestring
Required

The media type of the request body

Options: application/json
valuesobject
Required

Route.code → value. For a static route: the variant code (string) or pathId (number); for a dynamic route: a number.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Session token. Mobile/services. The web uses a cookie.

path
parameterstring
Required

API Key for authentication. Provide your API key in the cookie.

Path Parameters

codestring
Required

Unique Vault code (slug)

Example:
test_vault

Body

application/json
networkCodestring
Required
Example:
tron_network
valuesobject
Required

Route.code → value. For a static route: the variant code (string) or pathId (number); for a dynamic route: a number.

Example:
{"index":0,"app_id":"otc_app","purpose":"invoices","asset":"usdt","stage":"prod"}

Responses

pathstring
Required