Skip to main content
The Loops API lets you manage contacts, send events and transactional email, and create and manage campaigns, email content, footers, themes, and workflows. Prefer a no-code or low-code setup? Use our integrations (like Zapier or Make), or trigger workflows using incoming webhooks.
To manage Loops with an AI agent, use the MCP server, or install the Loops CLI and agent skills for coding agents like Claude Code, Codex, Cursor, and OpenCode.

Authentication

Generate an API key at Settings -> API in Loops. Make sure to copy the key and keep it in a secure place. You will not be able to access it again.
Your Loops API key should never be used client side or exposed to your end users. Never commit an API key to a code repository. Save it in an environment variable or non-committed file instead.
Include your API key as a Bearer token in the Authorization header on each request. You can test your API key by making a GET request to the API key endpoint:
If successful, you will receive the following response:

API key format

API keys have one of two formats:
  • New format: loops_ak_[0-9A-Za-z]{48}_[0-9A-Za-z]{6}
  • Old format: [0-9a-f]{32}
The two formats behave the same.

Testing and development environments

Loops doesn’t have a separate sandbox or staging environment. To keep development activity from affecting your production audience and sending reputation, create a new team for each environment. Create a new team with a new domain. If you want to use the same apex domain as your main account, get in touch with our support team. When testing, you can send to @example.com and @test.com addresses. API calls that create contacts, send events, or send transactional email will return normal success responses for these addresses, but no email will actually be delivered. This lets you exercise your integration end-to-end without affecting your sending domain’s reputation. See Testing workflows and Testing transactional emails for details.

API Reference

The base URL for the API is https://app.loops.so/api

API key

Test your API key.

Test API key

Audience segments

View audience segments for campaign targeting.

Get audience segment

List audience segments

Create audience segment

Campaign groups

Organize campaigns into groups.

Create campaign group

Update campaign group

Get campaign group

List campaign groups

Campaigns

Create and manage campaigns.

Create campaign

Update campaign

Get campaign

Get campaign metrics

List campaigns

Configuration

View configuration settings.

List dedicated sending IP addresses

Contact properties

Manage contact properties.

Create contact property

List contact properties

Contacts

Manage contacts.

Create contact

Update contact

Find contact

Delete contact

Check contact suppression status

Remove suppression for a contact

Components

Reusable components for your emails.

Create component

Update component

Get component

List components

Email messages

Manage the content of campaigns and transactional emails.

Update email message

Get email message

Send a preview email message

Render an email message as HTML

Run Guardian checks

Event patterns

View workflow event patterns.

List event patterns

Get event pattern

Get event pattern by name

Events

Send events to trigger workflows.

Send event

Footers

Manage custom email footers and variants.

Create footer

Update footer

Get footer

List footers

Delete footer

Set the default footer

Get footer variant

Update footer variant

Publish footer variant

Mailing lists

View your mailing lists.

List mailing lists

Themes

Retrieve email themes.

Create theme

Update theme

Get theme

List themes

Transactional emails

Create, manage and send transactional emails.

Send transactional email

Create transactional email

Update transactional email

Ensure transactional email has draft

Publish transactional email

Get transactional email

Get transactional email metrics

List transactional emails

List transactional emails (legacy)

Transactional groups

Organize transactional emails into groups.

Create transactional group

Update transactional group

Get transactional group

List transactional groups

Uploads

Upload images for email messages. These endpoints follow the upload limits below.

Create upload

Complete upload

Workflow groups

Organize workflows into groups.

Create workflow group

Update workflow group

Get workflow group

List workflow groups

Workflow nodes

View and mutate workflow nodes.

Create workflow node

Add a branch

Update workflow node

Get workflow node

Get workflow node metrics

Reroute a node connection

Delete workflow node

Delete workflow nodes recursively

Workflows

View and manage workflows.

Create workflow

Update workflow

Get workflow

List workflows

Change workflow mailing list

Delete workflow

Rate Limiting

