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

# Get all client intents

> Retrieves all intents for the authenticated client with pagination and optional status filtering



## OpenAPI

````yaml /api-reference/openapi.json get /intents
openapi: 3.0.0
info:
  title: Chainrails API
  description: Public API documentation for Chainrails
  version: '1.0'
  contact: {}
servers:
  - url: https://api.chainrails.io/api/v1
security:
  - api-key: []
tags: []
paths:
  /intents:
    get:
      tags:
        - Intents
      summary: Get all client intents
      description: >-
        Retrieves all intents for the authenticated client with pagination and
        optional status filtering
      operationId: IntentController_getAllIntents
      parameters:
        - name: limit
          required: false
          in: query
          description: 'Number of intents to return (default: 50, max: 100)'
          schema:
            type: number
        - name: offset
          required: false
          in: query
          description: 'Number of intents to skip (default: 0)'
          schema:
            type: number
        - name: status
          required: false
          in: query
          description: Filter by intent status
          schema:
            enum:
              - pending
              - processing
              - completed
              - failed
            type: string
      responses:
        '200':
          description: List of intents retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  intents:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: number
                          example: 1
                        client_id:
                          type: string
                          example: e1ee3675-cb26-4a76-8206-a84f86e85862
                        sender:
                          type: string
                          example: '0xdA3ECb2E5362295E2b802669dD47127A61d9Ce54'
                        initialAmount:
                          type: string
                          example: '1000000'
                        fees_in_usd:
                          type: string
                          example: '10500'
                        app_fee_in_usd:
                          type: string
                          example: '1000'
                        total_amount_in_usd:
                          type: string
                          example: '1010500'
                        total_amount_in_asset_token:
                          type: string
                          example: '1000500'
                        fees_in_asset_token:
                          type: string
                          example: '500'
                        app_fee_in_asset_token:
                          type: string
                          example: '0'
                        asset_token_symbol:
                          type: string
                          example: USDC
                        asset_token_decimals:
                          type: number
                          example: 6
                        slippage:
                          type: string
                          example: '0.5'
                        tokenIn:
                          type: string
                          example: '0x036CbD53842c5426634e7929541eC2318f3dCF7e'
                        tokenOut:
                          type: string
                          example: '0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d'
                        intent_address:
                          type: string
                          example: '0x4E60e01263E750eD9D087157e19D2480Fd86A900'
                        destination_intent_address:
                          type: string
                          example: 0x5F70e12374E750fE0E087158f29E3591Ge97B011
                        source_chain:
                          type: string
                          example: BASE_TESTNET
                        destination_chain:
                          type: string
                          example: ARBITRUM_TESTNET
                        recipient:
                          type: string
                          example: '0xb79541Be080a59fdcE6C0b43219ba56c725eC65e'
                        refund_address:
                          type: string
                          example: '0xb79541Be080a59fdcE6C0b43219ba56c725eC65e'
                        relayer:
                          type: string
                          example: ''
                        coordinator:
                          type: string
                          example: '0x989f47053F188778575113DcF39dB8960Fc450e2'
                        bridger:
                          type: string
                          example: '0xa1c943058a631D5506eb7d96036eAbF6968e2338'
                        bridgeExtraData:
                          type: string
                          example: >-
                            0x00000000000000000000000000000000000000000000000000000000000001f4
                        intent_nonce:
                          type: number
                          example: 4267684716645197
                        intent_status:
                          type: string
                          enum:
                            - PENDING
                            - FUNDED
                            - INITIATED
                            - COMPLETED
                            - EXPIRED
                          example: PENDING
                        tx_hash:
                          type: string
                          nullable: true
                          example: null
                        needs_relay:
                          type: boolean
                          example: false
                        relayer_claimed:
                          type: boolean
                          example: false
                        paymaster_used:
                          type: boolean
                          example: false
                        mode:
                          type: string
                          enum:
                            - test
                            - live
                          example: test
                        expires_at:
                          type: string
                          format: date-time
                          example: '2025-12-13T03:31:23.000Z'
                        metadata:
                          type: object
                          example:
                            orderId: '12345'
                        created_at:
                          type: string
                          format: date-time
                          example: '2025-12-13T02:31:23.390Z'
                        updated_at:
                          type: string
                          format: date-time
                          example: '2025-12-13T02:31:23.390Z'
                  total:
                    type: number
                    example: 100
                  limit:
                    type: number
                    example: 50
                  offset:
                    type: number
                    example: 0
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    example: 401
                  message:
                    type: string
                    example: Unauthorized
      security:
        - api-key: []
components:
  securitySchemes:
    api-key:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Enter your Chainrails API key as a Bearer token

````

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