Activate User Account
Used to activate a user account after creation, typically for email verification or account setup completion.
API Endpoint
| Property | Value |
|---|---|
| Request Method | POST |
| Request URL | https://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
| Field | Type | Description |
|---|---|---|
| Content-Type | application/json | Data type, must be application/json. |
| x-blocks-key | string | Project key for authentication. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| code | string | Yes | Activation code sent to the user. |
| password | string | Yes | The password for the user account. |
| captchaCode | string | No | CAPTCHA verification code for security. |
| mailPurpose | string | No | Purpose of activation mail (e.g., account_activation). |
| preventPostEvent | boolean | No | Prevents post-activation events if set to true. |
| projectKey | string | No | The 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
| Field | Type | Description |
|---|---|---|
| isSuccess | boolean | Indicates if activation was successful. |
| data | object | Activated user details. |
| errors | object | Any errors encountered during activation. |