Users

Create users in batch

post

This method allows creating multiple users in a single request.

Authorizations
x-api-keystringRequired
Header parameters
x-tenant-idstring · uuidOptional

Tenant id (uuid v4)

Body
usersstring[]Required

An array containing user objects with the following fields: external_user_id, email, first_name, last_name, and phone

Responses
post
/api/v1/public/users/batch
POST /api/v1/public/users/batch HTTP/1.1
Host: 
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 18

{
  "users": [
    "text"
  ]
}
[
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "email": "[email protected]",
    "avatar_id": "https://example.com/avatar.jpg",
    "first_name": "Vova",
    "last_name": "Smith",
    "external_user_id": "ext_user_123456",
    "full_name": "Vova Smith",
    "phone": "+1234567890",
    "status": "Active",
    "created_at": "2024-09-02T21:00:00.000Z",
    "userVacations": [
      {
        "start_at": "2024-09-02T21:00:00.000Z",
        "end_at": "2024-09-15T21:00:00.000Z"
      }
    ]
  }
]

Last updated