# Billing Source: https://loops.so/docs/account/billing How Loops billing works, including plan tiers, contact limits, and how to manage your subscription. ## How billing works Loops billing is based on the number of subscribed contacts stored in your account. A contact is an email address that you send marketing emails to. Transactional recipients do not count as contacts (unless they are also sent marketing emails). Unsubscribed contacts do not count toward your plan. Your current billing plan is displayed in Stripe, which can be accessed by going to your [Billing page](https://app.loops.so/settings?page=billing) and clicking **Start/Manage subscription**. ### How we calculate your tier Your plan tier is always calculated based on the number of subscribed contacts you have **at the time of renewal**. If your subscribed contact count has increased above or decreased below your current plan limit, you will be notified via email and moved to the appropriate tier. If your team is part of a [billing group](/docs/account/group-billing), your tier is based on the combined subscribed contacts of all teams in the group. Billing works as a monthly subscription paid in advance. If your subscribed contact count moves you into a higher plan tier, your service will never be interrupted. You will simply be billed at the new rate when your next billing date arrives. Paid plans are never automatically downgraded to the free plan based on usage. If your subscribed contact count drops below 1,000, you will stay on your paid plan until you cancel it. Paid plans include benefits beyond higher contact limits, such as removing Loops branding from your emails, higher sending rate limits, and no cap on monthly email sends, so you may want to keep your paid plan even if your usage would fit within the free tier. To move to the free plan, cancel your subscription from your [Billing page](https://app.loops.so/settings?page=billing). ## Free plan The free plan is available to anyone with fewer than 1,000 subscribed contacts. On the free plan: * You can send up to 4,000 emails in any rolling 30-day window (campaigns, workflows, and transactional emails combined). * Loops branding is placed at the bottom of your emails. * You are limited to joining a maximum of 3 free teams. To join more, upgrade one of your teams to a paid plan, or [leave](/docs/account/team-members) or delete a team to free up space. Passing 1,000 subscribed contacts does not lock your account or stop you from adding new contacts. Sending to new contacts over the 1,000 limit is restricted. Your first subscribed 1,000 contacts receive email; new contacts added beyond the 1,000 limit will not receive campaign or workflow emails, but they will still be entered into the workflows that they qualify for. Transactional sends are unrelated to your subscribed contact count, and will continue to send even if you exceed the 1,000 subscribed contact limit. You can stay on the free plan indefinitely. Once you exceed 1,000 subscribed contacts, you'll be prompted to upgrade to a paid plan. You can upgrade at any time by clicking **Start subscription** at the top of your [Billing page](https://app.loops.so/settings?page=billing). > [!NOTE] > > It can take up to 24 hours for contact additions, removals, or subscription status changes to be reflected in your account total. ## Paid plans Paid plans are tiered by subscribed contact count. Unlike the free plan, paid plans have no limit on the number of emails you can send. Paid plan pricing is available on the [Loops pricing page](https://loops.so/pricing). ## Sending rate limits Free accounts can send up to 10 emails per second. Paid teams can send up to 1,000 emails per second. Emails over the limit stay queued until they can be sent. ## Multiple teams If you have more than one Loops team, you can pay for them in two ways: * Combine them with group billing to cover multiple teams with one subscription. Your plan tier is based on the combined subscribed contacts of all grouped teams, and free teams in the group get paid plan features. Learn more about [group billing](/docs/account/group-billing). * Give each team its own subscription, for example if your teams are billed to different companies. When you start a subscription, you may be redirected to an existing subscription for another team instead. This happens when the email address you check out with already has an active subscription. To bill a team separately, check out with a different email address. ## Billing receipt emails You can choose which email addresses receive receipts and invoices from Loops. To add, remove or change these emails, go to your [Billing page](https://app.loops.so/settings?page=billing) and enter or remove addresses in the **Billing receipt emails** section. ## Canceling your subscription You can cancel your subscription at any time by going to your [Billing page](https://app.loops.so/settings?page=billing) and clicking **Manage subscription**. For further questions about billing, go to your [Support page](https://app.loops.so/settings?page=support), or contact [help@loops.so](mailto:help@loops.so). # Change your login email Source: https://loops.so/docs/account/changing-your-email How to update the email address you use to log in to Loops. You will need the account owner role to change your email address. 1. Ensure you have access to your new email address. 2. Go to [Team settings](https://app.loops.so/settings?page=team). 3. Invite your new email address to your team. 4. Accept the invite from an incognito window or a different browser. 5. Once the new email address has joined the team, promote it to an owner role. 6. Remove your old email address from the team. # Delete your account Source: https://loops.so/docs/account/delete-account How to permanently delete your Loops account. You will need the account owner role to delete your account. > [!WARNING] > > Deleting your account is permanent. All emails, contacts, audience data and team settings will be removed and cannot be recovered. 1. Go to [Team settings](https://app.loops.so/settings?page=team). 2. Scroll to the **Danger Zone**. 3. Click **Delete this team...**. 4. In the confirmation modal, review the list of sending domains that will be deleted and the actions that will happen immediately. 5. Type **permanently delete team** in the text field to confirm. 6. Click **Permanently delete**. If you have an active paid subscription, cancel it from the [Billing settings](https://app.loops.so/settings?page=billing) before deleting your account. # Group billing Source: https://loops.so/docs/account/group-billing Combine billing for multiple Loops teams under one subscription. If you run several Loops teams, you can combine them into one billing group. All teams in the group are covered by a single subscription, and every team gets paid plan features. ## How group billing works One team in the group is the primary team. Its subscription stays active and covers every other team in the group. Your plan tier is based on the total subscribed contacts across all grouped teams. This is less expensive than paying for separate subscriptions, because one higher tier costs less than several lower ones. For example, if Team A has 4,000 subscribed contacts and Team B has 3,000, the group is billed for one plan that fits 7,000 contacts rather than two separate plans. There is no limit to the number of teams in a billing group. ### Free teams Free teams can join a billing group. Once grouped, they get all paid plan features, including: * No Loops branding in emails * No monthly sending cap * [Paid sending rate limits](/docs/account/billing#sending-rate-limits) ## Billing dates A billing group is billed on the primary team's billing date. Joining a group doesn't change this date. Like all Loops plans, the tier is [calculated at renewal](/docs/account/billing#how-we-calculate-your-tier). When a team joins the group, its subscribed contacts are added to the primary team's subscription from the primary team's next renewal. If a team joining the group already has its own paid subscription, that subscription is canceled. We'll work out any remaining time on it with you when setting up the group. ## Set up group billing Group billing is set up by the Loops support team. **1. Subscribe one of your teams** Start a paid subscription on one of your teams from its [Billing page](https://app.loops.so/settings?page=billing). This team becomes the primary team. If one of your teams already has a paid subscription, you can skip this step. **2. Contact support** Contact us at [help@loops.so](mailto:help@loops.so) or through chat from your [Support page](https://app.loops.so/settings?page=support), and let us know which other teams you want to include in the group. ## Receipts and invoices All invoices and receipts are sent from the primary team's subscription. To change who receives them, update the **Billing receipt emails** section on the primary team's [Billing page](https://app.loops.so/settings?page=billing). ## Removing a team from a group To remove a team from a billing group, contact [help@loops.so](mailto:help@loops.so). Teams are not removed automatically, so we'll work with you on what happens next, such as moving the team to the free plan or starting its own subscription. # Notifications Source: https://loops.so/docs/account/notifications Learn how to receive notifications about new Loops contacts in external tools. You will receive a notification when a contact is added to your audience through the API, integrations or form submission. You will not receive notifications for manually added users via CSV or other methods. You can manage your notifications in the [Notifications](https://app.loops.so/settings?page=notifications) page. ## Email notifications By default, you will receive an email notification from Loopsbot when a contact is added to your audience. You can disable this notification by toggling the **Notifications enabled** switch in the [Notifications section](https://app.loops.so/settings?page=notifications) of your Settings. If you'd like to receive email notifications again, you can toggle the switch back on. This setting is individual to your user account, and won't propagate to the rest of your team. ## Slack notifications You can receive notifications in Slack for new contacts. Please note, this is a global setting and will apply to all additional seats in your account. ### Set up Slack notifications 1. Go to [Settings -> Notifications](https://app.loops.so/settings?page=notifications). 2. Click the link to be redirected to Slack for authorization. 3. Select the channel you want to add the bot to. > [!TIP] > > The bot must be invited to private channels before they become visible in the dropdown. 4. Send a test message to verify the integration works. That's it! All new contacts added to your audience will now send a notification to the selected Slack channel. ### Other options Here are a few other ways to get Slack notifications for new contacts: 1. Install an email add-on to send individual emails from [Gmail](https://slack.com/apps/AEFLFJR9Q-slack-for-gmail) or [Outlook](https://slack.com/apps/AFS3736H3-slack-for-outlook) to channels or DMs (free). 2. Create a forwarding address to send individual emails to your DM with Slackbot (free). [View the full documentation from Slack](https://slack.com/help/articles/206819278-Send-emails-to-Slack) for more information. # Team members Source: https://loops.so/docs/account/team-members How to add and manage team members in your Loops account. > [!TIP] > > It is free to add additional team members to your account. Here's how to add team members to your team: 1. Go to [Settings -> Team](https://app.loops.so/settings?page=team). 2. Enter the new team member's name and email address and click **Invite**. ## Owner role You can promote members to become an Owner of your team. Owners have special permissions: * Owners can invite and remove team members. * Owners can promote members to become owners. * Only owners can [delete the team](/docs/account/delete-account). ## Managing members You can add unlimited members to each team, for free. Only owners can invite new members. Owners can also remove members and other owners. If you remove someone from your team, they will get a new Loops team of their own. # Team switcher Source: https://loops.so/docs/account/team-switcher Learn how to create and connect multiple Loops accounts with one email address. You may want to have multiple Loops accounts for different products, domains or teams. You can create new teams from a single Loops account. You can also combine existing Loops teams under a single email address so you can easily switch between them instead of having to log out every time. ![Team switcher](https://mintcdn.com/loops/o5mH5af8b_cEo_bz/images/team-switcher.png?fit=max\&auto=format\&n=o5mH5af8b_cEo_bz\&q=85\&s=b6bfe33cb89c3f346b604e443360e199) The existing [team member features](/docs/account/team-members) allow you to invite and remove users to and from individual teams. > [!NOTE] > > Free users can be in a maximum of 3 teams. As soon as a user joins a paid team, they can be added to unlimited teams. ## Create a new team If you want to create a new team, click on the team switcher in the top left of your Loops account, then select **+ New team**. This will create a new team and ask you to set up a new sending domain. ## Connect existing accounts If you have existing accounts that you want to merge under one email address, there are a few steps to complete. In this example **Team A** is the main account you want to log in with, and **Team B** is the account you want to connect. **1. Sign in to Team A** Make sure you're signed in to the Loops account you want to be your only account (Team A). **2. Sign in to Team B** **In a different browser** (or incognito window) log in to Team B (the account you want to connect) and invite your selected Team A email address from the [Team settings page](https://app.loops.so/settings?page=team). **3. Accept the invite** An invitation email will be sent to your Team A email address. Since you are already logged in to Team A, you can ignore the email. Refresh the Team settings page and you will see an invite alert appear in the bottom right corner. Click **Accept**. ![Invitation popover](https://mintcdn.com/loops/OG31ikb--92jQDlq/images/invite.png?fit=max\&auto=format\&n=OG31ikb--92jQDlq\&q=85\&s=c24f47b25589a75373fa001352f8f31c) Accepting the invite will automatically switch you to the Team A account. **4. Assign team ownership (optional)** If you want to become the [owner](/docs/account/team-members#owner-role) of Team B (giving you full permissions), go back to Team B in the other browser window and refresh the Team page. Give the **Owner** role to your Team A email address by clicking the `•••` menu button. Becoming owner is not required but is necessary if you are the only user in the team. **5. Sign out of Team B** You can sign out of Team B (or close your incognito window), because you can now access it through your Team A account. **6. Remove the old email address** If you want, you can safely remove the previous email address you used to sign in to Team B from the [Team settings page](https://app.loops.so/settings?page=team). ## Invite members to teams If you want your team members to access multiple teams, simply invite the same email address to different teams. Once they accept the invitation, they will be able to switch between the teams they have access to. ## Billing within teams By default, billing is handled individually per team. When you switch between teams you will be able to handle billing separately for each. To cover multiple teams with one subscription, combine them with [group billing](/docs/account/group-billing). Your plan tier is based on the combined subscribed contacts of all grouped teams, which costs less than paying for each team separately. # CSV Upload Source: https://loops.so/docs/add-users/csv-upload Easily add contacts to Loops by uploading a CSV file. > [!TIP] > > Please read through the [contact properties](/docs/contacts/properties) information to understand how to format data in your CSV file. ## Add new contacts via CSV 1. Select **Import** in the top right of the [Audience](https://app.loops.so/audience) page. ![Audience page showing the Import contacts button](https://mintcdn.com/loops/jciR0tyBAW69kXCY/images/select-import-users.png?fit=max\&auto=format\&n=jciR0tyBAW69kXCY\&q=85\&s=51d16210d466a71c77cb4888d22b99d2) 2. Hover on **CSV** and click **Upload CSV**. Download the [example formatted CSV](https://app.loops.so/loops_sample.csv) to get an idea of the columns we use. By default, we recommend using at least `Email`, `First Name`, `Last Name`, `User Group` and `Source` columns. ![Import contacts menu showing CSV upload option](https://mintcdn.com/loops/OG31ikb--92jQDlq/images/import-users.png?fit=max\&auto=format\&n=OG31ikb--92jQDlq\&q=85\&s=f68da4c81e81193b87d77ab41ffc9d4e) 3. After uploading the CSV you'll have a chance to review any duplicates or missing information before finishing. 4. When the upload is finished, all the uploaded contacts can be viewed in the Audience page. That's it! 🎊 ### Some important notes * You can import values for any [contact property](/docs/contacts/properties), including custom properties, by adding extra columns to your CSV file. Use the property name as the column header. * All new contacts uploaded will be automatically marked as subscribed. If you want to mark imported contacts as unsubscribed add a `Subscribed` column into your CSV file and use "false" as the column value. * CSV uploads are not gated by [double opt-in](/docs/contacts/double-opt-in). Imported contacts do not receive a confirmation email, even when double opt-in is enabled. Only upload contacts who have already opted in to receive your emails. * The default `Source` value for each uploaded contact will be "CSV Upload". You can change this by adding a `Source` column to your CSV file and specifying a custom value. * Dates in your CSV file must be in one of the accepted formats listed on the [contact properties](/docs/contacts/properties#dates) page (timestamps are not supported). ## Update contacts via CSV You can also upload a CSV file to update your existing contacts in bulk. You can either download a CSV from your Audience page in Loops, edit the data and re-upload it, or start with a new CSV file and just include the contacts and columns you want to update. When updating contacts, Loops will first look for a matching contact using the value in the `User ID` column, then the `Email` column. If a contact is found, Loops will update the contact using the data provided in the CSV file. If a contact is not found with either `User ID` or `Email` values, a new contact will be created using the data provided. ### Some important notes * The importer does not re-subscribe contacts who are marked as unsubscribed in your Audience, so updating the `Subscribed` column to `true` will not re-subscribe the contact. * Cells that are empty in the CSV file will not overwrite existing data in Loops. If you want to clear a field, you will need to provide a value of `null` in the CSV file (4 characters, all lowercase). Note, this only works for `string` type fields. ## Send a campaign to a CSV upload To send a campaign to the contacts in a CSV file, add a unique column to the file before you upload it. That column will be stored as a [custom contact property](/docs/contacts/properties#custom-contact-properties), which you can then select when sending. 1. Add a new column to your CSV with a unique name that you will not reuse for other uploads, for example `productUpdateSep2026`. 2. Give every row in the file the same unique value, such as `true`. 3. [Upload the CSV](#add-new-contacts-via-csv). Create the property if it does not already exist, then map the column to it. 4. When sending a [campaign](/docs/types-of-emails#campaigns), select your custom property from the list and the value you used in the CSV (for example, `productUpdateSep2026` `Is true`). ![Filter campaign audience](https://mintcdn.com/loops/K9TRANbphBauR0pJ/images/campaign-filter.png?fit=max\&auto=format\&n=K9TRANbphBauR0pJ\&q=85\&s=9672bd5756789f880f53626fe58da5b9) Only contacts from that upload will match the filter and receive the campaign. You can also [save the filter as a segment](/docs/contacts/filters-segments#audience-segments) if you want to reuse it. ## Trigger workflows via CSV You can use CSV uploads as a way to trigger workflows on a group of new or existing contacts. If you want to trigger workflows for existing contacts, download a CSV from your [Audience page](https://app.loops.so/audience) then re-upload the file. Only include the contacts you want to trigger workflows for in the CSV file. After uploading the CSV, on the Review page select the **Trigger workflows** option. This will trigger all applicable workflows you have set up with **Contact created** and **Contact updated** triggers. If you select to add contacts to mailing lists on this same page as well as toggle **Trigger workflows** ON, you will also trigger **Contact added to list** workflows. ![CSV upload review step showing “Trigger workflows”](https://mintcdn.com/loops/aOtgyczWtTw7x5Xz/images/csv-trigger-loops.png?fit=max\&auto=format\&n=aOtgyczWtTw7x5Xz\&q=85\&s=387b50b2c6350e031bf0673167fa4506) ## View previous CSV uploads After uploading CSV files you can view a history of your uploads plus details for each file's rows. On the [Audience page](https://app.loops.so/audience) click **Import contacts**, hover on **CSV** and click **Upload CSV**. On the next page click on **View imports**, which will show you a list of all of your past uploads. Clicking on one of your uploads will let you view lists of all new, updated or duplicated contacts plus a list of any errors from the import. ![CSV imports history page in Loops](https://mintcdn.com/loops/K9TRANbphBauR0pJ/images/csv-history.png?fit=max\&auto=format\&n=K9TRANbphBauR0pJ\&q=85\&s=b4491c021fc049fa4a280e439692949d) # Add contacts via integrations Source: https://loops.so/docs/add-users/integrations Connect Loops to external platforms to automatically add contacts to your audience. We have a range of integrations with other platforms, which allow syncing of data between services you use. For example, you can add users from thousands of apps through [Segment](/docs/integrations/segment) or [Zapier](/docs/integrations/zapier), or use forms on platforms like [Framer](/docs/integrations/framer) or [Webflow](/docs/integrations/webflow) to let contacts sign up to your mailing list. [Go to the Integrations page](/docs/integrations) to view the full list. # Add and update contacts with the Loops API Source: https://loops.so/docs/add-users/loops-api Loops provides a REST API to manage your contacts. With [the Loops API](/docs/api-reference/intro), you can easily manage contacts directly from your application or service. For example, creating a new contact is as easy as sending a `POST` request to `https://app.loops.so/api/v1/contacts/create`. ```json theme={"dark"} { "email": "test@example.com", "firstName": "Adam", "lastName": "Kaczmarek", "favoriteColor": "blue", "userGroup": "Founders", "source": "Signup form Service" } ``` We also offer endpoints for finding, updating and deleting contacts (plus some other features like sending transactional email and sending events). ## Learn more > [card] [API Reference](/docs/api-reference/intro) > > Find out how to create and manage contacts using our API. # Add a branch Source: https://loops.so/docs/api-reference/add-workflow-branch https://app.loops.so/openapi.json post /v1/workflows/{workflowId}/nodes/{nodeId}/add-branch Add a branch and a child node under an existing Branch or Experiment node. Adding a branch to a `BranchNode` creates one `AudienceFilter` child node. Adding a branch to an `ExperimentBranchNode` creates one `VariantNode` child node. This endpoint does not accept node configuration fields; [update the child node](/docs/api-reference/update-workflow-node) after creation. Public workflows are limited to 400 nodes, and this endpoint adds 1 node. # API key Source: https://loops.so/docs/api-reference/api-key https://app.loops.so/openapi.json get /v1/api-key Test your API key and get team context. # Change workflow mailing list Source: https://loops.so/docs/api-reference/change-workflow-mailing-list https://app.loops.so/openapi.json post /v1/workflows/{workflowId}/mailing-list Change a workflow's mailing list. Use this endpoint to change a workflow's mailing list. Make a dry run request using `dryRun: true`. If queued contacts would be removed from the workflow due to the change of mailing list, Loops returns with `"status": "queuedContactsFound"` instead of applying the change. Retry with `queuedContactPolicy: "discard"` to apply the change and discard those contacts. Confirmed update responses include the simplified workflow after the mailing list changes. # API Changelog Source: https://loops.so/docs/api-reference/changelog Release notes for the Loops REST API and webhooks, covering new endpoints, fields, breaking changes, and deprecations across OpenAPI versions. **October 20, 2026** New: workflows can now be moved between groups in the [Update workflow](/docs/api-reference/update-workflow) endpoint. **October 6, 2026** New: endpoints for managing workflow groups. **September 30, 2026** Updated: campaigns created without a group are now added to the "Unsorted" group rather than the first group listed in your account. **September 29, 2026** New: metrics endpoints for [campaigns](/docs/api-reference/get-campaign-metrics), [transactional emails](/docs/api-reference/get-transactional-email-metrics), and [workflow email nodes](/docs/api-reference/get-workflow-node-metrics). **September 17, 2026** Updated: `ccEmail` and `bccEmail` are now rejected in the API when [updating campaign email messages](/docs/api-reference/update-email-message), matching app behavior (they are still accepted for workflow and transactional emails). **September 1, 2026** New: [Delete a workflow](/docs/api-reference/delete-workflow) endpoint. **August 31, 2026** New: campaign, transactional and workflow endpoints now include a `url` field, which gives quick access to the object in the Loops app. **July 23, 2026** New: * [Create audience segment](/docs/api-reference/create-audience-segment) endpoint. * Endpoints for creating and editing [workflows](/docs/api-reference/intro#workflows) and [workflow nodes](/docs/api-reference/intro#workflow-nodes). * Endpoints for reading [event patterns](/docs/api-reference/intro#event-patterns). Updated: removed `queuedContactLimitReached` from workflow node delete and mailing list change responses. **July 16, 2026** Updated: `rootNodeId` is now always a non-null string in [workflow](/docs/api-reference/get-workflow) responses. **July 8, 2026** New: endpoints for creating and updating themes and components. **July 2, 2026** New: [Guardian](/docs/api-reference/run-guardian-checks) endpoint for validating email message content via the API. **July 1, 2026** New: a `transactionalName` field in the [transactional.email.sent](/docs/webhooks#transactional-email-sent) webhook event. **June 22, 2026** New: endpoints for viewing [workflows](/docs/api-reference/list-workflows) and [workflow nodes](/docs/api-reference/get-workflow-node). These endpoints are currently in open alpha. **June 19, 2026** New: endpoints for [campaign groups](/docs/api-reference/list-campaign-groups), [transactional groups](/docs/api-reference/list-transactional-groups), [audience segments](/docs/api-reference/list-audience-segments), and [email message previews](/docs/api-reference/preview-email-message). Updated: * [Campaign](/docs/api-reference/create-campaign) endpoints now support audience targeting (mailing list, segment, or filter), groups, and scheduling. * [Email message](/docs/api-reference/update-email-message) endpoints now support CC/BCC, language, email format, and property fallbacks. * [Transactional email](/docs/api-reference/create-transactional-email) endpoints now support groups. **June 5, 2026** New: endpoints for creating and editing transactional emails. These endpoints are currently in an open alpha. **May 20, 2026** New: [Upload](/docs/api-reference/create-upload) endpoints for uploading images to use in emails. **April 24, 2026** New: endpoints for creating and editing campaigns. These endpoints are currently in an open alpha. **March 25, 2026** New: API endpoints to [check](/docs/api-reference/check-contact-suppression) and [remove](/docs/api-reference/remove-contact-suppression) suppression for contacts. **February 13, 2026** New: a `campaignName` field in the [campaign.email.sent](/docs/webhooks#campaign-email-sent) webhook event. **October 17, 2025** New: an [`email.resubscribed`](/docs/webhooks#email-resubscribed) webhook event for when contacts resubscribe to your marketing email from an email's "Unsubscribe" link. **October 13, 2025** New: an `optInStatus` field from [double opt-in](/docs/contacts/double-opt-in) in the [Find contact](/docs/api-reference/find-contact) endpoint and in `contact.created` [webhook events](/docs/webhooks). **September 29, 2025** New: [webhooks](/docs/webhooks) are now available to all users. **September 11, 2025** Improvement: all endpoints now return a `success` and `message` field in the error response bodies. `error` and `path` top-level keys are now deprecated but will continue to be supported for some time for backward compatibility. **August 21, 2025** The docs have been updated to reflect that the `email` parameter is optional in the [Update contact](/docs/api-reference/update-contact) endpoint if a `userId` is provided. **May 23, 2025** Improvement: data variables are now optional in the [Send transactional email](/docs/api-reference/send-transactional-email) endpoint. [Read more](/docs/transactional#optional-data-variables) **April 29, 2025** New: an `Idempotency-Key` header when [sending events](/docs/api-reference/send-event). **March 28, 2025** New: an `Idempotency-Key` header when [sending transactional emails](/docs/api-reference/send-transactional-email). **February 28, 2025** New: an endpoint for [listing transactional emails](/docs/api-reference/list-transactional-emails) and their data variables. **February 5, 2025** New: [webhooks](/docs/webhooks) are in Beta. **January 14, 2025** New: new endpoints for [creating contact properties](/docs/api-reference/create-contact-property) and [listing contact properties](/docs/api-reference/list-contact-properties). Deprecation: the [List custom fields](/docs/api-reference/list-custom-fields) endpoint is now deprecated in favor of the new [List contact properties](/docs/api-reference/list-contact-properties) endpoint. **December 18, 2024** New: we added `description` to mailing list objects in the [List mailing lists](/docs/api-reference/list-mailing-lists) endpoint. **November 5, 2024** Improvement: the maximum payload size for the transactional endpoint has been increased from 1MB to 4MB, allowing for more or larger attachments. **September 6, 2024** New: our new [Nuxt module](/docs/sdks/nuxt) is now out! **August 16, 2024** New: our new [Ruby SDK](/docs/sdks/ruby) is available! **August 15, 2024** New: we added an `isPublic` attribute to mailing list objects in the [List mailing lists](/docs/api-reference/list-mailing-lists) endpoint. **June 28, 2024** New: there's a new `addToAudience` parameter in the [Send transactional email](/docs/api-reference/send-transactional-email) endpoint that can add contacts to your audience. **June 18, 2024** New: support for our new [mailing lists](/docs/contacts/mailing-lists) feature. You can now add contacts to and remove contacts from mailing lists in the [Create contact](/docs/api-reference/create-contact), [Update contact](/docs/api-reference/update-contact) and [Send event](/docs/api-reference/send-event) endpoints. There is also a [new endpoint](/docs/api-reference/list-mailing-lists) for retrieving your mailing lists. **April 18, 2024** New: you can now [Find contacts](/docs/api-reference/find-contact) by `userId`. **April 9, 2024** New: a new endpoint for testing your integration and/or API key: [API key](/docs/api-reference/api-key). **March 21, 2024** New: you can now include [event properties](/docs/events/properties) in requests to the [Send event](/docs/api-reference/send-event) endpoint. **March 13, 2024** Improvement: we removed behavior that returned a `400 Bad Request` response if an unrecognized property was added to Contact endpoints. **February 9, 2024** Improvement: sending in a payload that contains an unrecognized property will now return a `400 Bad Request` response. **January 25, 2024** Clarification in the API docs that `userId` can be used in a [Send event](/docs/api-reference/send-event) request. **November 6, 2023** New: we added a new endpoint for [querying custom contact properties](/docs/api-reference/list-custom-fields). **October 30, 2023** Our [official JavaScript/TypeScript SDK](/docs/sdks/javascript) is now available! **October 12, 2023** New: we now accept dates as a custom [contact property](/docs/contacts/properties) type. [View the available formats](/docs/contacts/properties#dates). # Check contact suppression status Source: https://loops.so/docs/api-reference/check-contact-suppression https://app.loops.so/openapi.json get /v1/contacts/suppression Check if a contact is suppressed by email address or user ID. # Complete an upload Source: https://loops.so/docs/api-reference/complete-upload https://app.loops.so/openapi.json post /v1/uploads/{emailAssetId}/complete Finalize an image upload after the file has been uploaded to the pre-signed URL. # Create an audience segment Source: https://loops.so/docs/api-reference/create-audience-segment https://app.loops.so/openapi.json post /v1/audience-segments Create a new audience segment. # Create a campaign Source: https://loops.so/docs/api-reference/create-campaign https://app.loops.so/openapi.json post /v1/campaigns Create a draft marketing campaign and its associated email message. This endpoint creates a draft campaign and an empty email message in one step. Use the returned `emailMessageId` with [Update an email message](/docs/api-reference/update-email-message) to set subject, sender, preview text, and LMX content. The audience (mailing list, segment, or filter), group, and scheduling can be set on create or later via [Update a campaign](/docs/api-reference/update-campaign). > [!TIP] > > To send a test preview of a campaign, use the [Preview email message](/docs/api-reference/preview-email-message) endpoint. # Create a campaign group Source: https://loops.so/docs/api-reference/create-campaign-group https://app.loops.so/openapi.json post /v1/campaign-groups Create a new campaign group. # Create a component Source: https://loops.so/docs/api-reference/create-component https://app.loops.so/openapi.json post /v1/components Create a new email component from an LMX body. # Create a contact Source: https://loops.so/docs/api-reference/create-contact https://app.loops.so/openapi.json post /v1/contacts/create Add a contact to your audience. > [!TIP] > > If you want to "update or create" contacts, consider using the [Update a contact](https://loops.so/docs/api-reference/update-contact) endpoint instead. # Create a contact property Source: https://loops.so/docs/api-reference/create-contact-property https://app.loops.so/openapi.json post /v1/contacts/properties Create a custom contact property. # Create a theme Source: https://loops.so/docs/api-reference/create-theme https://app.loops.so/openapi.json post /v1/themes Create a new email theme for use across Loops emails. # Create a transactional email Source: https://loops.so/docs/api-reference/create-transactional-email https://app.loops.so/openapi.json post /v1/transactional-emails Create a new transactional email and its draft email message, ready for editing, previewing, and publishing through the Loops API. This endpoint creates a transactional email and an empty draft email message in one step. Use the returned `draftEmailMessageId` and `draftEmailMessageContentRevisionId` when calling the [Update email message](/docs/api-reference/update-email-message) endpoint to set subject, sender, preview text, and LMX content. Call [Publish transactional email draft](/docs/api-reference/publish-transactional-email) to publish. # Create a transactional group Source: https://loops.so/docs/api-reference/create-transactional-group https://app.loops.so/openapi.json post /v1/transactional-groups Create a new transactional group. # Create an upload Source: https://loops.so/docs/api-reference/create-upload https://app.loops.so/openapi.json post /v1/uploads Request a pre-signed URL to upload an image asset. Request a pre-signed URL to upload an image asset. Upload the file with an HTTP `PUT` to the returned `presignedUrl` (sending the same `Content-Type` and `Content-Length`), then call [Complete an upload](/docs/api-reference/complete-upload) to finalize the asset. # Create a workflow Source: https://loops.so/docs/api-reference/create-workflow https://app.loops.so/openapi.json post /v1/workflows Create a draft workflow with a blank trigger and exit node. When `workflowGroupId` is omitted, the workflow is added to the team's Unsorted group. # Create a workflow group Source: https://loops.so/docs/api-reference/create-workflow-group https://app.loops.so/openapi.json post /v1/workflow-groups Create a new workflow group. # Create a workflow node Source: https://loops.so/docs/api-reference/create-workflow-node https://app.loops.so/openapi.json post /v1/workflows/{workflowId}/nodes Create a new default workflow node and return it with the latest workflow Choose where the node goes with `insertMode`: * `between` places it between an existing `fromNodeId` -> `toNodeId` connection * `before` places it before `toNodeId` * `after` places it after `fromNodeId` when that node has exactly one outgoing connection. Use `after` for simple linear paths when you do not want to fetch and pass the current child node ID. `after` is invalid when `fromNodeId` has no outgoing nodes, multiple outgoing nodes, or is an exit node. When the source has multiple outgoing nodes, use `between` with the exact `toNodeId` instead. For `before`, deprecated `beforeNodeId` requests are still accepted for compatibility, but new callers should use `toNodeId`. New nodes start with default settings; update the node after creation to configure it. Branch nodes create their default paths too: `BranchNode` creates two `AudienceFilter` children, and `ExperimentBranchNode` creates two regular `VariantNode` children plus one control `VariantNode`. Public workflows can have up to 400 nodes. Generated children count toward that limit, so a normal create adds 1 node, `BranchNode` adds 3, and `ExperimentBranchNode` adds 4. To add a sibling child path to a branch or experiment branch, use the `POST /v1/workflows/{workflowId}/nodes/{nodeId}/add-branch` endpoint. Branch paths can be edited with create-node, but a workflow cannot be started unless each direct `BranchNode` child is an `AudienceFilter`. For experiments, use create-node only to insert a missing `VariantNode` before non-variant content; use add-branch for another variant path. # List dedicated sending IP addresses Source: https://loops.so/docs/api-reference/dedicated-sending-ips https://app.loops.so/openapi.json get /v1/dedicated-sending-ips Retrieve a list of Loops' dedicated sending IP addresses. > [!WARNING] > > This endpoint is provided for the rare instances where you may need to whitelist our sending IPs. Please note that this list is subject to change and will not include shared IPs used for sending mail. Unless you are sure you need this and are comfortable watching for changes, we strongly recommend you *do not* whitelist these IPs. # Delete a contact Source: https://loops.so/docs/api-reference/delete-contact https://app.loops.so/openapi.json post /v1/contacts/delete Delete a contact by email address or user ID. Delete a contact by `email` or `userId`. # Delete a workflow Source: https://loops.so/docs/api-reference/delete-workflow https://app.loops.so/openapi.json delete /v1/workflows/{workflowId} Delete a workflow with revision and confirmation handling. Deleting a sending workflow stops sending it. Additionally, if the workflow has queued contacts, they are removed. Successful deletion returns `204 No Content`. If the workflow is currently sending or has queued contacts, Loops returns `409 Conflict` with a `message` instead of deleting. Retry the request with the same `expectedRevisionId` and `confirmDelete: true` to delete the workflow. Once deleted, workflows are not returned in other API endpoints. # Delete a workflow node Source: https://loops.so/docs/api-reference/delete-workflow-node https://app.loops.so/openapi.json delete /v1/workflows/{workflowId}/nodes/{nodeId} Delete a single workflow node. Delete a node from a workflow. Make a dry run request using `dryRun: true`. If contacts are queued at the node, Loops returns with `"status": "queuedContactsFound"` instead of deleting. Retry with `queuedContactPolicy: "discard"` to delete the node and discard those queued contacts. Confirmed deletion responses include the simplified workflow after the node is removed. # Delete workflow nodes recursively Source: https://loops.so/docs/api-reference/delete-workflow-nodes https://app.loops.so/openapi.json delete /v1/workflows/{workflowId}/nodes/{nodeId}/recursive Delete a node and its downstream subtree. Delete a node and its downstream subtree. Make a dry run request using `dryRun: true`. If contacts are queued at any node that would be deleted, Loops returns with `"status": "queuedContactsFound"` instead of deleting. Retry with `queuedContactPolicy: "discard"` to delete the nodes and discard those queued contacts. Confirmed deletion responses include the simplified workflow after the nodes are removed. # Ensure a transactional email has a draft Source: https://loops.so/docs/api-reference/ensure-transactional-draft https://app.loops.so/openapi.json post /v1/transactional-emails/{transactionalId}/draft Ensure a transactional email has a draft email message ready for editing, creating one from the published version if no draft currently exists. If a draft email message already exists, it is returned unchanged. Otherwise a new empty draft is created (seeded from the most recent published version when present). Use the returned `draftEmailMessageId` and `draftEmailMessageContentRevisionId` when calling [Update an email message](/docs/api-reference/update-email-message) to edit the draft's content. # API Examples Source: https://loops.so/docs/api-reference/examples Browse copy/paste code examples for the Loops API and SDKs covering contacts, events, campaigns, transactional emails, and content revisions. > [card] [Campaigns](/docs/api-reference/examples/campaigns) > > Code examples for creating campaigns, targeting audiences, sending previews, and editing email content with LMX. > [card] [Contacts](/docs/api-reference/examples/contacts) > > Code examples for managing contacts. > [card] [Events](/docs/api-reference/examples/events) > > Code examples for sending events. > [card] [Transactional emails](/docs/api-reference/examples/transactional-emails) > > Code examples for creating, previewing, publishing, and sending transactional emails. > [card] [Workflows](/docs/api-reference/examples/workflows) > > Code examples for creating and updating workflows and their nodes. # Campaigns API examples Source: https://loops.so/docs/api-reference/examples/campaigns Code examples for creating campaigns, targeting audiences, sending previews, and updating email messages with content revisions via the Loops API, SDKs, and CLI. ## Create a campaign This creates a draft campaign and a related email message in one request. Only a `name` value is required. > [!TIP] > > Save the returned `emailMessageContentRevisionId`. Pass it as > `expectedRevisionId` when updating an email message to avoid `409 Conflict` errors caused by stale revisions. [API reference](/docs/api-reference/create-campaign)\ [CLI reference](/docs/cli/campaigns#create) ```bash CLI theme={"dark"} loops campaigns create --name "Spring product announcement" -o json ``` ```js JavaScript theme={"dark"} const response = await fetch("https://app.loops.so/api/v1/campaigns", { method: "POST", headers: { "Authorization": "Bearer ", "Content-Type": "application/json", }, body: JSON.stringify({ name: "Spring product announcement", }), }); const data = await response.json(); const campaignId = data.id; const emailMessageId = data.emailMessageId; const emailMessageContentRevisionId = data.emailMessageContentRevisionId; ``` ```js JavaScript SDK theme={"dark"} import { LoopsClient } from "loops"; const loops = new LoopsClient(""); const data = await loops.createCampaign({ name: "Spring product announcement", }); const campaignId = data.id; const emailMessageId = data.emailMessageId; const emailMessageContentRevisionId = data.emailMessageContentRevisionId; ``` ```php PHP SDK theme={"dark"} use Loops\LoopsClient; $loops = new LoopsClient(''); $result = $loops->campaigns->create(name: 'Spring product announcement'); $campaign_id = $result['id']; $email_message_id = $result['emailMessageId']; $content_revision_id = $result['emailMessageContentRevisionId']; ``` ```ruby Ruby SDK theme={"dark"} response = LoopsSdk::Campaigns.create( name: "Spring product announcement", ) campaign_id = response["id"] email_message_id = response["emailMessageId"] content_revision_id = response["emailMessageContentRevisionId"] ``` ```python Python theme={"dark"} import requests response = requests.post( "https://app.loops.so/api/v1/campaigns", headers={ "Authorization": "Bearer ", "Content-Type": "application/json", }, json={ "name": "Spring product announcement", }, ) data = response.json() campaign_id = data["id"] email_message_id = data["emailMessageId"] content_revision_id = data["emailMessageContentRevisionId"] ``` ## Query themes and components for your LMX You can fetch your available themes and reusable components before building the `lmx` payload. List themes [API reference](/docs/api-reference/list-themes) [CLI reference](/docs/cli/themes#list)\ List components [API reference](/docs/api-reference/list-components) [CLI reference](/docs/cli/components#list) ```bash CLI theme={"dark"} loops themes list -o json loops components list -o json ``` ```js JavaScript theme={"dark"} const [themesResponse, componentsResponse] = await Promise.all([ fetch("https://app.loops.so/api/v1/themes?perPage=20", { method: "GET", headers: { "Authorization": "Bearer ", }, }), fetch("https://app.loops.so/api/v1/components?perPage=20", { method: "GET", headers: { "Authorization": "Bearer ", }, }), ]); const themes = await themesResponse.json(); const components = await componentsResponse.json(); ``` ```js JavaScript SDK theme={"dark"} import { LoopsClient } from "loops"; const loops = new LoopsClient(""); const [themes, components] = await Promise.all([ loops.listThemes({ perPage: 20 }), loops.listComponents({ perPage: 20 }), ]); ``` ```php PHP SDK theme={"dark"} use Loops\LoopsClient; $loops = new LoopsClient(''); $themes = $loops->themes->list(per_page: 20); $components = $loops->components->list(per_page: 20); ``` ```ruby Ruby SDK theme={"dark"} themes = LoopsSdk::Themes.list(perPage: 20) components = LoopsSdk::Components.list(perPage: 20) ``` ```python Python theme={"dark"} import requests themes_response = requests.get( "https://app.loops.so/api/v1/themes", headers={ "Authorization": "Bearer ", }, params={"perPage": 20}, ) components_response = requests.get( "https://app.loops.so/api/v1/components", headers={ "Authorization": "Bearer ", }, params={"perPage": 20}, ) themes = themes_response.json() components = components_response.json() ``` ## Update the related email message with `contentRevisionId` Use `emailMessageId` from the campaign you created as the path parameter, and pass the `emailMessageContentRevisionId` as `expectedRevisionId`. Apply styles or a theme in ` ``` ## Read more > [card] [Improve your inbox placement](/docs/deliverability/improving-inbox-placement) > [card] [Understanding email open rates](/docs/deliverability/understanding-email-open-rates) > [card] [Delivery optimization](/docs/deliverability/optimization) # Create and send your first campaign with the API or an agent Source: https://loops.so/docs/guides/first-campaign-api Create a draft campaign, write LMX content, and preview it in Loops using the Loops CLI, API, or an AI agent. This guide walks through the fastest path to your first campaign via API: `API key → create campaign → write LMX → preview → send` By the end, you'll have a draft campaign with real email content that you can open in Loops, preview, choose an audience for, and send. Each step includes examples for the [Loops CLI](/docs/cli), curl, and the [JavaScript SDK](/docs/sdks/javascript). The CLI is especially useful for creating emails inside coding agents. Check out Loops' [Agent skills](/docs/skills) for more information. ## Prerequisites Before you start, make sure you have: * A Loops account with a [verified sending domain](/docs/sending-domain) * At least one contact in your audience (or a [mailing list](/docs/contacts/mailing-lists) to send to later) * An API key from [Settings → API](https://app.loops.so/settings?page=api) * For SDK examples: `npm install loops` ([JavaScript SDK](/docs/sdks/javascript)) Authenticate and verify your key: ```bash CLI theme={"dark"} curl -fsSL https://install.loops.so/cli | sh loops auth login my-team loops api-key ``` ```bash curl theme={"dark"} export LOOPS_API_KEY="your-api-key-here" curl -s https://app.loops.so/api/v1/api-key \ -H "Authorization: Bearer $LOOPS_API_KEY" ``` ```js JavaScript SDK theme={"dark"} import { LoopsClient } from "loops"; const loops = new LoopsClient(process.env.LOOPS_API_KEY); const data = await loops.testApiKey(); // { success: true, teamName: "..." } ``` Never commit your API key to source control. The CLI stores keys locally via `loops auth login`; curl and SDK examples use the `LOOPS_API_KEY` environment variable. ## What you'll build You'll create a product update campaign named **March product update** with a short LMX body, then open it in the Loops dashboard to preview and send. ## Step 1: Create a draft campaign Creating a campaign also creates an empty email message. Save the IDs from the response. You'll need them in the next steps. ```bash CLI theme={"dark"} loops campaigns create --name "March product update" -o json ``` ```bash curl theme={"dark"} curl -s -X POST https://app.loops.so/api/v1/campaigns \ -H "Authorization: Bearer $LOOPS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name": "March product update"}' ``` ```js JavaScript SDK theme={"dark"} import { LoopsClient } from "loops"; const loops = new LoopsClient(process.env.LOOPS_API_KEY); const campaign = await loops.createCampaign({ name: "March product update", }); ``` The response includes: | Field | Use it for | | - | - | | `id` | Campaign ID — open this in the dashboard | | `emailMessageId` | Updating the email content | | `emailMessageContentRevisionId` | Pass as `expectedRevisionId` on your first update | ```bash theme={"dark"} export CAMPAIGN_ID="cln0y4p6r003yl70i1j2k3l4m" export EMAIL_MESSAGE_ID="cmn5zia4i0017tzli8ric8giv" export REVISION_ID="rev_01h..." ``` > [!TIP] > > Save `emailMessageContentRevisionId` from the create response. Pass it as > `expectedRevisionId` (or `--expected-revision-id` in the CLI) when updating > the email message. ## Step 2: Write LMX content [LMX](/docs/creating-emails/lmx) (Loops Markup Language) is how you define email body content for the API. Create a file called `email.lmx`: ```xml theme={"dark"}