OpenFolia

Where the secret key is

GET
/secret-key

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.

Authorization

bearer
headerAuthorizationBearer <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.

Header Parameters

X-Ccms-User?string

Demo 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).

Response Body

application/vnd.api+json
  1. response
data*

id is always instance. Never the key itself.

Example Request
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    }  }}