Skip to main content
You're reading Identity & Access Management 7.1.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release

Self Sign-Up API

Download OpenAPI (YAML)Version 1.0.0

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
ScopeDescription
readGrants read access
writeGrants write access
adminGrants 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

CodeDescriptionSchema
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

NameInTypeRequiredDescription
usernamequerystringYes

Username pattern used to search for the user ID.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
userIdpathstringYes

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

CodeDescriptionSchema
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
NameTypeRequiredDescription
userSelfRegistrationUser
propertiesarray of Property

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
propertiesarray of PropertyYes

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
codestringYes
propertiesarray of Property

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
emailstring
mobilestring
realmstring
preferredChannelstring

Allowed values: Mobile, Email

claimsarray of Claim
propertiesarray of Property

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
userSelfRegistrationUser
propertiesarray of Property

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
codestring
verifiedChannelVerifiedChannel

Verified channel information

propertiesarray of Property

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
usernamestring
propertiesarray of Property

Responses

CodeDescriptionSchema
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

2 properties
NameTypeRequiredDescription
userUser
propertiesarray of Property

Responses

CodeDescriptionSchema
200

Successful

string
400

Bad Request

Error
500

Server Error

Error

Schemas​

SuccessfulUserCreation​

Type: object

4 properties
NameTypeRequiredDescription
codestring

Status code of the operation.

messagestring

Descriptive message regarding the operation.

notificationChannelstring

Account confirmation notification sent channel.

confirmationCodestring

Account confirmation notification sent channel.

SelfRegistrationUser​

Type: object

4 properties
NameTypeRequiredDescription
usernamestring
realmstring
passwordstring
claimsarray of Claim

SuccessfulUserCreationWithVerifiedClaims​

Type: object

4 properties
NameTypeRequiredDescription
codestring

Status code of the operation.

messagestring

Descriptive message regarding the operation.

notificationChannelstring

Account confirmation notification sent channel.

confirmationCodestring

Account confirmation notification sent channel.

SuccessfulUserCreationWithoutVerifiedClaims​

Type: object

4 properties
NameTypeRequiredDescription
codestring

Status code of the operation.

messagestring

Descriptive message regarding the operation.

notificationChannelstring

Account confirmation notification sent channel.

confirmationCodestring

Account confirmation notification sent channel.

User​

Type: object

2 properties
NameTypeRequiredDescription
usernamestring
realmstring

Error​

Type: object

3 properties
NameTypeRequiredDescription
codestring
messagestring
descriptionstring

Property​

Type: object

2 properties
NameTypeRequiredDescription
keystring
valuestring

Claim​

Type: object

2 properties
NameTypeRequiredDescription
uristring
valuestring

SelfUserRegistrationRequest​

Type: object

2 properties
NameTypeRequiredDescription
userSelfRegistrationUser
propertiesarray of Property

LiteUserRegistrationRequest​

Type: object

6 properties
NameTypeRequiredDescription
emailstring
mobilestring
realmstring
preferredChannelstring

Allowed values: Mobile, Email

claimsarray of Claim
propertiesarray of Property

CodeValidationRequest​

Type: object

3 properties
NameTypeRequiredDescription
codestring
verifiedChannelVerifiedChannel

Verified channel information

propertiesarray of Property

MeCodeValidationRequest​

Type: object

2 properties
NameTypeRequiredDescription
codestringYes
propertiesarray of Property

VerifiedChannel​

Type: object

Verified channel information

2 properties
NameTypeRequiredDescription
typestring

verified channel type

claimstring

verified channel claim

UsernameValidationRequest​

Type: object

2 properties
NameTypeRequiredDescription
usernamestring
propertiesarray of Property

UsernameValidateInfoResponse​

Type: object

1 property
NameTypeRequiredDescription
statusCodeinteger

status code

CodeValidateInfoResponse​

Type: object

3 properties
NameTypeRequiredDescription
userUser
recoveryScenariostring
recoveryStepstring

ResendCodeRequest​

Type: object

2 properties
NameTypeRequiredDescription
userUser
propertiesarray of Property

MeResendCodeRequest​

Type: object

