Deployments

Get the last deployment for a specific project

Changed on
get/projects/{id}/last-deployment

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/projects/{id}/last-deployment
  • Auth: none declared

Path parameters

idinteger required

Project ID

Response

Last deployment details

branchstring nullable
cancelled_reasonstring nullable
commit_authorstring nullable
commit_dateinteger nullable
commit_hashstring nullable
commit_messagestring nullable
created_atinteger required
environment_idinteger required
finished_atinteger nullable
idinteger required
is_currentboolean required
project_idinteger required
screenshot_locationstring nullable
started_atinteger nullable
statusstring required
tagstring nullable
urlstring required

Example response

{
  "environment": {
    "service_urls": [
      {
        "port": 3000,
        "service": "web",
        "url": "https://web--production.localho.st"
      }
    ]
  }
}

Changes

    • warning

      added the new image_pull_failed enum value to the ///// response property for the response status

    • warning

      added the new registry_unavailable enum value to the ///// response property for the response status

    • info

      added the optional property to the response with the status