Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

Get deployment

GET/v1/deployments/{deploymentId}Get deployment

⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️

Returns a deployment by ID, including its current status derived from the underlying VM state.

Parameters

deploymentIdstringpathrequired

pattern ^(cpv_)?([cC][^\s-]{8,}|[a-z0-9]+)$

Responses

200Deployment retrieved.application/json
object
dataobjectrequired
Show child attributes
createdAtstring · date-timerequired
envVarsobject

Environment variable names present on this compute version. Values are always redacted as "[redacted]" and must not be treated as deployed secret values.

foundryVersionIdstringrequired
idstringrequired
portMappingobject
Show child attributes
httpnumber
previewDomainnull | stringrequired
serviceIdstringrequired
statusstringrequired
typestringrequired

const "deployment"

urlstring · urirequired
Example response
{
  "data": {
    "createdAt": "2026-06-09T00:00:00Z",
    "envVars": {
      "additionalProp1": "[redacted]"
    },
    "foundryVersionId": "string",
    "id": "string",
    "portMapping": {
      "http": 0
    },
    "previewDomain": "string",
    "serviceId": "string",
    "status": "string",
    "type": "deployment",
    "url": "https://example.com"
  }
}
401Missing or invalid authorization token.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
403Insufficient permissions to access this resource.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
404Deployment not found.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
429Rate limit exceeded.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
Documentation menu