Create project
create_projectCreate a new project — the entity the embed/chat widget attaches to. A project must belong to a customer: pass customer_id, or customer_name to match an existing customer (case-insensitive) or create one. Returns the created project including its auto-generated embed_key (the pk_… publishable key the widget snippet uses). Call get_embed_snippet afterwards for the ready-to-paste . Requires a full-access (non-customer) role.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "create_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Project name | |
| active | No | Whether the project is active (default: true) | |
| currency | No | Optional project currency, e.g. EUR (default EUR) | |
| customer_id | No | Customer UUID the project belongs to. Provide this or customer_name. | |
| description | No | Optional project description | |
| hourly_rate | No | Optional hourly rate for this project (overrides the customer's default_hourly_rate). Admin only. | |
| customer_name | No | Customer name — matched case-insensitively against existing customers, otherwise a new customer is created. Used only if customer_id is omitted. | |
| chat_widget_enabled | No | Enable the AI chat tab in the embed widget (default: false) | |
| embed_allowed_origins | No | Origins allowed to load the widget, e.g. ["https://example.com"]. Defaults to none set. |