Skip to main content

Activate User Account

Used to activate a user account after creation, typically for email verification or account setup completion.

API Endpoint

PropertyValue
Request MethodPOST
Request URLhttps://api.seliseblocks.com/idp/v1/Iam/Activate

Request

Request Example

curl -X POST 'https://api.seliseblocks.com/idp/v1/Iam/Activate' \
-H 'Content-Type: application/json' \
-H 'x-blocks-key: YOUR_PROJECT_KEY' \
-d '{
"code": "activation_code_123",
"password": "SecurePassword123!",
"captchaCode": "captcha_verification_code",
"mailPurpose": "account_activation",
"preventPostEvent": false,
"projectKey": "YOUR_PROJECT_KEY"
}'

Request Headers

FieldTypeDescription
Content-Typeapplication/jsonData type, must be application/json.
x-blocks-keystringProject key for authentication.

Request Body

FieldTypeRequiredDescription
codestringYesActivation code sent to the user.
passwordstringYesThe password for the user account.
captchaCodestringNoCAPTCHA verification code for security.
mailPurposestringNoPurpose of activation mail (e.g., account_activation).
preventPostEventbooleanNoPrevents post-activation events if set to true.
projectKeystringNoThe project key associated with the account.

Response

Success Response

Returns HTTP status 200 OK on successful activation.

{
"isSuccess": true,
"data": {
"itemId": "user_id_123",
"email": "user@example.com",
"active": true,
"isVarified": true
},
"errors": {}
}

Response Fields

FieldTypeDescription
isSuccessbooleanIndicates if activation was successful.
dataobjectActivated user details.
errorsobjectAny errors encountered during activation.