Generate a new Service Provider signing key pair for the given SAML SSO connector. Create the key inactive (default) to stage a graceful rotation — register its certificate at the identity provider before activating it. Creating an active key deactivates the currently active key atomically.
POST
/api/sso-connectors/{id}/signing-keys
curl \
--request POST 'https://[tenant_id].logto.app/api/sso-connectors/{id}/signing-keys' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"active":false}'
Request examples
{
"active": false
}
Response examples (201)
{
"id": "string",
"certificate": "string",
"createdAt": 42.0,
"expiresAt": 42.0,
"active": true,
"fingerprints": {
"sha256": {
"formatted": "string",
"unformatted": "string"
}
}
}