Skip to main content

Get Chat

This endpoint retrieves details of a specific chat within an assistant session in TaskingAI.

Endpoint

  • Method: GET
  • URL: https://api.tasking.ai/v1/assistants/{assistant_id}/chats/{chat_id}

Path Parameters

ParameterTypeDescription
assistant_idstringThe unique identifier for the assistant.
chat_idstringThe unique identifier for the chat.

Header Parameters

All TaskingAI API requests require the following headers:

HeaderTypeDescription
Content-TypestringThe content type of the request. Set to application/json.
AuthorizationstringAPI key for authorization in the format Bearer $TASKINGAI_API_KEY. The key can be obtained in the project settings in your TaskingAI console.

Response Example

{
"status": "success",
"data": {
"object": "Chat",
"chat_id": "chat_1",
"assistant_id": "assistant_1",
"name": "New Chat",
"metadata": {},
"updated_timestamp": 1730210035453,
"created_timestamp": 1730210035453
}
}