v1

latestOpenAPI 3.0.02026-07-174565114.3 KB
threads

get/threads/{id}

Path parameters

idstring required

Query parameters

contextKeystring
includeInternalboolean

Response

metadataobject
projectIdstring required
generationStage'IDLE' | 'CHOOSING_COMPONENT' | 'FETCHING_CONTEXT' | 'HYDRATING_COMPONENT' | 'STREAMING_RESPONSE' | 'COMPLETE' | 'ERROR' | 'CANCELLED'
statusMessagestring
namestring
idstring required
createdAtstring date-time required
updatedAtstring date-time required

Example response

{
  "messages": [
    {
      "content": [
        {
          "resource": {
            "uri": "file:///path/to/document.pdf",
            "name": "project-documentation.pdf",
            "description": "Project documentation for Q4 2024",
            "mimeType": "application/pdf",
            "text": "The contents of the document...",
            "blob": "SGVsbG8gV29ybGQh"
          }
        }
      ]
    }
  ]
}