Projects
Reveal a project's plaintext API key
OWNER-only. The single endpoint that returns plaintext key material; called from the dashboard's copy button on click. Sets `Cache-Control: no-store` so no proxy caches the value.
GET
/api/projects/{projectId}/keyOWNER-only. The single endpoint that returns plaintext key material; called from the dashboard's copy button on click. Sets Cache-Control: no-store so no proxy caches the value.
Path Parameters
projectId*string
Project id (cuid)
Response Body
application/json
curl -X GET "https://loading/api/projects/string/key"{
"key": "dp_a1b2c3d4e5f6a7b8c9d0e1f2a3b4f7e8"
}Empty
Empty
Empty
Hard-delete a project DELETE
OWNER-only. Cascades sessions → slices → events → tracked users. The deletion is permanent — no soft-delete tombstone.
Regenerate a project's API key POST
OWNER-only. The old key stops working immediately — no grace window. The response carries the new plaintext key for one-time copy.