ZITADEL Docs
APIsCore ResourcesV1Organization Objects

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?|

optionally set your own id unique for the user.

[key: string]?never

Response Body

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": "2023-01-15T01:30:15.01Z",
    "changeDate": "2023-01-15T01:30:15.01Z",
    "resourceOwner": "string"
  }
}

Was this page helpful?