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.

      • Export denylist

        post

        /exports/rejects

        Begins an export of your rejection denylist. The denylist will be exported to a zip archive containing a single file named rejects.csv that includes the following fields: email, reason, detail, created_at, expires_at, last_event_at, expires_at.

        body parameters

        • keyrequired
          string

          a valid api key

        • notify_email
          string

          an optional email address to notify when the export job has finished.

        Export denylist

        const mailchimpClient = require("@mailchimp/mailchimp_transactional")(
          "YOUR_API_KEY"
        );
        
        const run = async () => {
          const response = await mailchimpClient.exports.rejects();
          console.log(response);
        };
        
        run();
        
        

        Success Response

        • HTTP Status 200

          information about the rejects export job that was started

          • id
            string

            the unique identifier for this Export. Use this identifier when checking the export job's status

          • created_at
            string

            the date and time that the export job was created as a UTC string in YYYY-MM-DD HH:MM:SS format

          • type
            string

            the type of the export job - activity, reject, or whitelist

          • finished_at
            string

            the date and time that the export job was finished as a UTC string in YYYY-MM-DD HH:MM:SS format

          • state
            string

            the export job's state - waiting, working, complete, error, or expired.

          • result_url
            string

            the url for the export job's results, if the job is completed.

        Example response

        JSON
        {
          "id": "string",
          "created_at": "2019-08-24T14:15:22Z",
          "type": "string",
          "finished_at": "2019-08-24T14:15:22Z",
          "state": "string",
          "result_url": "string"
        }
      • 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.

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