Deploy a chat to production
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer macaly_... |
| Parameter | Type | Description |
|---|---|---|
chatId | string | The chat ID to deploy |
| Field | Type | Description |
|---|---|---|
id | string | Database deployment ID |
url | string | The deployment URL |
status | string | Initial status (usually QUEUED or BUILDING) |
deploymentId | string | Vercel deployment ID |
| Status | Description |
|---|---|
| 200 | Deployment started |
| 400 | Bad request (e.g., no messages in chat) |
| 401 | Invalid or missing API key |
| 403 | No permission to deploy OR chat doesn’t belong to team |
| 404 | Chat not found |
| 500 | Internal server error |
GET /api/chat/{chatId}/deployment to poll for completionhosting.publish_macaly permissionGET /api/chat/{chatId}/deploymentstatus to become READY