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

X-API-Key
string
header
required

Your duohub API key. Type: str

Body

application/json
firstName
string
required

User's first name

lastName
string
required

User's last name

id
string

Optional unique identifier for the user. If not provided, a UUID will be generated.

email
string

User's email address

phone
string

User's phone number

Response

201
application/json
User created successfully
status
enum<string>
required

Response status

Available options:
success
data
object
required