API referenceApplies to: Workspaces with access management
POST /api/v1/service-accounts
Create an identity for workspace automation.
Access
An administrator needs serviceaccounts:create permission in this workspace.
Choose the right workspace credential. Ask your workspace administrator whether this API is available in your workspace.
For this example, set ACCESS_TOKEN to a user’s personal access token (PAT) with the permission above. A machine-client OAuth token also needs active permission enforcement and a role binding that grants this action to the client. Ask your administrator to confirm both.
Request
JSON body requires name (1-63 characters): lowercase letters, digits, and hyphens, starting and ending with a letter or digit. Optional displayName and description explain its use. Set up its access before using a key.
Response
HTTP 201. Example response with sample values:
If the request fails
For 401, check the workspace URL and token. For 403, ask your administrator to check your access. For 400, check the name. For 409, a service account with that name exists.
Return to the API endpoint directory.Last modified on December 2, 2026