Skip to main content

Endpoint

POST /api/sites/{siteId}/deploy

Request

curl -X POST https://beta-avallon.onrender.com/api/sites/1234567890/deploy \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"

Path Parameters

siteId
string
required
ID of the website to deploy

Response

success
boolean
Whether the deployment was successful
previewUrl
string
URL where the website is deployed
deploymentId
string
ID of the deployment

Example Response

{
  "success": true,
  "previewUrl": "https://preview.avallon.site/website-1234567890",
  "deploymentId": "deploy-1234567890"
}

Credits

This endpoint uses 0 credits (free).

Errors

error
string
Error message if deployment fails
code
string
Error code