Skip to main content
GET
/
responses
/
{id}
Get a response by ID
curl --request GET \
  --url https://api.cloudglue.dev/v1/responses/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "object": "response",
  "status": "in_progress",
  "created_at": 123,
  "model": "<string>",
  "instructions": "<string>",
  "output": [
    {
      "type": "message",
      "role": "assistant",
      "content": [
        {
          "type": "output_text",
          "text": "<string>",
          "annotations": [
            {
              "type": "cloudglue_citation",
              "collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "segment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "start_time": 123,
              "end_time": 123,
              "context": "<string>",
              "relevant_sources": [
                "<string>"
              ],
              "visual_scene_description": [
                "<string>"
              ],
              "scene_text": [
                "<string>"
              ],
              "speech": [
                "<string>"
              ],
              "audio_description": [
                "<string>"
              ]
            }
          ]
        }
      ]
    }
  ],
  "usage": {
    "input_tokens": 123,
    "output_tokens": 123,
    "total_tokens": 123
  },
  "error": {
    "message": "<string>",
    "type": "<string>",
    "code": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

The ID of the response to retrieve

Response

Response details

id
string<uuid>

Unique identifier for the response

object
enum<string>

Object type identifier

Available options:
response
status
enum<string>

Current status of the response

Available options:
in_progress,
completed,
failed,
cancelled
created_at
integer

Unix timestamp of when the response was created

model
string

The model used for the response

instructions
string | null

The system instructions used

output
object[] | null

The generated output messages

usage
object

Token usage statistics for the response

error
object

Error details when the response status is 'failed'