Visibility: public · internal ( OpenAPI Custom Extension: x-visibility )
Generate a new client_secret for a service account. The secret is returned only in this response and cannot be retrieved again. Store it securely.
Only tenant administrators can create credentials.
A maximum of 5 active credentials are allowed per service account. This limit supports zero-downtime rotation: create a new credential, deploy it to your systems, then delete the old one.
If expiresAt is omitted, the organization’s default credential lifetime is applied. The value cannot exceed the org-level maximum.
Bearer token authentication using OAuth2/OIDC tokens
Service account resource identifier.
Requested expiration timestamp. Cannot exceed the org-level maximum credential lifetime. Defaults to org default if omitted.
Credential created. The client_secret is included in this response only and cannot be retrieved again.
Credential metadata plus the client_secret. The secret is only returned at creation time.
Server-generated UUID. Immutable.
Credential identifier. Server-generated, immutable.
"cred-001"
The parent service account this credential belongs to.
"sa-pipeline-prod"
Current credential status.
Note: if the parent service account is disabled, all its credentials are effectively unusable regardless of their individual status.
active, expired "active"
User ID of the administrator who created this credential.
"user-admin-001"
Timestamp when the credential was created.
The client secret value. Store securely — this value cannot be retrieved again.
"plt_cs_cred-001_x9y8z7w6v5u4..."
Server-defined URL for this resource.
"/v1/iam/service-accounts/sa-pipeline-prod/credentials/cred-001"
Credential expiration timestamp. If not set at creation, defaults to the organization's configured maximum credential lifetime. Cannot exceed the org-level maximum.
Timestamp of the last successful token mint using this credential. Null if never used.
IP address from which this credential was last used.
"203.0.113.42"