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.

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

                        • List templates

                          post

                          /templates/list

                          Return a list of all the templates available to this user.

                          body parameters

                          • keyrequired
                            string

                            a valid api key

                          • label
                            string

                            an optional label to filter the templates

                          List templates

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

                          Success Response

                          • HTTP Status 200

                            an array of structs with information about each template

                            • Array
                              object[]

                              the information on each template in the account

                              Show Properties

                          Example response

                          JSON
                          [
                            {
                              "slug": "string",
                              "name": "string",
                              "labels": [
                                "string"
                              ],
                              "code": "string",
                              "subject": "string",
                              "from_email": "string",
                              "from_name": "string",
                              "text": "string",
                              "publish_name": "string",
                              "publish_code": "string",
                              "publish_subject": "string",
                              "publish_from_email": "user@example.com",
                              "publish_from_name": "string",
                              "publish_text": "string",
                              "published_at": "2019-08-24T14:15:22Z",
                              "created_at": "2019-08-24T14:15:22Z",
                              "updated_at": "2019-08-24T14:15:22Z",
                              "is_broken_template": true
                            }
                          ]
                        • 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.