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.

          • Add mailbox route

            post

            /inbound/add-route

            Add a new mailbox route to an inbound domain.

            body parameters

            • keyrequired
              string

              a valid api key

            • domainrequired
              string

              an existing inbound domain

            • patternrequired
              string

              the search pattern that the mailbox name should match

            • urlrequired
              string

              the webhook URL where the inbound messages will be published

            Add mailbox route

            const mailchimpClient = require("@mailchimp/mailchimp_transactional")(
              "YOUR_API_KEY"
            );
            
            const run = async () => {
              const response = await mailchimpClient.inbound.addRoute({
                domain: "domain",
                pattern: "pattern",
                url: "http://jada.org",
              });
              console.log(response);
            };
            
            run();
            
            

            Success Response

            • HTTP Status 200

              the added mailbox route information

              • id
                string

                the unique identifier of the route

              • pattern
                string

                the search pattern that the mailbox name should match

              • url
                string

                the webhook URL where inbound messages will be published

            Example response

            JSON
            {
              "id": "string",
              "pattern": "string",
              "url": "string"
            }
          • 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.

                  • 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.