Documentation/Assistants

Assistants

Assistants

Create persistent AI assistants with custom instructions, tools, and file access.

POST /api/v1/assistants

Create Assistant

Create a new assistant with custom instructions and tools.

Parameters

NameTypeReqDescriptionDefault
modelstringYesModel ID—
namestringNoAssistant name—
instructionsstringNoSystem instructions—
toolsarrayNoEnabled tools—
GET /api/v1/assistants

List Assistants

List all assistants for the organization.

DELETE /api/v1/assistants/{assistant_id}

Delete Assistant

Delete an assistant.

GET /api/v1/assistants/{id}

Retrieve Assistant

Retrieve details for a specific assistant by its ID.

Parameters

NameTypeReqDescriptionDefault
namestringNoUpdated assistant name—
instructionsstringNoUpdated system instructions—
toolsarrayNoUpdated tools list—
POST /api/v1/assistants/{id}

Update Assistant

Update the configuration of an existing assistant.

Response Examples

Create Assistant (201)
{
  "id": "asst_abc123def456",
  "object": "assistant",
  "created_at": 1791815801,
  "name": "Code Helper",
  "description": "A helpful coding assistant",
  "model": "meedoo:latest",
  "instructions": "You are a helpful coding assistant.",
  "tools": [],
  "file_ids": [],
  "metadata": {}
}

Code Examples

List Assistants
curl https://api.meedoo.co/api/v1/assistants \
  -H "Authorization: Bearer YOUR_API_KEY"
Delete Assistant
import requests

resp = requests.delete(
    "https://api.meedoo.co/api/v1/assistants/asst_abc123",
    headers={"Authorization": "Bearer YOUR_API_KEY"}
)
print(f"Status: {resp.status_code}")
Retrieve Assistant
curl https://api.meedoo.co/api/v1/assistants/asst_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY"
Update Assistant
curl -X POST https://api.meedoo.co/api/v1/assistants/asst_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Updated Assistant Name",
    "instructions": "You are an even better coding assistant."
  }'
Create Assistant
curl -X POST https://api.meedoo.co/api/v1/assistants \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "meedoo:latest",
    "name": "Code Helper",
    "instructions": "You are a helpful coding assistant."
  }'