Apikey
verifyConnection
apikey.verifyConnection
Verify the API key and return the team name it belongs to
Risk: read
Audience Segments
create
audienceSegments.create
Create a new audience segment.
Risk: write
filter full type
filter full type
filter full type
filter full type
get
audienceSegments.get
Retrieve a single audience segment by ID.
Risk: read
filter full type
filter full type
list
audienceSegments.list
Retrieve a paginated list of audience segments, most recently created first.
Risk: read
pagination full type
pagination full type
data full type
data full type
Campaign Groups
create
campaignGroups.create
Create a new campaign group.
Risk: write
get
campaignGroups.get
Retrieve a single campaign group by ID.
Risk: read
list
campaignGroups.list
Retrieve a paginated list of campaign groups, most recently created first.
Risk: read
pagination full type
pagination full type
data full type
data full type
update
campaignGroups.update
Update a campaign group’s name or description. At least one field must be provided. The reserved “Unsorted” group cannot be edited.
Risk: write
Campaigns
create
campaigns.create
Create a new draft campaign. An empty email message is created automatically and its emailMessageId is returned. Use the /email-messages/{emailMessageId} endpoint to set subject, sender, preview text, and LMX content. Passing scheduling { method: “now” } sends the campaign to its whole audience right away.
Risk: destructive
audienceFilter full type
audienceFilter full type
scheduling full type
scheduling full type
audienceFilter full type
audienceFilter full type
scheduling full type
scheduling full type
get
campaigns.get
Retrieve a single campaign by ID.
Risk: read
audienceFilter full type
audienceFilter full type
scheduling full type
scheduling full type
getMetrics
campaigns.getMetrics
Retrieve all-time email engagement metrics for a campaign.
Risk: read
list
campaigns.list
Retrieve a paginated list of campaigns.
Risk: read
pagination full type
pagination full type
data full type
data full type
update
campaigns.update
Update a draft campaign’s name, group, audience (mailing list, segment, or filter), or scheduling. At least one field must be provided. Once a campaign has been sent, only its name and campaignGroupId can be updated. Passing scheduling { method: “now” } on a draft sends it to its whole audience right away.
Risk: destructive
audienceFilter full type
audienceFilter full type
scheduling full type
scheduling full type
audienceFilter full type
audienceFilter full type
scheduling full type
scheduling full type
Components
create
components.create
Create a new email component from an LMX body.
Risk: write
get
components.get
Retrieve a single component by ID.
Risk: read
list
components.list
Retrieve a paginated list of email components.
Risk: read
pagination full type
pagination full type
data full type
data full type
update
components.update
Update a component’s name and/or body. When the lmx body changes, the update cascades to every email using this component, and affectedEmailCount reports how many were affected.
Risk: write
object
Output full type
Output full type
Contacts
create
contacts.create
Create a contact with fixed and custom properties; answers 409 when the email or userId already exists
Risk: write
createProperty
contacts.createProperty
Create a custom contact property.
Risk: write
delete
contacts.delete
Permanently delete a contact by email or userId; the contact and its subscriptions cannot be restored
Risk: destructive · Irreversible
find
contacts.find
Find contacts by email or user ID; answers an empty array when none match
Risk: read
object[]
Output full type
Output full type
getSuppression
contacts.getSuppression
Read whether a contact is suppressed from emails and the quota left for removing suppressions
Risk: read
contact full type
contact full type
removalQuota full type
removalQuota full type
listProperties
contacts.listProperties
List the contact property definitions, all of them or only the custom ones
Risk: read
object[]
Output full type
Output full type
removeSuppression
contacts.removeSuppression
Remove a suppressed contact from the suppression list by email or userId. Include only one query parameter. Uses one of a small rolling 30-day removal quota; the address can receive email again.
Risk: destructive · Irreversible
removalQuota full type
removalQuota full type
update
contacts.update
Update a contact found by email or userId, creating it when no match exists (upsert)
Risk: write
Dedicated Sending Ips
list
dedicatedSendingIps.list
Retrieve a list of Loops’ dedicated sending IP addresses. This endpoint is provided for the rare instances where you may need to whitelist our sending IPs.
Risk: read
string[]
Email Messages
get
emailMessages.get
Retrieve an email message, including its compiled LMX content.
Risk: read
contactPropertiesFallbacks full type
contactPropertiesFallbacks full type
eventPropertiesFallbacks full type
eventPropertiesFallbacks full type
dataVariablesFallbacks full type
dataVariablesFallbacks full type
warnings full type
warnings full type
render
emailMessages.render
Render the HTML of an email message the way its preview email is rendered. Nothing is sent.
Risk: read
contactProperties full type
contactProperties full type
eventProperties full type
eventProperties full type
dataVariables full type
dataVariables full type
runGuardian
emailMessages.runGuardian
Validate an email message’s content against Guardian rules and return any errors and warnings. Errors must be resolved before the email can be published, warnings are advisory.
Risk: read
errors full type
errors full type
warnings full type
warnings full type
sendPreview
emailMessages.sendPreview
Send a test preview of an email message to one or more addresses. Sends real preview emails to every listed address.
Risk: destructive
contactProperties full type
contactProperties full type
eventProperties full type
eventProperties full type
dataVariables full type
dataVariables full type
update
emailMessages.update
Update fields on an email message (subject, preview text, sender, LMX content). A campaign must be in draft status. You can only edit the draft email message of a transactional email. A workflow must not be sending.
Risk: write
contactPropertiesFallbacks full type
contactPropertiesFallbacks full type
eventPropertiesFallbacks full type
eventPropertiesFallbacks full type
dataVariablesFallbacks full type
dataVariablesFallbacks full type
contactPropertiesFallbacks full type
contactPropertiesFallbacks full type
eventPropertiesFallbacks full type
eventPropertiesFallbacks full type
dataVariablesFallbacks full type
dataVariablesFallbacks full type
warnings full type
warnings full type
Event Patterns
get
eventPatterns.get
Retrieve event pattern details for a workflow event trigger.
Risk: read
eventProperties full type
eventProperties full type
getByName
eventPatterns.getByName
Retrieve event pattern details by event name for a workflow event trigger. Event names are case-sensitive, so PaymentReceived and paymentReceived are different events.
Risk: read
eventProperties full type
eventProperties full type
list
eventPatterns.list
Retrieve a paginated list of event patterns available to workflow event trigger nodes.
Risk: read
pagination full type
pagination full type
data full type
data full type
Events
send
events.send
Send an event for a contact; this can trigger workflows that email real people
Risk: destructive
Footers
create
footers.create
Create a footer with one variant. The variant starts with an unpublished draft that has the company name, company address and unsubscribe link. Emails cannot use the footer until you publish the variant.
Risk: write
variants full type
variants full type
delete
footers.delete
Delete a footer and its variants. You cannot delete the team’s default footer or a footer that emails use.
Risk: destructive · Irreversible
get
footers.get
Retrieve a single footer by ID, with the content of each variant.
Risk: read
variants full type
variants full type
getVariant
footers.getVariant
Retrieve a footer variant’s draft and published content as LMX.
Risk: read
list
footers.list
Retrieve a paginated list of footers, most recently created first.
Risk: read
pagination full type
pagination full type
data full type
data full type
publishVariant
footers.publishVariant
Publish the variant’s draft LMX content, to replace the current published LMX content. Emails that use the footer will immediately use the newly published content.
Risk: destructive
setDefault
footers.setDefault
Make a published footer the team’s default footer. New campaign and workflow emails use the default footer. existingEmails picks which existing emails switch to it. With none, only new emails use it.
Risk: write
object
Output full type
Output full type
update
footers.update
Update a footer’s name or placement. Changes apply at once, also to running workflows. Emails already sent don’t change. To change the default footer, use POST /v1/footers/{footerId}/set-default.
Risk: write
variants full type
variants full type
updateVariant
footers.updateVariant
Update a footer variant’s LMX content. Emails keep the variant’s published content until you publish the updated variant.
Risk: write
Lists
list
lists.list
List every mailing list in the team
Risk: read
object[]
Output full type
Output full type
Themes
create
themes.create
Create a new email theme for use across Loops emails.
Risk: write
styles full type
styles full type
styles full type
styles full type
get
themes.get
Retrieve a single theme by ID.
Risk: read
styles full type
styles full type
list
themes.list
Retrieve a paginated list of email themes, most recently created first.
Risk: read
pagination full type
pagination full type
data full type
data full type
update
themes.update
Update a theme’s name and/or styles. When styles change, the update cascades to every email using this theme, and affectedEmailCount in the response reports how many emails were affected.
Risk: write
styles full type
styles full type
object
Output full type
Output full type
Transactional
list
transactional.list
Get a list of published transactional emails.
Risk: read
pagination full type
pagination full type
data full type
data full type
send
transactional.send
Send a published transactional email to a real inbox; pass an idempotencyKey (max 100 chars) to make a retry within 24 hours return 409 instead of a duplicate
Risk: destructive
attachments full type
attachments full type
Transactional Emails
create
transactionalEmails.create
Create a new transactional email. An empty draft email message is created automatically and its draftEmailMessageId is returned.
Risk: write
ensureDraft
transactionalEmails.ensureDraft
Ensure the transactional email has a draft email message. If a draft already exists it is returned unchanged; otherwise a new empty draft is created (seeded from the most recent published version when present).
Risk: write
get
transactionalEmails.get
Retrieve a single transactional email by ID.
Risk: read
getMetrics
transactionalEmails.getMetrics
Retrieve all-time delivery metrics for a transactional email, totalled across every published version.
Risk: read
list
transactionalEmails.list
Retrieve a paginated list of transactional emails, most recently created first.
Risk: read
pagination full type
pagination full type
data full type
data full type
publish
transactionalEmails.publish
Publish the transactional email’s current draft email message. The draft becomes the published version and the draft is cleared.
Risk: destructive
update
transactionalEmails.update
Update a transactional email’s name or group. At least one field must be provided.
Risk: write
Transactional Groups
create
transactionalGroups.create
Create a new transactional group.
Risk: write
get
transactionalGroups.get
Retrieve a single transactional group by ID.
Risk: read
list
transactionalGroups.list
Retrieve a paginated list of transactional groups, most recently created first.
Risk: read
pagination full type
pagination full type
data full type
data full type
update
transactionalGroups.update
Update a transactional group’s name or description. At least one field must be provided. The reserved “Unsorted” group cannot be edited.
Risk: write
Uploads
complete
uploads.complete
Finalize an image upload after the file has been uploaded to the pre-signed URL. Returns the public URL of the uploaded image asset.
Risk: write
create
uploads.create
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 /uploads/{emailAssetId}/complete to finalize the asset. Answers a presigned URL; PUT the file bytes there yourself, then call uploads.complete.
Risk: write
Workflow Groups
create
workflowGroups.create
Create a new workflow group.
Risk: write
get
workflowGroups.get
Retrieve a single workflow group by ID.
Risk: read
list
workflowGroups.list
Retrieve a paginated list of workflow groups, most recently created first.
Risk: read
pagination full type
pagination full type
data full type
data full type
update
workflowGroups.update
Update a workflow group’s name or description. At least one field must be provided. The reserved “Unsorted” group cannot be edited.
Risk: write
Workflow Nodes
addBranch
workflowNodes.addBranch
Add a branch and a child node under an existing Branch or Experiment node. Returns the created child node plus the latest workflow. - Adding a branch to a BranchNode creates one AudienceFilter child node.
Risk: write
node full type
node full type
workflow full type
workflow full type
create
workflowNodes.create
Create a new default workflow node and return it with the latest workflow.
Risk: write
object
Input full type
Input full type
node full type
node full type
workflow full type
workflow full type
delete
workflowNodes.delete
Delete a single workflow node. 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.
Risk: destructive · Irreversible
object
Output full type
Output full type
deleteRecursive
workflowNodes.deleteRecursive
Delete a node and its downstream subtree. If contacts are queued at any node that would be deleted, Loops returns with "status": "queuedContactsFound" instead of deleting.
Risk: destructive · Irreversible
object
Output full type
Output full type
get
workflowNodes.get
Retrieve detailed data for a single workflow node.
Risk: read
object
Output full type
Output full type
getMetrics
workflowNodes.getMetrics
Retrieve all-time email engagement metrics for a workflow SendEmailAction node. Nodes of any other type return a 400 response. A SendEmailAction node with an email that has not sent anything yet reports every counter as 0.
Risk: read
reroute
workflowNodes.reroute
Reroute the source node’s existing connection to another valid target node. Returns the updated source node and the latest workflow.
Risk: write
object
Output full type
Output full type
update
workflowNodes.update
Update workflow-node-owned fields for a single node. To update a node, the workflow’s state must not be Sending. Shared resources such as email messages and audience segments should be updated through their own APIs.
Risk: write
payload full type
payload full type
object
Output full type
Output full type
Workflows
changeMailingList
workflows.changeMailingList
Dry run or apply a workflow mailing list change. 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.
Risk: destructive
object
Output full type
Output full type
create
workflows.create
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.
Risk: write
nodes full type
nodes full type
delete
workflows.delete
Delete a workflow. 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.
Risk: destructive · Irreversible
get
workflows.get
Retrieve a workflow graph with node type names, connections, and selected display fields.
Risk: read
nodes full type
nodes full type
list
workflows.list
Retrieve a paginated list of workflows.
Risk: read
pagination full type
pagination full type
data full type
data full type
update
workflows.update
Update a workflow’s name, description, or group. At least one field must be provided. To change the workflow’s mailing list, use the POST /v1/workflows/{workflowId}/mailing-list endpoint instead.
Risk: write
nodes full type
nodes full type