GET
/
policy
Get route policy configuration.
curl --request GET \
  --url https://{environment}.garden.finance/v2/policy \
  --header 'garden-app-id: <api-key>'
{
  "status": "Ok",
  "result": {
    "default": "open",
    "isolation_groups": [
      "ethereum:SEED <-> arbitrum:SEED"
    ],
    "blacklist_pairs": [
      "bitcoin:BTC -> starknet:*"
    ],
    "whitelist_overrides": []
  }
}

This endpoint returns policy rules that clients can use to calculate supported routes locally, including isolation groups, blacklists, and whitelists.

Authorizations

garden-app-id
string
header
required

If you do not yet have an app ID, please follow these steps.

Response

200 - application/json

Route policy configuration.

The response is of type object.