MutationContact · Magento 2.4.9
contactUs
contactUs is a Magento 2 GraphQL mutation in the Contact module. Send a 'Contact Us' email to the merchant. It returns ContactUsOutput and requires an Authorization header (Bearer customer token).
Last verified: against Magento 2.4.9.
Returns
Resolver class
Magento\ContactGraphQl\Model\Resolver\ContactUs
Arguments
An input object that defines shopper information.
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
Query
mutation ($input: ContactUsInput!) {
contactUs(input: $input) {
status
}
}Variables
{
"input": {
"comment": "",
"email": "",
"name": ""
}
}Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.