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

# Get Response

> Retrieve a specific response by its ID.



## OpenAPI

````yaml GET /responses/{id}
openapi: 3.0.0
info:
  title: Cloudglue API
  description: API for Cloudglue
  license:
    name: Apache License 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  version: 0.7.33
servers:
  - url: https://api.cloudglue.dev/v1
security:
  - bearerAuth: []
paths:
  /responses/{id}:
    get:
      tags:
        - Response
      summary: Get a response by ID
      description: Retrieve a specific response by its ID.
      operationId: getResponse
      parameters:
        - name: id
          in: path
          required: true
          description: The ID of the response to retrieve
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Response details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
        '404':
          description: Response not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: An unexpected error occurred on the server
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Response:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the response
        object:
          type: string
          enum:
            - response
          description: Object type identifier
        status:
          type: string
          enum:
            - in_progress
            - completed
            - failed
            - cancelled
          description: Current status of the response
        created_at:
          type: integer
          description: Unix timestamp of when the response was created
        model:
          type: string
          description: The model used for the response
        instructions:
          type: string
          nullable: true
          description: The system instructions used
        output:
          type: array
          nullable: true
          items:
            oneOf:
              - $ref: '#/components/schemas/ResponseOutputMessage'
              - $ref: '#/components/schemas/ResponseFunctionCall'
              - $ref: '#/components/schemas/ResponseQueryCall'
          description: >-
            The generated output items: assistant message(s), any echoed
            function_call items, and one cloudglue_query_call per read-only SQL
            query the agent ran over structured data. Clients should tolerate
            unknown output-item types.
        usage:
          $ref: '#/components/schemas/ResponseUsage'
          nullable: true
        error:
          $ref: '#/components/schemas/ResponseError'
          nullable: true
    Error:
      required:
        - error
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          description: >-
            Machine-readable error code, present on some errors. Known values:
            `usage_limit_reached` marks a 403 for an exhausted account usage
            limit (separate from credits); retrying will not succeed until the
            limit is raised or the period resets. More codes may be added, so
            treat unknown values as absent.
    ResponseOutputMessage:
      type: object
      properties:
        type:
          type: string
          enum:
            - message
          description: The type of output
        role:
          type: string
          enum:
            - assistant
          description: The role (always assistant for outputs)
        content:
          type: array
          items:
            $ref: '#/components/schemas/ResponseOutputContent'
          description: The content items in the output
    ResponseFunctionCall:
      type: object
      description: >-
        A function/tool call the model emitted (echoed back in output for
        client-executed tools).
      properties:
        type:
          type: string
          enum:
            - function_call
          description: The type of output item
        id:
          type: string
          description: Identifier for this output item
        call_id:
          type: string
          description: Correlates the call with its function_call_output
        name:
          type: string
          description: The name of the called function
        arguments:
          type: string
          description: JSON-encoded arguments to the function
    ResponseQueryCall:
      type: object
      description: >-
        A read-only SQL query the nimbus-002 agent ran over the structured
        (extracted) data. Result rows are not included in v1.
      properties:
        type:
          type: string
          enum:
            - cloudglue_query_call
          description: The type of output item
        id:
          type: string
          description: Identifier for this query call (query_<toolCallId>)
        status:
          type: string
          enum:
            - completed
            - failed
          description: Whether the query executed successfully
        sql:
          type: string
          description: The SQL SELECT that was executed
        row_count:
          type: integer
          description: Rows returned to the model after truncation
        total_rows:
          type: integer
          nullable: true
          description: True total when the engine saw the whole result; null when truncated
        truncated:
          type: boolean
          description: >-
            Whether the result was truncated (row or byte cap) before reaching
            the model
        error:
          type: string
          nullable: true
          description: Error message when status is failed; null otherwise
    ResponseUsage:
      type: object
      description: Token usage statistics for the response
      properties:
        input_tokens:
          type: integer
          description: Number of input tokens used
        output_tokens:
          type: integer
          description: Number of output tokens generated
        total_tokens:
          type: integer
          description: Total tokens used
    ResponseError:
      type: object
      description: Error details when the response status is 'failed'
      nullable: true
      properties:
        message:
          type: string
          description: Error message
        type:
          type: string
          description: Error type
        code:
          type: string
          description: Error code
    ResponseOutputContent:
      type: object
      properties:
        type:
          type: string
          enum:
            - output_text
          description: The type of content
        text:
          type: string
          description: The generated text
        annotations:
          type: array
          items:
            $ref: '#/components/schemas/ResponseAnnotation'
          description: Citations and references in the output
    ResponseAnnotation:
      type: object
      required:
        - type
        - file_id
        - start_time
      properties:
        type:
          type: string
          enum:
            - cloudglue_citation
          description: The type of annotation
        collection_id:
          type: string
          format: uuid
          description: >-
            The collection containing the cited content. Present when using
            `collections` source; omitted for `files` and `default` sources.
        file_id:
          type: string
          format: uuid
          description: The file containing the cited content
        segment_id:
          type: string
          format: uuid
          description: >-
            The specific segment cited. Present when a matching segment is
            found.
        start_time:
          type: number
          description: Start time of the cited content in seconds
        end_time:
          type: number
          description: >-
            End time of the cited segment in seconds. Present when a matching
            segment is found.
        context:
          type: string
          description: The text context of the citation
        relevant_sources:
          type: array
          items:
            type: string
          description: >-
            Relevant source descriptions (included when
            'cloudglue_citations.media_descriptions' is requested)
        visual_scene_description:
          type: array
          items:
            type: string
          description: >-
            Visual descriptions (included when
            'cloudglue_citations.media_descriptions' is requested)
        scene_text:
          type: array
          items:
            type: string
          description: >-
            On-screen text (included when
            'cloudglue_citations.media_descriptions' is requested)
        speech:
          type: array
          items:
            type: string
          description: >-
            Speech transcripts (included when
            'cloudglue_citations.media_descriptions' is requested)
        audio_description:
          type: array
          items:
            type: string
          description: >-
            Audio descriptions (included when
            'cloudglue_citations.media_descriptions' is requested)
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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