Self Sign-Up API
Base URL: https://localhost:9443/t/carbon.super/api/identity/user/v1.0
The WSO2 Identity Server - User Self-Sign-up API (version 1.0.0).
Download the OpenAPI definition (YAML)
Security schemes
BasicAuth: HTTP basic
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:9443/oauth/token, authorization URL https://localhost:9443/oauth/authorize
3 scopes
| Scope | Description |
|---|---|
read | Grants read access |
write | Grants write access |
admin | Grants read and write access to administrative information |
Get User Info
Export self user information
GET /me
This API is used to retrieve the stored claims, security questions, and consent receipts approved by the user.
Scope(Permission) required: None
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful operation | ExportedUser |
401 | Unauthorized request |
Search user ID by username
GET /pi-info
Returns the user ID of the given username. This ID can be used with the /pi-info endpoint.
Scope(Permission) required: internal_pi_info_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
username | query | string | Yes | Username pattern used to search for the user ID. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful operation | UserSearchResponse |
401 | Unauthorized request | |
404 | User not found |
Export user information by ID
GET /pi-info/{userId}
This API is used to retrieve the stored claims, security questions, and consent receipts approved by the user.
Scope(Permission) required: internal_pi_info_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
userId | path | string | Yes | Unique Identifier of user. First encode the user's username using the Base64 Encoder. Then encode the Base64 Encoded username using the URL Encoder. Use the result you get as the user ID. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful operation | ExportedUser |
401 | Unauthorized request | |
404 | User not found |
Self Register
Self register user
POST /me
This API is used for user self-registration.
In addition to the basic self-register API, WSO2 provides extensions for self-registration verification. Learn more about the extended self registration verification process and account confirmation methods.
Scope(Permission) required: None
Request body (required): application/json
Sends optional property parameters over email based on an email template.
Schema: SelfUserRegistrationRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
user | SelfRegistrationUser | ||
properties | array of Property |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful operation | array of SuccessfulUserCreation |
400 | Bad Request | array of Error |
409 | Conflict | array of Error |
500 | Server Error | Error |
Self resend code
POST /me/resend-code
This API is used to resend the confirmation code to the authenticated user if it is missing.
Scope(Permission) required: None
Request body (required): application/json
Sends property parameters such as the recovery scenario.
Schema: MeResendCodeRequest
1 property
| Name | Type | Required | Description |
|---|---|---|---|
properties | array of Property | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | string |
400 | Bad Request | Error |
500 | Server Error | Error |
Self validate code
POST /me/validate-code
This API is used to validate the code submitted by the authenticated user in a verification scenario.
Scope(Permission) required: None
Request body (required): application/json
The validation code retrieved for the verification scenario, and optional property parameters.
Schema: MeCodeValidationRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | |
properties | array of Property |
Responses
| Code | Description | Schema |
|---|---|---|
202 | Accepted | |
400 | Bad Request | Error |
500 | Server Error | Error |
Lite register user
POST /lite
This API is used for lite user self registration.
Scope(Permission) required: None
Request body (required): application/json
Sends optional property parameters over email based on an email template.
Schema: LiteUserRegistrationRequest
6 properties
Responses
| Code | Description | Schema |
|---|---|---|
201 | Successfully created | SuccessfulUserCreation |
400 | Bad Request | Error |
409 | Conflict | Error |
500 | Server Error | Error |
Validate code
POST /validate-code
This API is used to validate the code used by self registered users.
In addition to the basic code validation, WSO2 provides extensions for account confirmation. Learn more about the extended self registration verification process and account confirmation methods.
Scope(Permission) required: internal_user_code_mgt_create
Request body (required): application/json
The validation code retrieved after user self registration, and optional property parameters.
Schema: SelfUserRegistrationRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
user | SelfRegistrationUser | ||
properties | array of Property |
Responses
| Code | Description | Schema |
|---|---|---|
202 | Accepted | |
400 | Bad Request | Error |
500 | Server Error | Error |
Introspect code
POST /introspect-code
This API is used to validate the code used by self registered users and retrieve the details.
Scope(Permission) required: internal_user_code_mgt_view
Request body (required): application/json
The validation code retrieved after user self registration, and optional property parameters.
Schema: CodeValidationRequest
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ||
verifiedChannel | VerifiedChannel | Verified channel information | |
properties | array of Property |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | CodeValidateInfoResponse |
400 | Bad Request | Error |
500 | Server Error | Error |
Validate username
POST /validate-username
This API is used to check whether a given username is available for self registration.
Scope(Permission) required: None
Request body (required): application/json
Username for validation.
Schema: UsernameValidationRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
username | string | ||
properties | array of Property |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | UsernameValidateInfoResponse |
400 | Bad Request | Error |
500 | Server Error | Error |
Resend code
POST /resend-code
This API is used to resend the confirmation code if it is missing.
Scope(Permission) required: internal_user_code_mgt_create
Request body (required): application/json
Sends optional property parameters over email based on an email template.
Schema: ResendCodeRequest
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful | string |
400 | Bad Request | Error |
500 | Server Error | Error |
Schemas
SuccessfulUserCreation
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Status code of the operation. | |
message | string | Descriptive message regarding the operation. | |
notificationChannel | string | Account confirmation notification sent channel. | |
confirmationCode | string | Account confirmation notification sent channel. |
SelfRegistrationUser
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
username | string | ||
realm | string | ||
password | string | ||
claims | array of Claim |
SuccessfulUserCreationWithVerifiedClaims
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Status code of the operation. | |
message | string | Descriptive message regarding the operation. | |
notificationChannel | string | Account confirmation notification sent channel. | |
confirmationCode | string | Account confirmation notification sent channel. |
SuccessfulUserCreationWithoutVerifiedClaims
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Status code of the operation. | |
message | string | Descriptive message regarding the operation. | |
notificationChannel | string | Account confirmation notification sent channel. | |
confirmationCode | string | Account confirmation notification sent channel. |
SelfUserRegistrationRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
user | SelfRegistrationUser | ||
properties | array of Property |
LiteUserRegistrationRequest
Type: object
CodeValidationRequest
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ||
verifiedChannel | VerifiedChannel | Verified channel information | |
properties | array of Property |
MeCodeValidationRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | |
properties | array of Property |
VerifiedChannel
Type: object
Verified channel information
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | verified channel type | |
claim | string | verified channel claim |
UsernameValidationRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
username | string | ||
properties | array of Property |
UsernameValidateInfoResponse
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
statusCode | integer | status code |
CodeValidateInfoResponse
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
user | User | ||
recoveryScenario | string | ||
recoveryStep | string |
ResendCodeRequest
Type: object
BasicProfile
Type: object
BasicInfoEntry
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
claimUri | string | Claim Uri | |
value | string | Claim value |
ConsentReceipt
Type: object
15 properties
| Name | Type | Required | Description |
|---|---|---|---|
version | string | Yes | The version of this specification to which a receipt conforms. The value MUST be “KI-CR-v1.1.0” for this version of the specification. |
jurisdiction | string | Yes | The jurisdiction(s) applicable to this transaction. |
consentTimestamp | integer (int64) | Yes | Date and time of the consent transaction. The JSON value is expressed as the number of seconds since 1970-01-01 00:00:00 GMT |
collectionMethod | string | Yes | A description of the method by which consent was obtained. |
consentReceiptID | string | Yes | A unique number for each Consent Receipt. |
publicKey | string | The PII Controller’s public key. | |
language | string | Language in which the consent was obtained as for ISO 639-1:2002 [ISO 639]. | |
piiPrincipalId | string | Yes | PII Principal-provided identifier. E.g., email address. |
tenantDomain | string | Tenant domain of the service (SP). | |
state | string | Current state of the receipt. | |
piiControllers | array of piiController | Yes | An array that contains one or more items where each item represents one PII Controller. |
policyUrl | string | Yes | A link to the PII Controller’s privacy statement/policy and applicable terms of use in effect when the consent was obtained, and the receipt was issued. |
services | array of serviceResponse | Yes | An array that contains one or more items where each item represents one Service. |
sensitive | boolean | Yes | Indicates whether the consent interaction contains PII that is designated sensitive or not sensitive. |
spiCat | array of string | Yes | A listing of categories where PII data collected is sensitive. |
ExportedUser
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
basic | BasicProfile | ||
consents | array of ConsentReceipt | ||
security | Security |
piiController
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
piiController | string | Yes | Name of the first PII Controller who collects the data. This entity is accountable for compliance with the management of PII. The PII Controller determines the purpose(s) and type(s) of PII processing. |
contact | string | Yes | Contact name of the PII Controller. This field MUST contain a non-empty string. |
address | address | Yes | The physical address of PII controller. Postal address for contacting the PII Controller. This is complient with the schema https://schema.org/PostalAddress. |
email | string | Yes | Contact email address of the PII Controller. The direct email to contact the PII Controller regarding the consent or privacy contract. |
phone | string | Yes | Contact phone number of the PII Controller. The business phone number to contact the PII Controller regarding the consent. |
onBehalf | boolean | A PII Processor acting on behalf of a PII Controller or PII Processor. For example, a third-party analytics service would be a PII Processor on behalf of the PII Controller, or a site operator acting on behalf of the PII Controller. | |
piiControllerUrl | string | A URL for contacting the PII Controller. |
serviceResponse
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
service | string | The service or group of services being provided for which PII is collected. The name of the service for which consent for the collection, use, and disclosure of PII is being provided. | |
tenantDomain | string | Tenant domain of the SP | |
purposes | array of purposeResponse |
address
Type: object
The physical address of PII controller. Postal address for contacting the PII Controller. This is complient with the schema https://schema.org/PostalAddress.
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
addressCountry | string | ||
addressLocality | string | ||
addressRegion | string | ||
postOfficeBoxNumber | string | ||
postalCode | string | ||
streetAddress | string |
purposeResponse
Type: object
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
purpose | string | A short, clear explanation of why the PII item is required. | |
purposeCategory | array of string | Yes | The reason the PII Controller is collecting the PII. |
consentType | string | The type of the consent used by the PII Controller as their authority to collect, use or disclose PII. | |
piiCategory | array of piiCategoryNameList | Yes | A list of defined PII categories Ids. PII Category should reflect the category that will be shared as understood by the PII Principal. |
primaryPurpose | boolean | Indicates if a purpose is part of the core service of the PII Controller. Possible values are TRUE or FALSE. | |
termination | string | Yes | Conditions for the termination of consent. Link to policy defining how consent or purpose is terminated. |
thirdPartyDisclosure | boolean | Yes | Indicates if the PII Controller is disclosing PII to a third party. Possible values are TRUE or FALSE. |
thirdPartyName | string | Yes | The name or names of the third party to which the PII Processor may disclose the PII. |
piiCategoryNameList
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
piiCategory | string | ||
validity | string |
UserSearchResponse
Type: array of UserSearchEntry
Security
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
challengeQuestions | ChallengeQuestions | Challenge questions configured for the user. |
UsernameUpdateRequest
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
realm | string | Userstore domain of the User. | |
existingUsername | string | Existing username of the User. | |
newUsername | string | Expected new username of the User. |
Was this page helpful?