## Retrieve a model response

`responses.retrieve(strresponse_id, ResponseRetrieveParams**kwargs)  -> Response`

**get** `/api/v1/responses/{response_id}`

Retrieves a tenant-scoped stored Responses API response.

### Parameters

- `x_organization_id: Optional[str]`

- `response_id: str`

### Returns

- `class Response: …`

  - `id: str`

  - `object: Literal["response"]`

    - `"response"`

  - `created_at: Optional[int]`

    Unix timestamp (in seconds) when the response was created.

  - `status: Literal["completed", "failed", "in_progress", 3 more]`

    - `"completed"`

    - `"failed"`

    - `"in_progress"`

    - `"cancelled"`

    - `"queued"`

    - `"incomplete"`

  - `model: str`

    Public name of the model that generated the response.

  - `output: List[ResponseOutputItem]`

    Items the model generated, in order.

    - `type: str`

      Item type, such as `message`, `reasoning`, `function_call`, `mcp_call`, `file_search_call` or `web_search_call`. Fields beyond the ones listed depend on the type.

    - `id: Optional[str]`

      Identifier of the output item.

    - `status: Optional[str]`

      Status of the item, such as `completed` or `in_progress`.

    - `role: Optional[Literal["assistant"]]`

      Author of a `message` item.

      - `"assistant"`

    - `content: Optional[List[ResponseOutputContent]]`

      Content parts of a `message` item.

      - `type: str`

        Content part type: `output_text` for reply text, `refusal` for a refusal.

      - `text: Optional[str]`

        The reply text, on an `output_text` part.

      - `refusal: Optional[str]`

        The refusal message, on a `refusal` part.

      - `annotations: Optional[List[Dict[str, object]]]`

        Citations into `text`: `file_citation` for a file search source and `url_citation` (with `url` and `title`) for a web search source. Each covers its `[S#]` bracket and carries its `citation_id`.

    - `name: Optional[str]`

      Name of the tool called, on `function_call`, `mcp_call` and `mcp_approval_request` items.

    - `arguments: Optional[str]`

      JSON-encoded arguments for the tool, on `function_call`, `mcp_call` and `mcp_approval_request` items.

    - `call_id: Optional[str]`

      Identifier to answer a `function_call` with: send it back as the `call_id` of a `function_call_output` input item.

    - `server_label: Optional[str]`

      Label of the MCP server, on `mcp_call`, `mcp_approval_request` and `mcp_list_tools` items.

    - `approval_request_id: Optional[str]`

      The approval request this `mcp_call` answers, if it needed approval.

    - `output: Optional[str]`

      What the tool returned, on an `mcp_call` item.

    - `error: Optional[str]`

      Why the tool call failed, on `mcp_call` and `mcp_list_tools` items.

    - `tools: Optional[List[Dict[str, object]]]`

      Tools the server offers, on an `mcp_list_tools` item.

    - `summary: Optional[List[Dict[str, object]]]`

      Summary parts of a `reasoning` item, each with `type` and `text`.

    - `encrypted_content: Optional[str]`

      Opaque reasoning state to replay in a later request, on a `reasoning` item.

    - `queries: Optional[List[str]]`

      Search queries, on a `file_search_call` item.

    - `action: Optional[Dict[str, object]]`

      The search on a `web_search_call` item: `type`, `query`, `queries` and `sources` (the result URLs).

    - `results: Optional[List[Dict[str, object]]]`

      Matched chunks on a `file_search_call` item, or search results on a `web_search_call` item (`citation_id`, `title`, `url`, and when available `summary`, `highlights`, `published_date`, `author`). Send the item back unchanged to replay it without a new search.

  - `output_text: str`

    The text of every `output_text` part in `output`, joined. Reasoning and tool calls are excluded.

  - `error: Optional[ResponseError]`

    - `code: str`

    - `message: str`

  - `incomplete_details: Optional[ResponseIncompleteDetails]`

    - `reason: Optional[str]`

      Why the response is incomplete.

  - `usage: Optional[ResponseUsage]`

    - `input_tokens: int`

    - `output_tokens: int`

    - `total_tokens: int`

    - `input_tokens_details: Optional[Dict[str, object]]`

    - `output_tokens_details: Optional[Dict[str, object]]`

  - `previous_response_id: Optional[str]`

    The response this one continues, if any.

  - `store: Optional[bool]`

    Whether the response is stored for later retrieval.

  - `metadata: Optional[Dict[str, str]]`

### Example

```python
import os
from adaption import Adaption

client = Adaption(
    api_key=os.environ.get("ADAPTION_API_KEY"),  # This is the default and can be omitted
)
response = client.responses.retrieve(
    response_id="resp_123",
)
print(response.id)
```

#### Response

```json
{
  "id": "resp_123",
  "object": "response",
  "created_at": 1750000000,
  "status": "completed",
  "model": "qwen3.5-397b",
  "output": [
    {
      "type": "message",
      "id": "id",
      "status": "completed",
      "role": "assistant",
      "content": [
        {
          "type": "output_text",
          "text": "Once upon a time, a unicorn drifted to sleep on a cloud.",
          "refusal": "refusal",
          "annotations": [
            {
              "foo": "bar"
            }
          ]
        }
      ],
      "name": "get_weather",
      "arguments": "{\"city\":\"Paris\"}",
      "call_id": "call_123",
      "server_label": "docs",
      "approval_request_id": "approval_request_id",
      "output": "output",
      "error": "error",
      "tools": [
        {
          "foo": "bar"
        }
      ],
      "summary": [
        {
          "foo": "bar"
        }
      ],
      "encrypted_content": "encrypted_content",
      "queries": [
        "string"
      ],
      "action": {
        "foo": "bar"
      },
      "results": [
        {
          "foo": "bar"
        }
      ]
    }
  ],
  "output_text": "Once upon a time, a unicorn drifted to sleep on a cloud.",
  "error": {
    "code": "server_error",
    "message": "The model provider could not complete the request."
  },
  "incomplete_details": {
    "reason": "max_output_tokens"
  },
  "usage": {
    "input_tokens": 36,
    "output_tokens": 87,
    "total_tokens": 123,
    "input_tokens_details": {
      "cached_tokens": "bar"
    },
    "output_tokens_details": {
      "reasoning_tokens": "bar"
    }
  },
  "previous_response_id": "previous_response_id",
  "store": true,
  "metadata": {
    "foo": "string"
  }
}
```
