POST
/v1/assistantsAssistants
Long-lived agents with tools, instructions, and a model. Drop-in compatible with the OpenAI Assistants shim.
Request
- HTTP
- POST
- URL
- /v1/assistants
- Auth
- api_key
Try it
curl https://api.fightclub.pro/v1/assistants \
-H "Authorization: Bearer $FC_API_KEY" \
-d '{"name":"Code Reviewer","model":"fc:openai/gpt-4o-mini","instructions":"Review pull requests."}'Parameters
| Name | Type | Description |
|---|---|---|
| name* | string | Assistant name. |
| model* | string | Model alias. |
| instructions | string | System prompt. |
| tools | array | function / code_interpreter / file_search. |
Response fields
| Name | Type | Description |
|---|---|---|
| id | string | Assistant ID (asst_*). |
| created_at | integer | Unix timestamp. |
Errors
- 401
invalid_api_key, Missing or revoked key.
See the full error reference.