> ## 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.

# Send a message to a Genie session

> <Badge color="blue" shape="pill">EA</Badge> Early Availability: this endpoint may change before GA.

Sends a question to Genie and returns a single answer. Reuse the `sessionId` from the original session on follow-up messages to continue the conversation with prior context.

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




## OpenAPI

````yaml https://swagger.fireblocks.com/openapi.yaml post /genie/sessions/{sessionId}/messages
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:
  /genie/sessions/{sessionId}/messages:
    post:
      tags:
        - Genie
      summary: Send a message to a Genie session
      description: >
        <Badge color="blue" shape="pill">EA</Badge> Early Availability: this
        endpoint may change before GA.


        Sends a question to Genie and returns a single answer. Reuse the
        `sessionId` from the original session on follow-up messages to continue
        the conversation with prior context.


        **Note:** This endpoint is currently in beta and might be subject to
        changes.
      operationId: sendGenieMessage
      parameters:
        - in: path
          name: sessionId
          required: true
          schema:
            type: string
            example: 7c1b2e1c-1c2a-4f3a-9c2d-2e0a8a1f8e1a
          description: The Genie session ID returned from `POST /genie/sessions`.
        - $ref: '#/components/parameters/X-Idempotency-Key'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenieSendMessageRequest'
      responses:
        '200':
          description: Genie response
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenieChatMessage'
        default:
          $ref: '#/components/responses/Error'
      x-codeSamples:
        - lang: TypeScript
          source: >-
            const response:
            Promise<FireblocksResponse<GenieSendMessageResponse>> =
            fireblocks.genie.sendGenieMessage(genieApiSendGenieMessageRequest);
        - lang: Java
          source: >-
            CompletableFuture<ApiResponse<GenieSendMessageResponse>> response =
            fireblocks.genie().sendGenieMessage(genieSendMessageRequest,
            sessionId, idempotencyKey);
        - lang: Python
          source: >-
            response =
            fireblocks.genie.send_genie_message(genie_send_message_request,
            session_id, idempotency_key);
components:
  parameters:
    X-Idempotency-Key:
      name: Idempotency-Key
      in: header
      description: >-
        A unique identifier for the request. If the request is sent multiple
        times with the same idempotency key, the server will return the same
        response as the first request. The idempotency key is valid for 24
        hours.
      required: false
      schema:
        type: string
  schemas:
    GenieSendMessageRequest:
      type: object
      required:
        - content
      properties:
        content:
          type: string
          description: The natural-language question or instruction to send to Genie.
          example: What is the latest balance on my BTC vault?
    GenieChatMessage:
      type: object
      required:
        - id
        - sessionId
        - role
        - content
      properties:
        id:
          type: string
          description: The unique identifier of the message.
          example: 0a237534-399f-4487-a869-72567b71511a
        sessionId:
          type: string
          description: The Genie session this message belongs to.
          example: 7c1b2e1c-1c2a-4f3a-9c2d-2e0a8a1f8e1a
        role:
          type: string
          description: >-
            Who produced the message — `USER` for the customer-supplied query,
            `ASSISTANT` for the Genie response.
          example: ASSISTANT
        content:
          type: string
          description: The natural-language body of the message.
          example: The latest balance on the BTC vault is 0.4231 BTC.
        createdAt:
          type: integer
          format: int64
          description: Message creation timestamp in epoch milliseconds.
          example: 1735603200000
    ErrorSchema:
      type: object
      properties:
        message:
          type: string
        code:
          type: number
  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
  responses:
    Error:
      description: Error Response
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorSchema'

````