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

# Rule language reference

> The complete rule grammar of this network, with worked examples, as one Markdown page. Written for coding agents.



## OpenAPI

````yaml /api/openapi.yaml get /api/dsl/docs
openapi: 3.1.0
info:
  title: Anafi API
  version: 0.1.3
  description: >
    The public HTTP routes of one Anafi network. Each network has its own host.

    Most partners call these routes through `@anafi-cc/sdk`, which also builds
    and checks

    the signed payloads. The routes below need no API key.
servers:
  - url: https://api.polygon.ana.fi
    description: Polygon
  - url: https://api.xlayer.ana.fi
    description: X Layer
  - url: https://api.polygon-amoy.ana.fi
    description: Polygon Amoy (testnet)
security: []
tags:
  - name: Accounts
  - name: Rules
  - name: Activity
  - name: Fees
paths:
  /api/dsl/docs:
    get:
      tags:
        - Rules
      summary: Rule language reference
      description: >-
        The complete rule grammar of this network, with worked examples, as one
        Markdown page. Written for coding agents.
      operationId: getDslDocs
      responses:
        '200':
          description: The Markdown page.
          content:
            text/markdown:
              schema:
                type: string

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.