Skip to main content
POST
/
v1
/
auth
/
pw
/
user
Create Password User Handler
curl --request POST \
  --url http://localhost:8000/v1/auth/pw/user \
  --header 'Content-Type: application/json' \
  --data '
{
  "password": "<string>",
  "email_token": "<string>",
  "first_name": "<string>",
  "last_name": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "email": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "idp_type": "PASSWORD",
  "current_tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "current_tenant_role": "USER",
  "default_tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Documentation Index

Fetch the complete documentation index at: https://docs.knowledgestack.ai/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
password
string
required

Password

Minimum string length: 8
email_token
string
required

Email verification token

first_name
string | null

First name

last_name
string | null

Last name

Response

Successful Response

id
string<uuid>
required

User ID

email
string | null
required

Email address of the user

first_name
string | null
required

First name of the user

last_name
string | null
required

Last name of the user

idp_type
enum<string>
required

Identity provider type of the user

Available options:
PASSWORD,
GOOGLE,
TENANT
current_tenant_id
string<uuid>
required

Current tenant ID the user is logged into

current_tenant_role
enum<string>
required

Current tenant role of the user

Available options:
USER,
OWNER,
ADMIN
default_tenant_id
string<uuid>
required

Default tenant ID the user shall be logged into