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

> ## Agent Instructions
> To quote bridges and swaps, look up chains and tokens, or track Relay transactions from an agent, use the Relay MCP server: `npx -y @relayprotocol/relay-mcp`. It is read-only and does not sign or broadcast transactions. Setup: https://docs.relay.link/resources/developing-with-ai.md
> For Relay Protocol's trust model, security architecture, and audits, see https://docs.relay.link/references/protocol/security.md. For address screening, see https://docs.relay.link/security/transaction-screening.md.

# Submit Permit

> This API is used to submit a permit from the quote API.

> [!NOTE]
>
> Signature steps from [`POST /quote/v3`](https://docs.relay.link/references/api/get-quote-v3) post here, and the response returns flat steps in the same shape. Upgrading from `POST /execute/permits`? See the [migration guide](https://docs.relay.link/references/api/api_guides/migrating-to-quote-v3.md#submitting-permits).


## OpenAPI

````yaml post /execute/permits/v2
openapi: 3.0.3
info:
  title: Cross-chain solver
  version: 1.0.0
servers:
  - url: https://api.relay.link
    description: Mainnet API
  - url: https://api.testnets.relay.link
    description: Testnet API
security: []
paths:
  /execute/permits/v2:
    post:
      parameters:
        - schema:
            type: string
          in: query
          name: signature
          required: true
          description: The permit signature.
        - schema:
            type: string
          in: header
          name: x-api-key
          required: false
          description: Optional API key for authentication and higher rate limits.
      requestBody:
        content:
          application/json:
            schema:
              properties:
                kind:
                  type: string
                  description: >-
                    The kind of signature. This value is returned in the quote
                    API steps body field. e.g eip3009, permit2 or
                    multicall-authorization (the extra EIP-712 signature of the
                    approval proxy 3.1+ EIP-3009 flow, to be posted before the
                    eip3009 signature)
                requestId:
                  type: string
                  description: >-
                    The requestId of the quote this permit signature applies to.
                    Returned in the quote API steps body field.
                api:
                  type: string
                  enum:
                    - bridge
                    - swap
                    - user-swap
                  description: >-
                    The API value returned from the quote API steps body field.
                    Required for permit2 and eip3009; optional for other kinds.
              required:
                - kind
                - requestId
              type: object
        required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  steps:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: >-
                            Step kind identifier; IDs may repeat. Execute steps
                            in array order.
                        action:
                          type: string
                        description:
                          type: string
                        kind:
                          type: string
                        status:
                          type: string
                        data:
                          type: object
                          properties:
                            to:
                              type: string
                            data:
                              type: string
                            value:
                              type: string
                            chainId:
                              type: number
                            gas:
                              type: string
                            maxFeePerGas:
                              type: string
                            maxPriorityFeePerGas:
                              type: string
                            gasPrice:
                              type: string
                          required:
                            - to
                            - data
                            - value
                            - chainId
                        depositAddress:
                          type: object
                          nullable: true
                          properties:
                            address:
                              type: string
                            type:
                              type: string
                              enum:
                                - strict
                                - open
                            depositor:
                              type: string
                              nullable: true
                            depositTxHash:
                              type: string
                              nullable: true
                            recoveryAddress:
                              type: string
                              nullable: true
                              description: >-
                                Origin-chain address that can recover
                                deposit-address funds if the recipient wallet is
                                later blocked. Null when not specified.
                        depositAddressId:
                          type: string
                        check:
                          type: object
                          properties:
                            endpoint:
                              type: string
                            method:
                              type: string
                              enum:
                                - GET
                          required:
                            - endpoint
                            - method
                      required:
                        - id
                        - action
                        - description
                        - kind
                        - status
                required:
                  - message
        4XX:
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  errorCode:
                    type: string
                  requestId:
                    type: string
                  errorData:
                    type: object
                    properties:
                      chainId:
                        type: number
                      currency:
                        type: string
                      required:
                        type: string
                      available:
                        type: string
                      spender:
                        type: string
                required:
                  - message
                  - errorCode
        5XX:
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  errorCode:
                    type: string
                  requestId:
                    type: string
                required:
                  - message
                  - errorCode

````

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