Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/nayalsaurav/deploy-your-app/llms.txt

Use this file to discover all available pages before exploring further.

The List Deployments endpoint returns a paginated snapshot of your most recent deployment activity across every project in your account. Each deployment object includes a fully embedded project relation, so you have everything you need — project name, repository, and deployment URL — in a single request without additional round-trips.

GET /api/v1/deployments

This endpoint requires an active session. Authentication is handled via a session cookie issued after sign-in. See the Authentication reference for details.

Request

This endpoint accepts no query parameters or request body. Results are automatically scoped to the authenticated user — you will never see deployments belonging to other accounts.

Response

A successful response returns HTTP 200 with the following shape:
{
  "message": "Deployments fetched successfully",
  "data": {
    "deployments": [ /* array of Deployment objects, each with an embedded project */ ]
  }
}

Deployment fields

data.deployments
array
Ordered array of up to 50 deployment objects, newest first.

Example

curl -X GET https://your-domain.com/api/v1/deployments \
  -H "Cookie: session=<your-session-token>"
Example response:
{
  "message": "Deployments fetched successfully",
  "data": {
    "deployments": [
      {
        "id": "clxyz123abc456def",
        "projectId": "clproj789ghi012jkl",
        "branch": "main",
        "commitHash": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2",
        "status": "SUCCESS",
        "url": "https://my-app.your-domain.com",
        "port": 3001,
        "logs": "[SYSTEM] Build completed successfully\n...",
        "error": null,
        "createdAt": "2024-11-01T12:00:00.000Z",
        "updatedAt": "2024-11-01T12:03:42.000Z",
        "completedAt": "2024-11-01T12:03:42.000Z",
        "project": {
          "id": "clproj789ghi012jkl",
          "name": "my-app",
          "repositoryFullName": "acme-org/my-app",
          "defaultBranch": "main",
          "deploymentUrl": "https://my-app.your-domain.com",
          "buildCommand": "npm run build",
          "startCommand": "npm start",
          "rootDirectory": null
        }
      }
    ]
  }
}

Error Responses

StatusErrorDescription
401UnauthorizedNo valid session cookie was provided.
500Failed to fetch deploymentsAn unexpected server-side error occurred.

Build docs developers (and LLMs) love