Apps

Generate or rotate an app's backend secret

Returns a `pidsk_…` secret **once** — only its SHA-256 hash is stored, so an existing secret can never be read back, only replaced. Afterwards, code exchange for this app requires the secret. Backend-only: never ship it in frontend code. Owners only.

POST
/apps/{id}/secret

Returns a pidsk_… secret once — only its SHA-256 hash is stored, so an existing secret can never be read back, only replaced. Afterwards, code exchange for this app requires the secret. Backend-only: never ship it in frontend code. Owners only.

Authorization

cookieAuth
pid_access<token>

JWT access token set by /auth/google/callback or /auth/refresh

In: cookie

Path Parameters

id*string
Formatuuid

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08/secret"
{  "secret": "pidsk_9f2c…",  "prefix": "pidsk_9f2c41"}