メインコンテンツへスキップ
POST
https://{yourDomain}
/
dbconnections
/
signup
Sign Up User
curl --request POST \
  --url https://{yourDomain}/dbconnections/signup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "client_id": "YOUR_CLIENT_ID",
  "email": "newuser@example.com",
  "password": "SecurePassword123!",
  "connection": "Username-Password-Authentication",
  "given_name": "John",
  "family_name": "Doe",
  "user_metadata": {
    "plan": "premium"
  }
}
'
{
  "_id": "507f1f77bcf86cd799439011",
  "email": "newuser@example.com",
  "email_verified": false
}

承認

Authorization
string
header
必須

The access token received from the authorization server in the OAuth 2.0 flow.

ボディ

application/json
client_id
string
必須

Your application's Client ID

email
string<email>
必須

The user's email address

password
string
必須

The user's desired password. Must meet the connection's password strength requirements.

connection
string
必須

The name of the database connection (e.g., 'Username-Password-Authentication')

username
string

The user's desired username (if the connection requires usernames)

given_name
string

The user's given (first) name

family_name
string

The user's family (last) name

name
string

The user's full name

nickname
string

The user's nickname

picture
string<uri>

URL of the user's profile picture

user_metadata
object

Custom user metadata (key-value pairs)

レスポンス

User created successfully

_id
string

The user's unique identifier

email
string

The user's email address

email_verified
boolean

Whether the email has been verified