Sign Up
Creates a new user via email/password and issues tokens. When iframe_sso is true, the response returns data.oauth_token only; otherwise access_token, refresh_token, and expires_in.
Headers
- Type: stringX
- Correlation - Id Optional caller-provided correlation ID; echoed in responses when present.
Body·
required
application/json
- Type: stringclientrequired
OAuth client ID provided by the business. Required to identify the client application for signup. The OAuth application must have the Advance Auth scope enabled.
- Type: booleaniframe
_sso When true, enables iframe SSO flow; response returns data.oauth_token only. redirect_uri is required when true.
- Type: string Format: uriredirect
_uri Required when iframe_sso is true. Must match one of the OAuth application's configured redirect URIs.
- Type: objectuser
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for post/api2/basic_auth/signup
curl https://SERVER_NAME_GOES_HERE/api2/basic_auth/signup \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"client": "CLIENT_GOES_HERE",
"iframe_sso": false,
"user": {
"email": "test@example.com",
"password": "PASSWORD_GOES_HERE",
"password_confirmation": "PASSWORD_GOES_HERE",
"signup_channel": "WebEmailBasicAuth",
"terms_and_conditions": true,
"privacy_policy": true
}
}'
{
"data": {
"access_token": "ACCESS_TOKEN_GOES_HERE",
"refresh_token": "REFRESH_TOKEN_GOES_HERE",
"expires_in": 86400
}
}