Reference / Governance

create a machine principal.

POST /v1/service-accounts
Secret API key operationId: create_service_account

Authorization

Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.

Request body · required

  • description string
  • enabled boolean
  • name string required
  • scopes string[]

Responses

201 Created

Request

curl -X POST "http://localhost:8080/v1/service-accounts" \
  -H "Content-Type: application/json" \
  -d '{
  "description": "string",
  "enabled": false,
  "name": "string",
  "scopes": [
    "string"
  ]
}'

Try it

live request
POST http://localhost:8080/v1/service-accounts

Request body

application/json