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

# Get relayed action status using its receipt capability



## OpenAPI

````yaml /public/reference/openapi.json get /v1/actions/{id}
openapi: 3.1.0
info:
  description: >-
    Public Tayho API for indexed protocol state, live calculations, relayed
    actions, and automatic-order lifecycle.
  title: Tayho API
  version: 1.0.0
servers:
  - description: Development
    url: https://api.testnet.tayho.io
security: []
tags:
  - name: System
  - name: Markets
  - name: Positions
  - name: Traders
  - name: Orders
  - name: Intents
  - name: Actions
  - name: Portfolio
  - name: Vault
  - name: Staking
  - name: Trading
  - name: Realtime
paths:
  /v1/actions/{id}:
    get:
      tags:
        - Actions
      summary: Get relayed action status using its receipt capability
      operationId: getV1ActionsById
      parameters:
        - in: path
          name: id
          required: true
          schema:
            examples:
              - >-
                0x2222222222222222222222222222222222222222222222222222222222222222
            pattern: ^0x[0-9a-fA-F]{64}$
            type: string
        - in: query
          name: receipt
          required: true
          schema:
            maxLength: 512
            minLength: 1
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1ActionsByIdResponse'
          description: Response for status 200
        '401':
          $ref: '#/components/responses/Error401'
        '403':
          $ref: '#/components/responses/Error403'
        '404':
          $ref: '#/components/responses/Error404'
        '422':
          $ref: '#/components/responses/Error422'
        '429':
          $ref: '#/components/responses/Error429'
        '500':
          $ref: '#/components/responses/Error500'
        '502':
          $ref: '#/components/responses/Error502'
        '503':
          $ref: '#/components/responses/Error503'
        '504':
          $ref: '#/components/responses/Error504'
      security:
        - TayhoApiKey: []