1 property
NameTypeRequiredDescription
propertiesarray of PropertyYes

BasicProfile​

Type: object

BasicInfoEntry​

Type: object

2 properties
NameTypeRequiredDescription
claimUristring

Claim Uri

valuestring

Claim value

ConsentReceipt​

Type: object

15 properties
NameTypeRequiredDescription
versionstringYes

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.

jurisdictionstringYes

The jurisdiction(s) applicable to this transaction.

consentTimestampinteger (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

collectionMethodstringYes

A description of the method by which consent was obtained.

consentReceiptIDstringYes

A unique number for each Consent Receipt.

publicKeystring

The PII Controller’s public key.

languagestring

Language in which the consent was obtained as for ISO 639-1:2002 [ISO 639].

piiPrincipalIdstringYes

PII Principal-provided identifier. E.g., email address.

tenantDomainstring

Tenant domain of the service (SP).

statestring

Current state of the receipt.

piiControllersarray of piiControllerYes

An array that contains one or more items where each item represents one PII Controller.

policyUrlstringYes

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.

servicesarray of serviceResponseYes

An array that contains one or more items where each item represents one Service.

sensitivebooleanYes

Indicates whether the consent interaction contains PII that is designated sensitive or not sensitive.

spiCatarray of stringYes

A listing of categories where PII data collected is sensitive.

ExportedUser​

Type: object

3 properties
NameTypeRequiredDescription
basicBasicProfile
consentsarray of ConsentReceipt
securitySecurity

piiController​

Type: object

7 properties
NameTypeRequiredDescription
piiControllerstringYes

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.

contactstringYes

Contact name of the PII Controller. This field MUST contain a non-empty string.

addressaddressYes

The physical address of PII controller. Postal address for contacting the PII Controller. This is complient with the schema https://schema.org/PostalAddress.

emailstringYes

Contact email address of the PII Controller. The direct email to contact the PII Controller regarding the consent or privacy contract.

phonestringYes

Contact phone number of the PII Controller. The business phone number to contact the PII Controller regarding the consent.

onBehalfboolean

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.

piiControllerUrlstring

A URL for contacting the PII Controller.

serviceResponse​

Type: object

3 properties
NameTypeRequiredDescription
servicestring

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.

tenantDomainstring

Tenant domain of the SP

purposesarray 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
NameTypeRequiredDescription
addressCountrystring
addressLocalitystring
addressRegionstring
postOfficeBoxNumberstring
postalCodestring
streetAddressstring

purposeResponse​

Type: object

8 properties
NameTypeRequiredDescription
purposestring

A short, clear explanation of why the PII item is required.

purposeCategoryarray of stringYes

The reason the PII Controller is collecting the PII.

consentTypestring

The type of the consent used by the PII Controller as their authority to collect, use or disclose PII.

piiCategoryarray of piiCategoryNameListYes

A list of defined PII categories Ids. PII Category should reflect the category that will be shared as understood by the PII Principal.

primaryPurposeboolean

Indicates if a purpose is part of the core service of the PII Controller. Possible values are TRUE or FALSE.

terminationstringYes

Conditions for the termination of consent. Link to policy defining how consent or purpose is terminated.

thirdPartyDisclosurebooleanYes

Indicates if the PII Controller is disclosing PII to a third party. Possible values are TRUE or FALSE.

thirdPartyNamestringYes

The name or names of the third party to which the PII Processor may disclose the PII.

piiCategoryNameList​

Type: object

2 properties
NameTypeRequiredDescription
piiCategorystring
validitystring

UserSearchResponse​

Type: array of UserSearchEntry

UserSearchEntry​

Type: object

2 properties
NameTypeRequiredDescription
usernamestring
userIdstring

Security​

Type: object

1 property
NameTypeRequiredDescription
challengeQuestionsChallengeQuestions

Challenge questions configured for the user.

ChallengeQuestions​

Type: array of string

Challenge questions configured for the user.

UsernameUpdateRequest​

Type: object

3 properties
NameTypeRequiredDescription
realmstring

Userstore domain of the User.

existingUsernamestring

Existing username of the User.

newUsernamestring

Expected new username of the User.

Was this page helpful?