Deploy
Endpoints
Deploy
Deploy a chat to production
POST
Deploy
Deploy a chat to production. Starts a deployment to Vercel and returns immediately.Documentation Index
Fetch the complete documentation index at: https://www.macaly.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Request
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer macaly_... |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
chatId | string | The chat ID to deploy |
Example Request
Response
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Database deployment ID |
url | string | The deployment URL |
status | "QUEUED" | "BUILDING" | Initial status |
deploymentId | string | Vercel deployment ID |
Status Codes
| 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 |
Notes
This endpoint returns immediately after starting the deployment. The deployment happens asynchronously on Vercel.
- Use
GET /api/chat/{chatId}/deploymentto poll for completion - Requires the
hosting.publish_macalypermission
Next Steps
After starting a deployment:- Poll for completion using
GET /api/chat/{chatId}/deployment - Wait for
statusto becomeREADY