Get deployment
GET
Fetch a deployment to poll its status during a deploy.
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Path parameters
deploymentIdstringrequiredFunction deployment ID.
Responses
200Deployment details.
deploymentobjectrequired10 properties
idstringrequiredfunctionIdstringrequiredversionintegerrequiredMonotonically increasing deployment version, starting at 1.
statusstringrequiredStage of a function deployment.
One ofpendingbundlinguploadingpublishingactivefailedsupersededsourceCodeBytesintegerTotal size of the deployed source tree in bytes.
bundleBytesintegerSize of the built bundle in bytes. Null until the build finishes.
errorMessagestringFailure reason when status is 'failed'.
buildLogsstringWhat the build printed: dependency installation, the bundler's output, and the compiler's message when it failed. Returned when fetching a single deployment, omitted from the list. Read this first when a deploy fails —
errorMessageis often the outer wrapper's summary, and the line that names the broken import or the syntax error is here.deployedAtstring<date-time>createdAtstring<date-time>required
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject
404Deployment not found.
codestringrequiredmessagestringrequireddetailsobject