Table of Contents
Resend Email Verification Code #
Triggers a new verification email for a user who has not yet confirmed their address.
Endpoint #
POST https://api-test.10npay.com/User/email/send-confirmation
Headers #
Authorization: Bearer <access_token>Content-Type: application/json
Request Body #
{
"id": 123,
"email": "user@example.com"
}
| Field | Type | Description |
|---|---|---|
id |
integer | User identifier. Required. |
email |
string | Target email address. Required; must match the registration email. |
Responses #
- 204 No Content — request accepted. If the email was already verified, the server still returns 204 but no email is sent.
- 400 Bad Request — invalid email address or user state.
- 401 Unauthorized — missing/expired Bearer token.
- 404 Not Found — unknown
userId. - 5xx — transient error (retry with backoff).
Notes #
- Apply cooldowns or attempt counters in your UI to avoid spamming emails.
- If a new code is requested, only the latest code remains valid for
POST /User/email/confirm. - Use this endpoint whenever the user reports they did not receive the initial verification message.
