SmartGare
API referenceEndpoints

Activate a new signing key version

Generates a new key pair and signs every ticket issued from now with it. The version active until now is retired: it signs nothing more, and its tickets stay valid. **Required permission:** `ticketing.signing-key:write`

POST/ticketing/v1/signing-keys

Generates a new key pair and signs every ticket issued from now with it. The version active until now is retired: it signs nothing more, and its tickets stay valid.

Required permission: ticketing.signing-key:write

AuthorizationBearer <token>

In: header

Response Body

*/*

*/*

curl -X POST "https://example.com/ticketing/v1/signing-keys"
{  "activated_at": "2019-08-24T14:15:22Z",  "public_key_pem": "string",  "retired_version": 0,  "status": "ACTIVE",  "version": 0}