Verify an email address without putting the token in the URL
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”object
The one-time token from the verification email’s URL fragment.
Responses
Section titled “Responses”Email verified successfully.
object
Example
{ "message": "Email verified successfully. You can now log in."}Token missing, malformed, invalid, expired, already used, or replaced by a newer verification email.
object
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "This verification token has expired.", "code": "verification_token_required", "requestId": "req_abc123"}Internal server error.
Standard error envelope. code is the stable machine identifier for
client branching and i18n. The wording of error is a human-readable
fallback and is not part of the contract. Specialized responses keep
narrower code enums where clients already branch on them.
object
Human-readable error message.
Stable machine code. Prefer this over matching on error. The
values this API can answer with are listed in the ApiErrorCode
schema of the raw document at
https://api.aetherpush.com/openapi.yaml. The field stays an
open string here so that a release adding a value does not
invalidate this response.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "code": "not_found", "requestId": "req_abc123"}