ZITADEL Docs
APIsCore ResourcesV1Organization Objects

AddMachineUser

Create User (Machine)

Deprecated: use user service v2 CreateUser instead.

Create a new user with the type machine for your API, service or device. These users are used for non-interactive authentication flows.

POST
/users/machine

Request Body

application/json

userName*string
name*string
description?string
accessTokenType?string
Value in"ACCESS_TOKEN_TYPE_BEARER" | "ACCESS_TOKEN_TYPE_JWT"
userId?string

optionally set your own id unique for the user.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://loading/users/machine" \  -H "Content-Type: application/json" \  -d '{    "userName": "string",    "name": "string"  }'
{
  "userId": "string",
  "details": {
    "sequence": 0,
    "creationDate": "1s",
    "changeDate": "1s",
    "resourceOwner": "string"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?