Users API
Create User
Create a user
POST
/
users
/
create
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"
}
}
Authorizations
Your duohub API key. Type: str
Body
application/json
Response
201
application/json
User created successfully
The response is of type object
.
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"
}
}
Assistant
Responses are generated using AI and may contain mistakes.