Create a new user in your project
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Unique user identifier (auto-generated) |
| projectId | string | Yes | Project this user belongs to |
| appUserId | string | No | Your app’s custom user identifier |
| string | No | User email address | |
| monthlyRevenue | number | No | User’s monthly revenue (null initially) |
| country | string | No | User’s country |
| userPlatform | string | No | Platform |
| locale | string | No | User’s locale |
| createdAt | string | Yes | User creation timestamp (ISO 8601) |
| updatedAt | string | Yes | Last update timestamp (ISO 8601) |
| Status Code | Description | Example Response |
|---|---|---|
| 400 | Bad request - Missing required fields | {"error": "userPlatform and locale are required"} |
| 401 | Unauthorized - Invalid API key | {"error": "Unauthorized"} |
| 500 | Internal server error | {"error": "Failed to create user"} |