Humata Docs
  • Getting started
    • Create an account
    • Account settings
      • Plan information
      • Pay-As-You-Go Spending Controls
    • How to set up single sign on
    • How to setup Multi-Factor Authentication
    • How to upload
      • How to move files
    • Website Import
    • Managing permissions and access
    • How to "Ask All"
    • Chat Settings
    • Custom Prompts
    • White Labeling
  • Humata API
    • How to get your API Key
    • How to Import Document
    • How to GET Pdf
    • How to Create Conversations
    • How to Ask
    • How to Download Data
    • How to Create New Users
    • FAQ
Powered by GitBook
On this page
  1. Humata API

How to Create New Users

PreviousHow to Download DataNextFAQ

Last updated 15 days ago

Humata provides a straightforward API solution for organizations to handle user sign-up and login processes.

  • POSTCreate a new user.
  • POSTGenerate an OTP Token for a User

Create a new user.

post

This endpoint allows organization admins to create new user accounts.

Authorizations
Body
first_namestringRequiredExample: John
last_namestringRequiredExample: Doe
emailstringRequiredExample: john@doe.com
passwordstringRequiredExample: password
bypass_email_verificationbooleanOptionalExample: true
Responses
201
User created successfully.
application/json
post
POST /api/v1/users HTTP/1.1
Host: app.humata.ai
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 117

{
  "first_name": "John",
  "last_name": "Doe",
  "email": "john@doe.com",
  "password": "password",
  "bypass_email_verification": true
}
201

User created successfully.

{
  "id": "9294544b-2b6a-4c93-976c-d1910b8c1423",
  "first_name": "John",
  "last_name": "Doe",
  "email": "john@doe.com"
}

Generate an OTP Token for a User

post

This endpoint allows organization admins to generate a One-Time Password (OTP) token for their users.

Authorizations
Body
emailstringRequiredExample: john@doe.com
providerstringOptionalExample: email
Responses
200
Token generated successfully.
application/json
post
POST /api/v1/users/token HTTP/1.1
Host: app.humata.ai
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 43

{
  "email": "john@doe.com",
  "provider": "email"
}
200

Token generated successfully.

{
  "token": "fjlgkspwzytqxnh...."
}