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

# Get a single earn lending action

> Returns one lending action by its action sequence id (tenant-scoped).

**Note:** This endpoint is currently in beta and might be subject to changes.




## OpenAPI

````yaml https://docs.fireblocks.com/api/v1/swagger.yaml get /earn/actions/{id}
openapi: 3.0.0
info:
  title: Fireblocks API
  description: >
    Fireblocks provides a suite of applications to manage digital asset
    operations and a complete development platform to build your business on the
    blockchain.


    - Visit our website for more information: [Fireblocks
    Website](https://fireblocks.com)

    - Visit our developer docs: [Fireblocks
    DevPortal](https://developers.fireblocks.com)
  version: 1.6.2
  contact:
    email: developers@fireblocks.com
servers:
  - url: https://api.fireblocks.io/v1
    description: Fireblocks Production Environment Base URL
  - url: https://sandbox-api.fireblocks.io/v1
    description: Fireblocks Sandbox Environment Base URL
security: []
paths:
  /earn/actions/{id}:
    get:
      tags:
        - Earn (Beta)
      summary: Get a single earn lending action
      description: >
        Returns one lending action by its action sequence id (tenant-scoped).


        **Note:** This endpoint is currently in beta and might be subject to
        changes.
      operationId: getEarnAction
      parameters:
        - name: id
          in: path
          required: true
          description: Action sequence id (UUID).
          schema:
            type: string
            minLength: 1
      responses:
        '200':
          description: OK
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetActionResponse'
        '403':
          description: >-
            Forbidden: insufficient permissions, disabled feature, or restricted
            access.
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '404':
          description: 'Not found: action does not exist or is not visible for this tenant.'
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '429':
          description: 'Rate limit exceeded: slow down and retry later.'
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '500':
          description: Internal error while processing the request.
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        default:
          $ref: '#/components/responses/Error'
      x-codeSamples:
        - lang: TypeScript
          source: >-
            const response: Promise<FireblocksResponse<GetActionResponse>> =
            fireblocks.earnBeta.getEarnAction(earnBetaApiGetEarnActionRequest);
        - lang: Java
          source: >-
            CompletableFuture<ApiResponse<GetActionResponse>> response =
            fireblocks.earnBeta().getEarnAction(id);
        - lang: Python
          source: response = fireblocks.earn_beta.get_earn_action(id);
components:
  headers:
    X-Request-ID:
      schema:
        type: string
      description: >-
        Unique ID correlated to the API request. Please provide it in any
        support ticket you create or on Github issues related to Fireblocks SDKs
  schemas:
    GetActionResponse:
      type: object
      description: Single lending action (intent plus per-step execution rows).
      properties:
        id:
          type: string
          description: Action sequence id (UUID).
          example: 660e8400-e29b-41d4-a716-446655440001
        status:
          type: string
          description: Intent status (e.g. CREATED, IN_PROGRESS, COMPLETED).
          example: IN_PROGRESS
        providerId:
          type: string
          description: Lending protocol identifier.
          example: MORPHO
          enum:
            - MORPHO
            - AAVE
        actionType:
          type: string
          description: Whether this action is a deposit or withdraw flow.
          example: DEPOSIT
          enum:
            - DEPOSIT
            - WITHDRAW
        opportunityId:
          type: string
          description: Target lending opportunity identifier.
          example: morpho-usdc-vault-1
        positionId:
          type: string
          description: Position id in the system when applicable.
          example: 770e8400-e29b-41d4-a716-446655440002
        amount:
          type: string
          description: Human-readable amount for the action.
          example: '1500.5'
        createdAt:
          type: string
          description: Creation time (ISO-8601).
          example: '2025-01-15T10:00:00Z'
        updatedAt:
          type: string
          description: Last update time (ISO-8601).
          example: '2025-03-20T08:30:00Z'
        records:
          type: array
          description: Ordered execution steps for this action.
          items:
            $ref: '#/components/schemas/ActionRecord'
          minItems: 1
          maxItems: 4
      required:
        - id
        - status
        - providerId
        - actionType
        - opportunityId
        - amount
        - createdAt
        - updatedAt
        - records
    ErrorSchema:
      type: object
      properties:
        message:
          type: string
        code:
          type: number
    ActionRecord:
      type: object
      description: One row in the lending action execution sequence.
      properties:
        actionType:
          type: string
          description: Kind of step in the lending sequence.
          example: APPROVE
          enum:
            - APPROVE
            - DEPOSIT
            - WITHDRAW
        status:
          type: string
          description: Step lifecycle status.
          example: COMPLETED
          enum:
            - NOT_STARTED
            - PROCESSING
            - PENDING_SIGNATURE
            - BROADCASTING
            - CONFIRMING
            - COMPLETED
            - FAILED
            - CANCELED
        txId:
          type: string
          description: Fireblocks transaction id when applicable (unset when NOT_STARTED).
          example: tx_abc123def456
        txHash:
          type: string
          description: On-chain transaction hash when applicable (unset when NOT_STARTED).
          example: '0x1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b'
        errorMessage:
          type: string
          description: Error detail when the step failed.
        updatedAt:
          type: string
          description: >-
            Last update time (ISO-8601); may be empty when status is
            NOT_STARTED.
          example: '2025-03-20T08:30:00Z'
      required:
        - actionType
        - status
        - updatedAt
  responses:
    Error:
      description: Error Response
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorSchema'

````