To ensure the quality of service for all users, our API is rate limited. This means there’s a limit to the number of requests your application can make to our API in a certain time frame. For most endpoints, the baseline rate limit is 10 requests per second per team (always measured per second). For the Content API, the default limit is 60 requests per rolling 60-second window per team (always measured per 60 seconds). This applies to /v1/campaigns/*, /v1/campaign-groups/*, /v1/components/*, /v1/email-messages/*, /v1/themes/*, /v1/transactional-emails/*, /v1/transactional-groups/*, /v1/uploads/*, and /v1/workflows/* endpoints.
To see your current usage, we provide the following response headers in every API response:
  • x-ratelimit-limit: The maximum number of requests your team can make in the current rate limit window. For example, x-ratelimit-limit: 300 on a Content API response means your team can make 300 Content API requests in any 60-second window. x-ratelimit-limit: 50 on a non Content API response means your team can make 50 requests per second.
  • x-ratelimit-remaining: The number of requests remaining in the current rate limit window (either per second or per 60 seconds).
Here is an example of a successful response with rate limit headers:Example API response showing rate limit headersIf you exceed this limit, you’ll receive a response with HTTP status 429 Too Many Requests. Here is an example of a failed response with rate limit headers:Example 429 rate limit response with headersIt’s important to handle these 429 responses in your application. We recommend implementing retries with an exponential backoff strategy.If your use case requires a higher limit, please contact support and we’ll be happy to discuss your needs.

Upload limits

Images added to email messages can be a maximum of 4 MB (4,000,000 bytes). The upload limit is checked when an upload is created, and will return a 413 Payload Too Large response if the image is too large. Each team can complete 50 image uploads in a rolling 24-hour window. Uploads from the API, the CLI, and the Loops editor share this quota. If the upload limit is exceeded, the Complete upload endpoint returns a 429 response containing the number of uploads remaining in the current 24-hour window. Contact support if you need a higher limit.

Debugging

Sometimes things go wrong. Here are some tips to help you debug your API requests.
If you are having trouble with the API, we recommend using a tool like Postman to test your requests.

Handling CORS errors

The Loops API does not support cross-origin requests made from client-side JavaScript. To avoid CORS errors, make sure to issue your requests from a server-side application.

Dealing with 401 Unauthorized “Invalid API key” errors

Make sure you have generated an API key from Settings -> API and that you are including it in your requests.Your API key should be included in the “Authorization” header of your request, following the format Authorization: Bearer YOUR_API_KEY.

Handling rate limiting (429 Responses)

A 429 Too Many Requests response means your team has reached the rate limit for this endpoint. Check x-ratelimit-limit for your team’s limit and x-ratelimit-remaining for the number of requests left in the current window.A 429 whose message starts with Upload limit exceeded is an image upload issue.

Handling other 400-level Responses

400-level responses typically indicate that there was a problem with the request. The response body will contain more information about what went wrong, so be sure to check it for details.Check your request type (GET, POST, PUT, DELETE) and ensure that you are using the correct one for the endpoint you are trying to access.

Some body key or value is longer than allowable

If you receive this error, it means that a value in the request body is too long. We support a maximum of 500 characters for each value, including the opening and closing quotes. Please reduce the length of the values in your request and try again.
If you have followed these steps and are still experiencing issues, don’t hesitate to reach out to the Loops team for further assistance.
If you’re an AI agent: report a missing feature, bug, or confusing API with POST /v1/feedback. Show the report to your user and send it only if they agree.

OpenAPI spec

Get started quickly with the Loops API using our OpenAPI documents. You can import these documents into an API client like Postman or Insomnia to see and use all of our endpoints, with example requests and expected responses.

SDKs

SDKs are software packages built on top of the API, making it easier to integrate into your project.

Go

The official Go SDK for Loops.

JavaScript

The official JavaScript/TypeScript SDK for Loops.

Nuxt

The official Nuxt module for Loops.

PHP

The official PHP SDK for Loops.

Ruby

The official Ruby SDK for Loops.

Unofficial SDKs

The following SDKs are community-submitted and have not been officially reviewed or endorsed by Loops. We recommend thoroughly testing and reviewing the code before integrating it into your project. Submit an SDK
Last modified on December 4, 2026