Verify an email address without putting the token in the URL
POST
/v1/auth/verify-email
const url = 'https://api.aetherpush.com/v1/auth/verify-email';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"token":"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.aetherpush.com/v1/auth/verify-email \ --header 'Content-Type: application/json' \ --data '{ "token": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" }'Consumes a one-time verification token from a JSON body and marks the account’s email as verified. The dashboard removes the token from its URL fragment before making this request, so neither request URL nor access logs contain the token.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
token
required
The one-time token from the verification email’s URL fragment.
string
Responses
Section titled “Responses”Email verified successfully.
Media typeapplication/json
object
message
required
string
Example
{ "message": "Email verified successfully. You can now log in."}Token missing, malformed, invalid, expired, or already used.
Media typeapplication/json
object
error
required
string
code
required
string
requestId
required
Unique identifier for the request, also exposed as the X-Request-Id response header.
string
Example
{ "error": "This verification token has expired.", "code": "verification_token_required", "requestId": "req_abc123"}Internal server error.
Media typeapplication/json
object
error
required
Human-readable error message.
string
requestId
Unique identifier for the request, also exposed as the X-Request-Id response header.
string
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}