Issue an API Key for a New Service Account
A 3-step recipe with Temporal. We can help you get access.
Recipe · 3 steps
Issue an API Key for a New Service Account
with Temporal · Developer Identity & Credential Management
Create a Service Account and issue an API key bound to it.
- Create the Service Account from the supplied name and access spec.
- List Service Accounts to resolve the id of the account just created so it can own the new API key.
- Create an API key owned by the new Service Account, using its id as ownerId and serviceaccount as the ownerType.
What you'll need to have ready
- bearerToken: API key used as the Bearer token for Authorization.
- serviceAccountName: The display name for the new Service Account.
- access: The access spec object granting the Service Account scopes.
- keyDisplayName: The display name for the API key to issue.
- keyExpiryTime: RFC3339 timestamp at which the API key expires.
For your developer
Arazzo workflow temporal:issue-service-account-key, 3 operations: createServiceAccount → listServiceAccounts → createApiKey. Specs on APIs.io.