Skip to content
中文

Retrieve a conversation item

Call Create conversation first, then replace conv_123 with the returned conv_ ID. Replace item_123 with an item ID from Create conversation items or List conversation items.

GET/model/v1/conversations/{conversation_id}/items/{item_id}● Supported

Official docs ↗

Request parameters

  • conversation_idstringrequired

    path: Id of the conversation, the id of the object returned by createConversation (it looks like conv_...). Another tenant's conversation, an unknown id and a deleted conversation all answer 404 conversation_not_found.

  • item_idstringrequired

    path: Id of the item to read, from the id of an item returned by createConversationItems or listConversationItems. An id that is not in the conversation answers 404.

Returns

200

Reads a single conversation item by ID.

Platform errors (auth, rate limits, validation) and OCR errors use problem+json; other model call errors follow the endpoint's own format (OpenAI or Anthropic) — see error codes

Request

curl
# Call Create conversation first, then replace conv_123 with the returned conv_ ID. Replace item_123 with an item ID from Create conversation items or List conversation items.
curl https://api.deepraxis.com/model/v1/conversations/conv_123/items/item_123 \
  -H "Authorization: Bearer $PRAXIS_API_KEY"
Python
# Call Create conversation first, then replace conv_123 with the returned conv_ ID. Replace item_123 with an item ID from Create conversation items or List conversation items.
from openai import OpenAI

client = OpenAI(
    base_url="https://api.deepraxis.com/model/v1",
    api_key="$PRAXIS_API_KEY",
)

item = client.conversations.items.retrieve(
    "item_123",
    conversation_id="conv_123",
)
TypeScript
// Call Create conversation first, then replace conv_123 with the returned conv_ ID. Replace item_123 with an item ID from Create conversation items or List conversation items.
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.deepraxis.com/model/v1",
  apiKey: "$PRAXIS_API_KEY",
});

const item = await client.conversations.items.retrieve("item_123", {
  conversation_id: "conv_123",
});

Response 200

{
  "type": "message",
  "role": "user",
  "content": [
    {
      "type": "input_text",
      "text": "你好"
    }
  ],
  "id": "item_c4f0566ddc4f4208b79a7c9c",
  "status": "completed"
}

Response

HTTP 200

The item

application/json

Name Type Description
$ object