Skip to main content
GET
/
agents
/
responses
/
{id}
JavaScript
import Smithery from '@smithery/api';

const client = new Smithery({
  apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted
});

const response = await client.experimental.agents.responses.get('id');

console.log(response.id);
{
  "id": "<string>",
  "object": "response",
  "created_at": 0,
  "completed_at": 0,
  "status": "queued",
  "model": "<string>",
  "output": [
    {
      "id": "<string>",
      "type": "<string>",
      "role": "<string>",
      "content": [
        {
          "type": "<string>",
          "text": "<string>"
        }
      ],
      "status": "in_progress"
    }
  ],
  "usage": {
    "input_tokens": 0,
    "output_tokens": 0,
    "total_tokens": 0
  },
  "error": {
    "code": "<string>",
    "message": "<string>"
  },
  "background": true,
  "instructions": "<string>",
  "previous_response_id": "<string>",
  "metadata": {}
}

Authorizations

Authorization
string
header
required

Smithery API key as Bearer token

Path Parameters

id
string
required

Response

Response found

id
string
required

Response ID

object
string
default:response
required
Allowed value: "response"
created_at
integer
required

Unix timestamp of creation

Required range: -9007199254740991 <= x <= 9007199254740991
completed_at
integer | null
required

Unix timestamp of completion

Required range: -9007199254740991 <= x <= 9007199254740991
status
enum<string>
required

Response status

Available options:
queued,
in_progress,
completed,
failed,
incomplete
model
string
required

Model used

output
object[]
required

Output items

usage
object
required

Token usage

error
object
required

Error details if failed

background
boolean
required

Whether running in background

instructions
string | null
required

System instructions used

previous_response_id
string | null
required

Previous response ID

metadata
object
required

Request metadata