Create a new user
Users
Create User
Creates a new user with the specified project_user_id
POST
Create a new user
Overview
Creates a new user with the specifiedproject_user_id. This endpoint allows you to register users in your project and optionally set their properties.
Authentication
This endpoint requires authentication via the following HTTP headers:X-Clix-Project-ID: Your project IDX-Clix-API-Key: Your Clix Secret API Key
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
project_user_id | string | Yes | Unique identifier for the user in your project |
properties | object | No | User properties as key-value pairs where values can be string, number, boolean, or null |
Example Request
Response
Success Response (200 OK)
Returns the created user properties:Error Responses
400 Bad Request
Returned when:project_user_idis missing or invalid- Request body is malformed
401 Unauthorized
Authentication failed or invalid API key.Notes
- The
project_user_idmust be unique within your project - If a user with the same
project_user_idalready exists, this endpoint will update the existing user’s properties - User properties are optional but recommended for personalization and segmentation
- The response returns only the properties object, not the full user object
Authorizations
Project ID for authentication
API Key for authentication
Body
application/json
User data to create
Response
User created successfully
Response containing the created user properties
User properties as key-value pairs