Assistants

Get Assistants

Returns a list of assistants.

API Reference docs - https://platform.openai.com/docs/api-reference/assistants/listAssistants

GET/assistants
Authorization
Response

Successful Response

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

Create Assistant

POST/assistants
Authorization
Response

Successful Response

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

Get Assistants

Returns a list of assistants.

API Reference docs - https://platform.openai.com/docs/api-reference/assistants/listAssistants

GET/v1/assistants
Authorization
Response

Successful Response

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

Create Assistant

POST/v1/assistants
Authorization
Response

Successful Response

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

Delete Assistant

DELETE/assistants/{assistant_id}
Authorization
Path parameters
assistant_id*Assistant Id
Response

Successful Response

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

Delete Assistant

DELETE/v1/assistants/{assistant_id}
Authorization
Path parameters
assistant_id*Assistant Id
Response

Successful Response

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