cURL
curl --request GET \ --url https://api.peec.ai/customer/v1/chats/{chat_id}/content \ --header 'X-API-Key: <api-key>'
{ "id": "ch_61184892-36ad-4e1a-8178-3a83608f7711", "prompt": { "id": "pr_93f790de-5b7a-45ee-b782-61103c81f20d" }, "model": { "id": "gpt-4o-search" }, "brands_mentioned": [ { "id": "kw_915e742b-396d-4a86-ad57-8bc84e8c2232", "name": "Peec AI" } ], "messages": [ { "role": "user", "content": "Example Prompt" }, { "role": "assistant", "content": "Example Response" } ] }
Get a single chat
Required if using a company api key
"or_f45b94ba-5e35-4982-93ed-285e72ee14eb"
Success
"ch_61184892-36ad-4e1a-8178-3a83608f7711"
Show child attributes
[ { "role": "user", "content": "Example Prompt" }, { "role": "assistant", "content": "Example Response" }]