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 Projects endpoint returns all projects owned by the currently authenticated user. Each project record includes its repository reference, build configuration, deployment URL, and custom domain status. Use this endpoint to build dashboards, populate project selectors, or audit your deployment inventory. GET /api/v1/projects

Authentication

This endpoint requires an active session. Include your session cookie with every request. See Authentication for details on obtaining a session token.

Request

This endpoint takes no query parameters or request body.

Response

A successful 200 OK response returns a JSON object with the following shape:
{
  "message": "Projects fetched successfully",
  "data": {
    "projects": [Project]
  }
}

Project Object

message
string
Human-readable status message — "Projects fetched successfully".
data
object
Wrapper object containing the result payload.

Example

curl -X GET https://your-domain.com/api/v1/projects \
  -H 'Content-Type: application/json' \
  -b 'better-auth.session_token=YOUR_SESSION_TOKEN'
Example response:
{
  "message": "Projects fetched successfully",
  "data": {
    "projects": [
      {
        "id": "clx4z2k0e0000abc123def456",
        "userId": "user_01hxyz",
        "name": "My Next.js App",
        "repositoryFullName": "acme/my-nextjs-app",
        "defaultBranch": "main",
        "buildCommand": null,
        "startCommand": null,
        "rootDirectory": null,
        "deploymentUrl": "https://my-nextjs-app.your-domain.com",
        "customDomain": "app.example.com",
        "customDomainVerified": true,
        "createdAt": "2024-06-01T12:00:00.000Z",
        "updatedAt": "2024-06-10T09:30:00.000Z"
      }
    ]
  }
}

Error Responses

StatusError MessageDescription
401"Unauthorized"No valid session cookie was provided.
500"failed to fetch projects"An unexpected server-side error occurred.

Build docs developers (and LLMs) love