Get a deployment by ID or URL
Changed onRetrieves information for a deployment either by supplying its ID (id property) or Hostname (url property). Additional details will be included when the authenticated user or team is an owner of the deployment.
Request
- Base URL: https://api.vercel.com
- URL: https://api.vercel.com/v13/deployments/{idOrUrl}
- Auth: HTTP bearer
Path parameters
The unique identifier or hostname of the deployment.
Query parameters
When true, the response includes the gitSource object with the commit SHA, branch name, and connected repository metadata. Defaults to false.
The Team identifier to perform the request on behalf of.
The Team slug to perform the request on behalf of.
Response
Returns a reduced view of the deployment with public information only. Private fields are omitted when the requester is not the deployment owner. Returns the reduced deployment view for anonymous (vcn_) callers. Pool-team details are withheld.
Example response
{
"id": "dpl_89qyp1cskzkLrVicDaZoDbjyHuDJ",
"readyState": "READY"
}Changes
- breaking
added
subschema #2subschema #3to the response bodyoneOflist for the response status - info
removed
subschema #2subschema #3from the response bodyoneOflist for the response status
- breaking
- info
added the non-success response with the status
- info