components:
  schemas:
    GetV1ActionsByIdResponse:
      additionalProperties: false
      properties:
        action:
          anyOf:
            - additionalProperties: false
              properties:
                deadline:
                  format: tayho-uint48
                  maxLength: 15
                  type: string
                expiresAt:
                  format: tayho-uint48
                  maxLength: 15
                  type: string
                kind:
                  const: session.authorize
                  type: string
                marketIds:
                  items:
                    format: tayho-uint64
                    maxLength: 20
                    type: string
                  maxItems: 100
                  minItems: 1
                  type: array
                  uniqueItems: true
                maxOrderQWad:
                  format: tayho-uint128
                  maxLength: 39
                  type: string
                maxSpendTokens:
                  format: tayho-uint160
                  maxLength: 49
                  type: string
                nonce:
                  format: tayho-uint256
                  maxLength: 78
                  type: string
                sessionKey:
                  examples:
                    - '0x1111111111111111111111111111111111111111'
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
                trader:
                  examples:
                    - '0x1111111111111111111111111111111111111111'
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
              required:
                - kind
                - trader
                - sessionKey
                - expiresAt
                - maxSpendTokens
                - maxOrderQWad
                - marketIds
                - nonce
                - deadline
              type: object
            - additionalProperties: false
              properties:
                deadline:
                  format: tayho-uint48
                  maxLength: 15
                  type: string
                kind:
                  const: session.revoke
                  type: string
                nonce:
                  format: tayho-uint256
                  maxLength: 78
                  type: string
                sessionKey:
                  examples:
                    - '0x1111111111111111111111111111111111111111'
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
                trader:
                  examples:
                    - '0x1111111111111111111111111111111111111111'
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
              required:
                - kind
                - trader
                - sessionKey
                - nonce
                - deadline
              type: object
            - additionalProperties: false
              properties:
                deadline:
                  format: tayho-uint48
                  maxLength: 15
                  type: string
                kind:
                  const: position.addMargin
                  type: string
                marginTokens:
                  format: tayho-uint256
                  maxLength: 78
                  type: string
                nonce:
                  format: tayho-uint256
                  maxLength: 78
                  type: string
                positionId:
                  format: tayho-uint256
                  maxLength: 78
                  type: string
                sessionKey:
                  examples:
                    - '0x1111111111111111111111111111111111111111'
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
                trader:
                  examples:
                    - '0x1111111111111111111111111111111111111111'
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
              required:
                - kind
                - trader
                - sessionKey
                - positionId
                - marginTokens
                - nonce
                - deadline
              type: object
            - additionalProperties: false
              properties:
                account:
                  examples:
                    - '0x1111111111111111111111111111111111111111'
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
                deadline:
                  format: tayho-uint48
                  maxLength: 15
                  type: string
                kind:
                  const: vault.deposit
                  type: string
                minShares:
                  format: tayho-uint256
                  maxLength: 78
                  type: string
                nonce:
                  format: tayho-uint256
                  maxLength: 78
                  type: string
                receiver:
                  examples:
                    - '0x1111111111111111111111111111111111111111'
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
                tokens:
                  format: tayho-uint256
                  maxLength: 78
                  type: string
              required:
                - kind
                - account
                - receiver
                - tokens
                - minShares
                - nonce
                - deadline
              type: object
            - additionalProperties: false
              properties:
                account:
                  examples:
                    - '0x1111111111111111111111111111111111111111'
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
                deadline:
                  format: tayho-uint48
                  maxLength: 15
                  type: string
                kind:
                  const: vault.withdraw
                  type: string
                minTokens:
                  format: tayho-uint256
                  maxLength: 78
                  type: string
                nonce:
                  format: tayho-uint256
                  maxLength: 78
                  type: string
                receiver:
                  examples:
                    - '0x1111111111111111111111111111111111111111'
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
                shares:
                  format: tayho-uint256
                  maxLength: 78
                  type: string
              required:
                - kind
                - account
                - receiver
                - shares
                - minTokens
                - nonce
                - deadline
              type: object
            - additionalProperties: false
              properties:
                account:
                  examples:
                    - '0x1111111111111111111111111111111111111111'
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
                amount:
                  format: tayho-uint256
                  maxLength: 78
                  type: string
                deadline:
                  format: tayho-uint48
                  maxLength: 15
                  type: string
                kind:
                  const: staking.stake
                  type: string
                nonce:
                  format: tayho-uint256
                  maxLength: 78
                  type: string
              required:
                - kind
                - account
                - amount
                - nonce
                - deadline
              type: object
            - additionalProperties: false
              properties:
                account:
                  examples:
                    - '0x1111111111111111111111111111111111111111'
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
                amount:
                  format: tayho-uint256
                  maxLength: 78
                  type: string
                deadline:
                  format: tayho-uint48
                  maxLength: 15
                  type: string
                kind:
                  const: staking.unstake
                  type: string
                nonce:
                  format: tayho-uint256
                  maxLength: 78
                  type: string
                receiver:
                  examples:
                    - '0x1111111111111111111111111111111111111111'
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
              required:
                - kind
                - account
                - receiver
                - amount
                - nonce
                - deadline
              type: object
            - additionalProperties: false
              properties:
                account:
                  examples:
                    - '0x1111111111111111111111111111111111111111'
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
                deadline:
                  format: tayho-uint48
                  maxLength: 15
                  type: string
                kind:
                  const: staking.claim
                  type: string
                nonce:
                  format: tayho-uint256
                  maxLength: 78
                  type: string
                receiver:
                  examples:
                    - '0x1111111111111111111111111111111111111111'
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
              required:
                - kind
                - account
                - receiver
                - nonce
                - deadline
              type: object
        blockNumber:
          format: tayho-uint256
          maxLength: 78
          type: string
        createdAt:
          format: tayho-uint64
          maxLength: 20
          type: string
        failure:
          additionalProperties: false
          properties:
            code:
              enum:
                - invalid_request
                - invalid_signature
                - invalid_permit
                - expired
                - nonce_used
                - unauthorized
                - unsupported_action
                - simulation_failed
                - quota_exceeded
                - pending_limit_exceeded
                - gas_budget_exceeded
                - dependency_unavailable
                - reverted
              type: string
            message:
              maxLength: 512
              minLength: 1
              type: string
            retryable:
              type: boolean
          required:
            - code
            - message
            - retryable
          type: object
        id:
          examples:
            - '0x2222222222222222222222222222222222222222222222222222222222222222'
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        state:
          enum:
            - received
            - validating
            - queued
            - broadcast
            - confirmed
            - indexed
            - cancelled
            - expired
            - rejected
            - reverted
          type: string
        txHash:
          examples:
            - '0x2222222222222222222222222222222222222222222222222222222222222222'
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        updatedAt:
          format: tayho-uint64
          maxLength: 20
          type: string
      required:
        - id
        - state
        - createdAt
        - updatedAt
        - action
      type: object
    TayhoError:
      additionalProperties: true
      properties:
        code:
          type: string
        error:
          type: string
        requestId:
          pattern: ^[A-Za-z0-9._:-]{8,128}$
          type: string
      required:
        - error
      type: object
  responses:
    Error401:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TayhoError'
      description: Missing or invalid API key.
    Error403:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TayhoError'
      description: The API key does not grant the required scope.
    Error404:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TayhoError'
      description: The requested resource does not exist.
    Error422:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TayhoError'
      description: Request validation failed.
    Error429:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TayhoError'
      description: The applicable request quota was exceeded.
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            minimum: 1
            type: integer
    Error500:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TayhoError'
      description: The request failed unexpectedly.
    Error502:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TayhoError'
      description: A dependency returned an invalid or unsuccessful response.
    Error503:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TayhoError'
      description: A required Tayho dependency is temporarily unavailable.
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            minimum: 1
            type: integer
    Error504:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TayhoError'
      description: A required Tayho dependency timed out.
  securitySchemes:
    TayhoApiKey:
      description: Tayho project API key with the scope declared by the operation.
      in: header
      name: X-API-Key
      type: apiKey

````