POST
/signup
application/json
POST /signup HTTP/1.1Content-Type: application/jsonAuthorization: Basic VEVOQU5UX0NMSUVOVF9JRDpURU5BTlRfQ0xJRU5UX1NFQ1JFVA==Host: sample.portal.tencentciam.com{"username" : "MOCK_USERNAME","password" : "MOCK_PASSWORD"}
POST /signup HTTP/1.1Content-Type: application/jsonAuthorization: Basic VEVOQU5UX0NMSUVOVF9JRDpURU5BTlRfQ0xJRU5UX1NFQ1JFVA==Host: sample.portal.tencentciam.com{"email" : "MOCK_USERNAME@example.com","email_otp_token" : "MOCK_EMAIL_OTP_TOKEN","email_otp" : "MOCK_EMAIL_OTP","password" : "MOCK_PASSWORD","nickname" : "MOCK_NICKNAME"}
POST /signup HTTP/1.1Content-Type: application/jsonAuthorization: Basic VEVOQU5UX0NMSUVOVF9JRDpURU5BTlRfQ0xJRU5UX1NFQ1JFVA==Host: sample.portal.tencentciam.com{"phone_number" : "13612345678","phone_number_otp_token" : "MOCK_PHONE_NUMBER_OTP_TOKEN","phone_number_otp" : "MOCK_PHONE_NUMBER_OTP"}
Term | Description |
Authorization | The HTTP Basic authentication request header has the format Basic <credentials>. Here, Basic is a fixed string, and <credentials> is calculated as base64(url_encode(client_id) + ":" + url_encode(client_secret)). A single space separates Basic and <credentials>. |
JSON Path | Data Type | Description |
username | String | A username can contain English letters, digits, and underscores. It must start with a letter and have a maximum length of 32 characters. |
password | String | User password. If a password is set, it must comply with the password policy of the username-password authentication source associated with the application. |
phone_number | String | The user's mobile phone number must be an 11-digit number from one of the three major domestic carriers. When passing this parameter, you must also pass the two parameters phone_number_otp_token and phone_number_otp. |
phone_number_otp_token | String | The otp_token returned by the server after the SMS verification code is sent successfully. |
phone_number_otp | String | The OTP Captcha received by the user's mobile phone. |
email | String | The user's email address. When passing this parameter, you must also pass the two parameters email_otp_token and email_otp. |
email_otp_token | String | The otp_token returned by the server after the email verification code is sent successfully. |
email_otp | String | The OTP Captcha received by the user's email. |
name | String | User name. |
nickname | String | User nickname. |
zoneinfo | String | User time zone, such as Asia/Shanghai or Europe/Paris. |
locale | String | User locale information, such as zh-CN or en-US. |
HTTP/1.1 200 OKContent-Type: application/json{"sub" : "MOCK_USER_ID"}
Field | Data Type | Description |
sub | String | Unique user identifier. |
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "misconfigured","error_description" : "Sign up flow of the application is not enabled."}
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "invalid_request","error_description" : "Missing required sign-up attribute(s)."}
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "invalid_request","error_description" : "Unconfigured sign-up attribute(s) found."}
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "invalid_request","error_description" : "Unknown attribute(s) found."}
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "invalid_username"}
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "duplicate_username"}
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "malformed_phone_number"}
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "duplicate_phone_number"}
phone_number_otp_token is incorrect or has expired, or the parameters used during registration do not match those used when sending the verification code (for example, the phone numbers are different).HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "bad_phone_number_otp_token"}
phone_number_otp is incorrect or has expired.HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "bad_phone_number_otp"}
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "malformed_email"}
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "duplicate_email"}
email_otp_token is incorrect or has expired, or the parameters used during registration do not match those used when the verification code is sent (for example, the email addresses are different).HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "bad_email_otp_token"}
email_otp is incorrect or has expired.HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "bad_email_otp"}
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "misconfigured","error_description" : "No password auth source is associated with the application."}
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "invalid_password"}
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback