How to Create New Users
Humata provides a straightforward API solution for organizations to handle user sign-up and login processes.
This endpoint allows organization admins to create new user accounts.
Authorizations
Body
first_namestringRequiredExample:
Johnlast_namestringRequiredExample:
DoeemailstringRequiredExample:
[email protected]passwordstringRequiredExample:
passwordbypass_email_verificationbooleanOptionalExample:
trueResponses
201
User created successfully.
application/json
post
/v1/usersPOST /api/v1/users HTTP/1.1
Host: app.humata.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 117
{
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"password": "password",
"bypass_email_verification": true
}201
User created successfully.
{
"id": "9294544b-2b6a-4c93-976c-d1910b8c1423",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]"
}This endpoint allows organization admins to generate a One-Time Password (OTP) token for their users. OTP tokens expire after 60 minutes.
Authorizations
Body
emailstringRequiredExample:
[email protected]providerstringOptionalExample:
emailResponses
200
Token generated successfully.
application/json
post
/v1/users/tokenPOST /api/v1/users/token HTTP/1.1
Host: app.humata.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"email": "[email protected]",
"provider": "email"
}200
Token generated successfully.
{
"token": "fjlgkspwzytqxnh...."
}Last updated