Create Service Account
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Create a service account.
A service account is a named workload identity that federation rules target. organization_role is developer (default) or admin; a rule may only be created or retargeted to grant org:admin scope when the target's organization_role is admin. Creating an admin-role service account requires an interactive credential (a user OAuth token or a Console session) — a workload may only create developer-role service accounts.
Headers
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
Request body
Example request
{
"name": "ci-deploy-bot"
}Response
Successful Response
Example response
{
"created_at": "2024-10-30T23:58:27.427722Z",
"id": "svac_01SDCCSbTxrXDpWc1phhtcfK",
"name": "ci-deploy-bot",
"updated_at": "2024-10-30T23:58:27.427722Z"
}