Messenger
Rotate an identity secret
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the settings:write ability
Path parameters
secretstringrequiredId of the identity verification secret, starting with isk_, such as isk_01jx2m8k4t. Find it with GET /identity-secrets.
Body
application/jsonpublic_keystringThe new public key as PEM text, required for RS256, ES256 and EdDSA secrets.
Maximum length: 16384
Response 201
CreateddataobjectrequiredShow child attributesHide child attributes
algorithmstringrequiredThe signing algorithm identity tokens are checked with: HS256 (shared secret), RS256, ES256 or EdDSA (public key or key set).
audiencestring | nullrequiredAn extra aud value accepted on tokens checked with this secret. Null when none is set.
created_atstringrequiredWhen it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
fingerprintstringrequiredA short mark to tell secrets apart: the last 4 characters of a shared secret, or 16 hex characters for a public key or key set.
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
issuerstring | nullrequiredFor a key set only: the issuer tokens must carry. Null otherwise or when it is read off the key set's address.
jwks_errorstring | nullrequiredFor a key set only: why the last fetch of the provider's keys failed. Null when it worked or the secret is not a key set.
jwks_fetched_atstring | nullrequiredFor a key set only: when the provider's keys were last fetched. Null when the secret is not a key set.
Format: date-time
jwks_urlstring | nullrequiredFor a key set only: the address the provider's public keys are fetched from. Null for a shared secret or a single public key.
kidstringrequiredThe value a token's kid header names this secret by; it equals the secret's id (starting with isk_). Empty for a key set, whose tokens carry the provider's key ids.
last_used_atstring | nullrequiredWhen a token was last checked with this secret. Null when it has never been used.
Format: date-time
namestringrequiredThe name the team gave the secret.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
retires_atstring | nullrequiredWhen a retiring secret stops working. Null unless status is retiring.
Format: date-time
revoked_atstring | nullrequiredWhen the secret was revoked. Null unless status is revoked.
Format: date-time
secretstringThe shared secret itself, shown only in this one answer; store it now. Absent for a public key or key set.
sourcestringrequiredWhat the secret verifies tokens with: shared_secret, public_key or jwks (a provider's key set).
statusstringrequiredWhere the secret stands: active, retiring (still works until retires_at) or revoked.
metaobjectrequiredShow child attributesHide child attributes
env_varstringrequiredThe environment variable your server should keep the secret in: DIMMI_IDENTITY_SECRET.
kid_env_varstringrequiredThe environment variable your server should keep the secret's kid in: DIMMI_IDENTITY_KID.
secret_shown_oncebooleanrequiredTrue when this answer carries a shared secret that will never be shown again; false when there was none to show.
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.