curl -X POST https://api.yourservice.com/api/v1/step3/store-verification-items/session/email \
-H "Content-Type: application/json" \
-d '{
"sessionToken": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"email": "newemail@example.com"
}'
{
"success": true,
"message": "Email updated successfully"
}
Step 3 — Source Items
Update Session Email
Update the student’s email in both the Redis session and the database.
POST
/
step3
/
store-verification-items
/
session
/
email
curl -X POST https://api.yourservice.com/api/v1/step3/store-verification-items/session/email \
-H "Content-Type: application/json" \
-d '{
"sessionToken": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"email": "newemail@example.com"
}'
{
"success": true,
"message": "Email updated successfully"
}
Used when the email needs to be corrected or set after the session was initiated.
No authentication required for this endpoint.
Request Body
string
required
The session token returned from
POST /verify.string
required
The new email address. Must be a valid email format.
Error Codes
| Code | HTTP | Description |
|---|---|---|
MISSING_DATA | 400 | sessionToken or email is missing |
INVALID_EMAIL | 400 | Email does not match a valid format |
SESSION_NOT_FOUND | 404 | Session is expired or not found |
INTERNAL_ERROR | 500 | Unexpected server error |
curl -X POST https://api.yourservice.com/api/v1/step3/store-verification-items/session/email \
-H "Content-Type: application/json" \
-d '{
"sessionToken": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"email": "newemail@example.com"
}'
{
"success": true,
"message": "Email updated successfully"
}

