cURL
curl --request POST \ --url https://api.duohub.ai/users/create \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "firstName": "John", "lastName": "Doe", "email": "john.doe@example.com", "phone": "+1234567890" }'
{ "status": "success", "data": { "id": "4ac26c1c-1bbe-49d0-bf4c-77c091d75da1", "firstName": "John", "lastName": "Doe", "email": "john.doe@example.com", "owner": "d99e7428-40e1-7073-aa50-94cee086b518", "userID": "d99e7428-40e1-7073-aa50-94cee086b518", "createdAt": "2024-11-26T00:58:03.636719Z", "updatedAt": "2024-11-26T00:58:03.636719Z" } }
Create a user
Your duohub API key. Type: str
User's first name
User's last name
Optional unique identifier for the user. If not provided, a UUID will be generated.
User's email address
User's phone number
User created successfully
Response status
success
Show child attributes