Skip to main content

Create an admin credential for a deployment.

POST 

/deployments/:id/credentials

Creates a service account client on the deployment's realm for administering that realm directly -- with the Keycloak Terraform provider, a provisioning script, an audit integration, or anything else that speaks Keycloak's admin API. Grants the realm-management roles given in roles, defaulting to realm-admin. The secret is included in this response, and can be read again later with deployment.credential.secret.read. See the read-back details on that method. Create a separate credential per holder so they can be revoked independently.

Request

Responses

The new credential, including its secret.