Constructor
Parameters
Returns
ServiceUserApiKeysClient
Methods
createServiceUserApiKey()
Create a new API key for a service user.
The caller must have ManageAccountServiceUsers permission.
Parameters
Request-specific configuration.
Returns
ApiKeyWithTokenResponse
listServiceUserApiKeys()
List API keys for a service user, optionally filtered by status.
Parameters
Request-specific configuration.
Returns
PaginatedResponseApiKeyResponse
revokeServiceUserApiKey()
Revoke an API key for a service user.
Returns 404 if the key is not found, 409 if already revoked.
Parameters
Request-specific configuration.
Returns
ApiKeyResponse
rotateServiceUserApiKey()
Rotate an API key for a service user.
Creates a new key. By default revokes the old key; set revoke_current=false
for graceful rollover where both keys remain active temporarily.
Returns 404 if the key is not found, 400 if the key is not active.
Parameters
Request-specific configuration.
Returns
ApiKeyWithTokenResponse