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

# Check intent status

> Takes the hash of a /route transaction that published an intent, same-chain or cross-chain, and returns where the keeper is with it: executed (with its execution transaction), refunded (with its refund transaction), or still in flight. For a cross-chain intent this covers only the keeper side, use /api/v1/bridge/route to follow the bridge too.



## OpenAPI

````yaml /public/openapi.json get /api/v1/intent/status
openapi: 3.0.0
info:
  title: Enso API
  description: >-
    #### Enso API

    - Find detailed documentation on
    [docs.enso.finance](https://docs.enso.finance).

    - To use the API, **you must include your API Key in the Authorization
    header** (Bearer format).

    - For testing, Swagger pre-authorizes you using the key:
    `1e02632d-6feb-4a75-a157-documentation` (1rps).

    - Get your own API Key at
    [enso.finance/developers](https://enso.finance/developers).
  version: 1.0.1
  contact: {}
servers:
  - url: https://api.enso.build
security:
  - {}
tags:
  - name: shortcuts
    description: ''
paths:
  /api/v1/intent/status:
    get:
      tags:
        - DeFi Shortcuts
      summary: Check intent status
      description: >-
        Takes the hash of a /route transaction that published an intent,
        same-chain or cross-chain, and returns where the keeper is with it:
        executed (with its execution transaction), refunded (with its refund
        transaction), or still in flight. For a cross-chain intent this covers
        only the keeper side, use /api/v1/bridge/route to follow the bridge too.
      operationId: IntentStatusController_intentStatus
      parameters:
        - name: chainId
          required: true
          in: query
          description: >-
            Chain ID of the transaction that published the intent (the /route
            transaction)
          schema:
            example: 10
            type: number
        - name: txHash
          required: true
          in: query
          description: Hash of the transaction that published the intent
          schema:
            example: '0xc314d333a270c60cf7f7dbd477cf60d3e5a9574fc4a3d80cd537f56963611784'
            type: string
      responses:
        '200':
          description: The intent and its status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntentStatusResponse'
        '400':
          description: Malformed chainId or txHash, or unsupported chain
        '404':
          description: >-
            TRANSACTION_NOT_FOUND: the transaction is not mined on that chain
            yet (keep polling a hash you just sent). NO_INTENT: it is mined and
            published no intent
components:
  schemas:
    IntentStatusResponse:
      type: object
      properties:
        chainId:
          type: number
          description: Chain ID of the queried transaction
        txHash:
          type: string
          description: The queried transaction hash (lowercase)
        status:
          type: string
          description: >-
            delivered once the keeper executed the intent, failed once it was
            refunded or given up, inflight until then
          enum:
            - inflight
            - delivered
            - failed
        intent:
          description: The intent's lifecycle, read from the keeper
          allOf:
            - $ref: '#/components/schemas/BridgeRouteIntent'
      required:
        - chainId
        - txHash
        - status
        - intent
    BridgeRouteIntent:
      type: object
      properties:
        requestId:
          type: string
          description: Intent request id (bytes32) published by the source transaction
        executor:
          type: string
          description: >-
            Ephemeral executor address the bridge delivers to on the execution
            chain (lowercase)
        executionChainId:
          type: number
          description: Chain the intent executes (and refunds) on
        phase:
          type: string
          description: Coarse lifecycle phase of the destination stage
          enum:
            - awaiting_funds
            - executing
            - executed
            - refunding
            - refunded
            - failed
            - unknown
        status:
          type: string
          description: >-
            The keeper's own lifecycle status (pending | waiting_funds |
            inflight | executed | failed | failed_permanent | expired |
            refund_pending | refund_inflight | refunded | refund_skipped |
            refund_failed), or unknown
        statusDescription:
          type: string
          description: Human-readable status explanation
        source:
          type: string
          description: >-
            Where the stage was read from: the intent keeper, or only the chain
            itself
          enum:
            - keeper
            - onchain
        deadline:
          type: string
          description: Intent deadline (ISO 8601). Past it the executor can only refund.
        executionTxHash:
          type: string
          description: The keeper's execution transaction
        executionExplorerUrl:
          type: string
          description: Block-explorer link for the execution transaction
        executedAt:
          type: string
          description: When the execution mined (ISO 8601)
        refundTxHash:
          type: string
          description: The repayment transaction, when funds were swept back
        refundExplorerUrl:
          type: string
          description: Block-explorer link for the repayment transaction
        refundedAt:
          type: string
          description: When the repayment mined (ISO 8601)
        error:
          type: string
          description: Last error the keeper recorded for this intent, if any
      required:
        - requestId
        - executor
        - phase
        - status
        - source

````

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