Projects
Regenerate a project's API key
OWNER-only. The old key stops working immediately — no grace window. The response carries the new plaintext key for one-time copy.
POST
/api/projects/{projectId}/regenerate-keyOWNER-only. The old key stops working immediately — no grace window. The response carries the new plaintext key for one-time copy.
Path Parameters
projectId*string
Project id (cuid)
Response Body
application/json
curl -X POST "https://loading/api/projects/string/regenerate-key"{
"key": "dp_5f3a2b1c9d8e7f6a4b2c0d1e3f5a7b9c"
}Empty
Empty
Empty
Reveal a project's plaintext API key GET
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.
Set the project's default display-name trait key PATCH
ADMIN+. The trait key is consulted as step 3 of the 4-step display-name resolution (see `resolveDisplayName`). Pass `null` in `traitKey` to reset.