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.

                    • Get subaccount info

                      post

                      /subaccounts/info

                      Given the ID of an existing subaccount, return the data about it.

                      body parameters

                      • keyrequired
                        string

                        a valid api key

                      • idrequired
                        string

                        the unique identifier of the subaccount to query

                      Get subaccount info

                      const mailchimpClient = require("@mailchimp/mailchimp_transactional")(
                        "YOUR_API_KEY"
                      );
                      
                      const run = async () => {
                        const response = await mailchimpClient.subaccounts.info({ id: "id" });
                        console.log(response);
                      };
                      
                      run();
                      
                      

                      Success Response

                      • HTTP Status 200

                        the information about the subaccount

                        • id
                          string

                          a unique indentifier for the subaccount

                        • name
                          string

                          an optional display name for the subaccount

                        • notes
                          string

                          optional extra text to associate with the subaccount

                        • custom_quota
                          integer

                          an optional manual hourly quota for the subaccount. If not specified, the hourly quota will be managed based on reputation

                        • status
                          string

                          the current sending status of the subaccount Possible values: "active" or "paused".

                        • reputation
                          integer

                          the subaccount's current reputation on a scale from 0 to 100

                        • created_at
                          string

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

                        • first_sent_at
                          string

                          the date and time that the subaccount first sent as a UTC string in YYYY-MM-DD HH:MM:SS format

                        • sent_weekly
                          integer

                          the number of emails the subaccount has sent so far this week (weeks start on midnight Monday, UTC)

                        • sent_monthly
                          integer

                          the number of emails the subaccount has sent so far this month (months start on midnight of the 1st, UTC)

                        • sent_total
                          integer

                          the number of emails the subaccount has sent since it was created

                        • sent_hourly
                          integer

                          the number of emails the subaccount has sent in the last hour

                        • hourly_quota
                          integer

                          the current hourly quota for the subaccount, either manual or reputation-based

                        • last_30_days
                          object

                          stats for this subaccount in the last 30 days

                          Show Properties

                      Example response

                      JSON
                      {
                        "id": "string",
                        "name": "string",
                        "notes": "string",
                        "custom_quota": 0,
                        "status": "active",
                        "reputation": 0,
                        "created_at": "2019-08-24T14:15:22Z",
                        "first_sent_at": "2019-08-24T14:15:22Z",
                        "sent_weekly": 0,
                        "sent_monthly": 0,
                        "sent_total": 0,
                        "sent_hourly": 0,
                        "hourly_quota": 0,
                        "last_30_days": {
                          "sent": 0,
                          "hard_bounces": 0,
                          "soft_bounces": 0,
                          "rejects": 0,
                          "complaints": 0,
                          "unsubs": 0,
                          "opens": 0,
                          "unique_opens": 0,
                          "clicks": 0,
                          "unique_clicks": 0
                        }
                      }
                    • 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.