Threads

Create Threads

POST/threads
Authorization
Response

Successful Response

Body
any
Request
const response = await fetch('/threads', {
    method: 'POST',
    headers: {},
});
const data = await response.json();

Create Threads

POST/v1/threads
Authorization
Response

Successful Response

Body
any
Request
const response = await fetch('/v1/threads', {
    method: 'POST',
    headers: {},
});
const data = await response.json();

Get Thread

GET/threads/{thread_id}
Authorization
Path parameters
thread_id*Thread Id
Response

Successful Response

Body
any
Request
const response = await fetch('/threads/{thread_id}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}

Get Thread

GET/v1/threads/{thread_id}
Authorization
Path parameters
thread_id*Thread Id
Response

Successful Response

Body
any
Request
const response = await fetch('/v1/threads/{thread_id}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}