> ## Documentation Index
> Fetch the complete documentation index at: https://docs.garden.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Route Policy

Retrieve route policies to calculate [supported routes](/developers/supported-routes) locally.


## OpenAPI

````yaml GET /policy
openapi: 3.1.0
info:
  title: Garden API
  version: 2.0.0
  description: API specification for various endpoints.
servers:
  - url: https://{environment}.garden.finance/v2
    variables:
      environment:
        default: api
        enum:
          - api
          - testnet.api
security:
  - garden-app-id: []
paths:
  /policy:
    get:
      summary: Get route policy configuration.
      responses:
        '200':
          description: Route policy configuration.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyResponse'
              example:
                status: Ok
                result:
                  default: open
                  isolation_groups:
                    - ethereum:SEED <-> arbitrum:SEED
                  blacklist_pairs:
                    - bitcoin:BTC -> starknet:*
                  whitelist_overrides: []
components:
  schemas:
    PolicyResponse:
      allOf:
        - $ref: '#/components/schemas/Response'
        - type: object
          properties:
            result:
              $ref: '#/components/schemas/RoutePolicy'
    Response:
      type: object
      properties:
        status:
          type: string
          enum:
            - Ok
            - Error
        error:
          type: string
          nullable: true
    RoutePolicy:
      type: object
      title: Route Policy Configuration
      properties:
        default:
          type: string
          enum:
            - open
            - closed
          default: open
          description: Default policy for routes not covered by specific rules.
        isolation_groups:
          type: array
          items:
            type: string
          example:
            - ethereum:SEED <-> arbitrum:SEED
          description: >-
            Assets in an isolation group can ONLY trade with other assets in the
            same group.
        blacklist_pairs:
          type: array
          items:
            type: string
          example:
            - bitcoin:BTC -> starknet:*
            - '*:USDC -> bitcoin:*'
          description: Explicitly forbidden trading pairs using pattern matching.
        whitelist_overrides:
          type: array
          items:
            type: string
          example:
            - ethereum:USDC -> bitcoin:BTC
          description: Explicit overrides that bypass other restrictions.
  securitySchemes:
    garden-app-id:
      type: apiKey
      name: garden-app-id
      in: header
      description: >-
        If you do not yet have an app ID, please follow these
        [steps](/api-reference/setup).

````