service-accounts
Issue an API key to a service account.
Mints a new sb_api_* key for the service account and returns its secret in api_key. The secret is shown only in this response; store it now, since no later call returns it.
A key does what the service account's role allows and takes no scope of its own; a body that names scope is refused. It lasts 365 days unless expires_in_days says otherwise, and never expires only when expires_in_days is explicitly null.
Requires the serviceAccountKeys.create permission, which only the admin and owner roles hold. Personal access tokens and federated tokens are refused whatever their role.
post/organizations/{organizationId}/service-accounts/{serviceAccountId}/keys
Request
- Base URLhttps://api.shorebird.dev/api/v1
- Auth
- HTTP bearer
- or HTTP bearer
Request body
Response
The new key, including its secret.
Changes
No recorded changes to this operation across all 1 revision of this API.