Skip to main content
POST
Create service account

Authorizations

Authorization
string
header
required

Authorization code flow with PKCE-S256. RFC 8628 device flow is also supported.

Body

application/json
name
string
required
Minimum string length: 1
project_id
string
required

Owning project. An org or an account owns it.

Pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
orgId
string

Optional. Must match the project's owning org.

Pattern: ^[0-9A-HJKMNP-TV-Z]{26}$

Response

Created

accountId
string
required
createdAt
string<date-time>
required
name
string
required
status
string
required
systemManaged
boolean
required
$schema
string<uri>
read-only

A URL to the JSON Schema for this object.

Example:

"/api/v1/schemas/ServiceAccount.json"

orgId
string
deprecated

Deprecated: use the project's owner. Removal after 2027-05-01.

project_id
string

Owning project.