PromptFloe Developer Docs
API reference

Deployments

Trigger Netlify deploys for an app, list past deploys, and check deploy status. Requires deploy scope.

#The Deployment object

FieldTypeDescription
idstringdep_xxx
appIdstring
provider"netlify"Currently only Netlify is supported.
siteNamestringThe Netlify site name (subdomain).
urlstringLive URL on success.
status"queued"|"building"|"uploading"|"live"|"failed"
logsUrlstring | nullNetlify logs URL.
createdAtISO 8601
completedAtISO 8601 | null

#Create a deployment

POST/v1/deployments
FieldTypeDescription
appIdrequiredstringApp to deploy.
siteNamestringReuse an existing site by name. Creates a new one if omitted.
provider"netlify"Defaults to "netlify".
const deploy = await client.deployments.create({
  appId: 'app_abc',
});

console.log('queued:', deploy.id);

// Poll or subscribe to webhook
const final = await client.deployments.waitFor(deploy.id);
console.log('live at', final.url);

#Get a deployment

GET/v1/deployments/:id

#List deployments for an app

GET/v1/apps/:appId/deployments

#Deploy events via webhooks

Subscribe to deployment.queued, deployment.building, deployment.live, and deployment.failed for push delivery.

See Event types.

#Where to go next

PromptFloe developer docs