MageSmith
QueryCustomer · Magento 2.4.9

isEmailAvailable

isEmailAvailable is a Magento 2 GraphQL query in the Customer module. Check whether the specified email has already been used to create a customer account. It returns IsEmailAvailableOutput and requires an Authorization header (Bearer customer token).

Last verified: against Magento 2.4.9.

Returns

IsEmailAvailableOutput

Resolver class

Magento\CustomerGraphQl\Model\Resolver\IsEmailAvailable

Arguments

email String! Required

The email address to check.

Example request

Auto-generated from the SDL — paste-ready against your store's /graphql endpoint. Replace the host, store code, and any required values before running.

Headers

Content-Type
application/json
Store
default store view code; use 'default' for the single-store baseline
Authorization
Bearer <CUSTOMER_TOKEN> obtain from generateCustomerToken mutation

Query

query ($email: String!) {
  isEmailAvailable(email: $email) {
    is_email_available
  }
}

Variables

{
  "email": ""
}

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.