Skip to Content
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
/management/v1/users/machine

Request Body

application/json
  1. body
userName*user_name
name*name
description?description
accessTokenType?access_token_type
Value in"ACCESS_TOKEN_TYPE_BEARER""ACCESS_TOKEN_TYPE_JWT"
userId?|

optionally set your own id unique for the user.

Response Body

Success

application/json
  1. response
userId?user_id
details?
Example Request
curl -X POST 'https://example.com/management/v1/users/machine' \  -H 'Content-Type: application/json' \  -d '{  "userName": "string",  "name": "string"}'
Example Response200
{  "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?