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
| Name | Type | Req | Description | Default |
|---|---|---|---|---|
model | string | Yes | Model ID | — |
name | string | No | Assistant name | — |
instructions | string | No | System instructions | — |
tools | array | No | Enabled 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
| Name | Type | Req | Description | Default |
|---|---|---|---|---|
name | string | No | Updated assistant name | — |
instructions | string | No | Updated system instructions | — |
tools | array | No | Updated tools list | — |
POST
/api/v1/assistants/{id} Update Assistant
Update the configuration of an existing assistant.
Response Examples
{
"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."
}'