POST / Create a new workspace
createWorkspace
Request
{
"name": "Agent",
"default_assistant": {"assistant_name": "leadsGeneric", "context_message": "Questions related to leads."},
"assistants": [
{"assistant_name": "SendEmail", "context_message": "Questions related to sending emails."},
{"assistant_name": "GeneratePostcard", "context_message": "Questions related to generating postcards."}
]
} Request bodyapplication/json
4 fields
application/json| Field | Type | Description |
|---|---|---|
namerequired | string | Name of the workspace |
default_assistant | object | Assistant object |
assistant_name | string | Name of the assistant |
context_message | string | Context message for the assistant |
assistantsrequired | array | List of assistants for the workspace |
routing_model | string | Routing model. Only GPT-4o and later models are supported. GPT4-4o mini is also supported. |
Response 200application/json
4 fields
200application/jsonOk.
| Field | Type | Description |
|---|---|---|
namerequired | string | Name of the workspace |
default_assistant | object | Assistant object |
assistant_name | string | Name of the assistant |
context_message | string | Context message for the assistant |
assistantsrequired | array | List of assistants for the workspace |
routing_model | string | Routing model. Only GPT-4o and later models are supported. GPT4-4o mini is also supported. |