Autional Autional
API Reference GitHub autional.com →

POST /auth/register/check-email

Check if an email is already registered before user registration to prevent duplicate registration and temporary email abuse. Supports GET and POST methods. References: OWASP ASVS V2.2.

Authentication None application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
email query string No Email address (GET method)

Request Body

Schema: dto.CheckEmailRequest

FieldTypeRequiredExampleConstraintsDescription
email string Yes user@example.com Email

Responses

StatusDescriptionSchema
200Email availability check resultdto.CheckEmailResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.CheckEmailResponse

Check email availability result

FieldTypeRequiredExampleConstraintsDescription
available boolean No True Is available
email string No user@example.com Email

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No