---
title: "Create a dashboard"
method: POST
path: "/api/v1/public/dashboards"
tags: ["Dashboards"]
---

# Create a dashboard

`POST /api/v1/public/dashboards`

## Request

- Base URL: `https://app.traceroot.ai`
- URL: `https://app.traceroot.ai/api/v1/public/dashboards`
- Auth: HTTP bearer

Create a dashboard in a project the authenticated user can write to.

Requires MEMBER role or higher in the project's workspace (the write
service decides). Idempotent on the dashboard name within the project.

Args:
    request (Request): Incoming request (rate-limit plumbing).
    response (Response): Outgoing response (rate-limit plumbing).
    auth (AccountStampedAuth): Account-scope user auth (session token or
        CLI access JWT); its resolved ``user_id`` becomes the actor.
    payload (CreateDashboardRequest): The dashboard to create.
    _live (None): Write-path liveness gate (blocks a revoked JWT session).

Returns:
    CreateDashboardResponse: The created (or matched) dashboard.

## Request body

- CreateDashboardRequest: Body for creating a dashboard in a project.
  - `description` string, nullable
  - `name` string, required
  - `project_id` string, required

## Response `200`

Successful Response

- CreateDashboardResponse: The created (or idempotently matched) dashboard.
  - `created` boolean, required
  - `id` string, required
  - `name` string, required
  - `project_id` string, required

## Other responses

- `400`: Invalid request
- `401`: Authentication failed or session revoked
- `403`: Insufficient role or wrong credential kind
- `404`: Not found
- `422`: Validation Error
- `503`: Write service unavailable

---

[API](https://skmtc.dev/traceroot/apis/traceroot-public-api.md) - [All operations](https://skmtc.dev/traceroot/apis/traceroot-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/traceroot/apis/traceroot-public-api/revisions/ce6aef96c0d6?raw)
