Where the secret key is
GET
Where the instance secret key comes from, which seals the secrets the server stores (webhook signing secrets): the key file the server made on its first start (with its path, to back up), a variable the operator set, or none. Never the key itself. Needs the admin.roles permission.
bearerheader
AuthorizationBearer <JWT>A service account's token (ccms_sat_…, issued by POST /service-accounts/{id}/tokens), or, for local use and demo mode, the server's shared CCMS_API_TOKEN.
X-Ccms-User?stringDemo mode only (CCMS_AUTH_MODE=demo): the user ID to act as. The bearer token is still required; without demo mode the header is refused (400).
application/vnd.api+json- response
data*id is always instance. Never the key itself.
curl -X GET 'http://localhost:3000/secret-key'Example Response
{ "data": { "type": "SecretKey", "id": "string", "attributes": { "origin": "file", "file": "string", "variable": "CCMS_SECRET_KEY", "generate": true } }}