Mailchimp Developer LogoMailchimp Developer Wordmark

Transactional API

  • Allowlists

    Add, list, or delete from your Rejection Allowlist.

    • Exports

      Start an export, or get information on export jobs in progress.

      • IPs

        Request and manage Dedicated IPs for your account, and set up reverse DNS.

        • Inbound

          Manage your inbound domains and routes.

          • Messages

            Send, schedule, or get information on your emails.

            • Metadata

              Manage your custom metadata fields in your account.

              • Rejects

                Add, list, or delete from your Rejection Denylist.

                • Senders

                  Manage or get information about your sending domains.

                  • Verify domain

                    post

                    /senders/verify-domain

                    Sends a verification email in order to verify ownership of a domain. Domain verification is a required step to confirm ownership of a domain. Once a domain has been verified in a Transactional API account, other accounts may not have their messages signed by that domain unless they also verify the domain. This prevents other Transactional API accounts from sending mail signed by your domain.

                    body parameters

                    • keyrequired
                      string

                      a valid api key

                    • domainrequired
                      string

                      domain name at which you can receive email

                    • mailboxrequired
                      string

                      a mailbox at the domain where the verification email should be sent

                    Verify domain

                    const mailchimpClient = require("@mailchimp/mailchimp_transactional")(
                      "YOUR_API_KEY"
                    );
                    
                    const run = async () => {
                      const response = await mailchimpClient.senders.verifyDomain({
                        domain: "domain",
                        mailbox: "mailbox",
                      });
                      console.log(response);
                    };
                    
                    run();
                    
                    

                    Success Response

                    • HTTP Status 200

                      information about the verification that was sent

                      • status
                        string

                        "sent" indicates that the verification has been sent, "already_verified" indicates that the domain has already been verified with your account

                      • domain
                        string

                        the domain name you provided

                      • email
                        string

                        the email address the verification email was sent to

                    Example response

                    JSON
                    {
                      "status": "string",
                      "domain": "string",
                      "email": "user@example.com"
                    }
                  • Subaccounts

                    Manage your subaccounts, including the abilitiy to pause and resume sending.

                    • Tags

                      List, delete, or get information on your Tags and their sending statistics.

                      • Templates

                        Manage the Templates in your account.

                        • URLs

                          Manage your tracking domains. Some of these endpoints may be deprecated.

                          • Users

                            Get information about your account, or ping Transactional.

                            • Webhooks

                              Manage the webhooks in your account.

                              • Whitelists

                                Add, list, or delete from your Rejection Allowlist. These endpoints are being replaced with a series of functionally identical endpoints called /allowlists.