Skip to main content
New to Corsair? See API access, authentication, and error handling.

Apikey

verifyConnection

apikey.verifyConnection Verify the API key and return the team name it belongs to Risk: read
Input: empty object Output

Audience Segments

create

audienceSegments.create Create a new audience segment. Risk: write
Input
Output

get

audienceSegments.get Retrieve a single audience segment by ID. Risk: read
Input Output

list

audienceSegments.list Retrieve a paginated list of audience segments, most recently created first. Risk: read
Input Output

Campaign Groups

create

campaignGroups.create Create a new campaign group. Risk: write
Input Output

get

campaignGroups.get Retrieve a single campaign group by ID. Risk: read
Input Output

list

campaignGroups.list Retrieve a paginated list of campaign groups, most recently created first. Risk: read
Input Output

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
Input Output

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
Input Creates a draft and its empty email message (emailMessageId); set subject and content with emailMessages.update. scheduling { method: now } sends at once.
Output

get

campaigns.get Retrieve a single campaign by ID. Risk: read
Input Output

getMetrics

campaigns.getMetrics Retrieve all-time email engagement metrics for a campaign. Risk: read
Input Output

list

campaigns.list Retrieve a paginated list of campaigns. Risk: read
Input Output

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
Input
Output

Components

create

components.create Create a new email component from an LMX body. Risk: write
Input Output

get

components.get Retrieve a single component by ID. Risk: read
Input Output

list

components.list Retrieve a paginated list of email components. Risk: read
Input Output

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
Input Output: object

Contacts

create

contacts.create Create a contact with fixed and custom properties; answers 409 when the email or userId already exists Risk: write
Input Output

createProperty

contacts.createProperty Create a custom contact property. Risk: write
Input Output

delete

contacts.delete Permanently delete a contact by email or userId; the contact and its subscriptions cannot be restored Risk: destructive · Irreversible
Input Permanent. Loops answers 404 when the contact does not exist. Output

find

contacts.find Find contacts by email or user ID; answers an empty array when none match Risk: read
Input Output: object[]

getSuppression

contacts.getSuppression Read whether a contact is suppressed from emails and the quota left for removing suppressions Risk: read
Input Output

listProperties

contacts.listProperties List the contact property definitions, all of them or only the custom ones Risk: read
Input Pass list: ‘all’ or list: ‘custom’; the answer is a bare array, not a paginated envelope. Output: object[]

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
Input Uses one of a small rolling 30-day removal quota (see contacts.getSuppression). Output

update

contacts.update Update a contact found by email or userId, creating it when no match exists (upsert) Risk: write
Input Updates by email or userId and upserts when no match exists, so a typo in the selector silently creates a new contact. Output

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
Input: empty object Output: string[]

Email Messages

get

emailMessages.get Retrieve an email message, including its compiled LMX content. Risk: read
Input Output

render

emailMessages.render Render the HTML of an email message the way its preview email is rendered. Nothing is sent. Risk: read
Input
Output

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
Input Output

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
Input Sends real preview emails to every address in emails. Campaign previews take contactProperties, workflow previews also eventProperties, transactional previews dataVariables.
Output

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
Input
Output

Event Patterns

get

eventPatterns.get Retrieve event pattern details for a workflow event trigger. Risk: read
Input Output

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
Input Output

list

eventPatterns.list Retrieve a paginated list of event patterns available to workflow event trigger nodes. Risk: read
Input Output

Events

send

events.send Send an event for a contact; this can trigger workflows that email real people Risk: destructive
Input Needs eventName and one of email or userId. Fires any workflow that listens for the event, which can send email to the contact. Output

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
Input Output

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
Input Output

get

footers.get Retrieve a single footer by ID, with the content of each variant. Risk: read
Input Output

getVariant

footers.getVariant Retrieve a footer variant’s draft and published content as LMX. Risk: read
Input Output

list

footers.list Retrieve a paginated list of footers, most recently created first. Risk: read
Input Output

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
Input Output

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
Input Output: object

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
Input Output

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
Input Output

Lists

list

lists.list List every mailing list in the team Risk: read
Input: empty object The answer is a bare array. There is no pagination on this endpoint. Output: object[]

Themes

create

themes.create Create a new email theme for use across Loops emails. Risk: write
Input
Output

get

themes.get Retrieve a single theme by ID. Risk: read
Input Output

list

themes.list Retrieve a paginated list of email themes, most recently created first. Risk: read
Input Output

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
Input
Output: object

Transactional

list

transactional.list Get a list of published transactional emails. Risk: read
Input Output

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
Input The transactionalId must name a published transactional email. Requires the data variables that email declares; missing ones answer 400 with their names in the message.
Output

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
Input Output

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
Input Output

get

transactionalEmails.get Retrieve a single transactional email by ID. Risk: read
Input Output

getMetrics

transactionalEmails.getMetrics Retrieve all-time delivery metrics for a transactional email, totalled across every published version. Risk: read
Input Output

list

transactionalEmails.list Retrieve a paginated list of transactional emails, most recently created first. Risk: read
Input Output

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
Input Output

update

transactionalEmails.update Update a transactional email’s name or group. At least one field must be provided. Risk: write
Input Output

Transactional Groups

create

transactionalGroups.create Create a new transactional group. Risk: write
Input Output

get

transactionalGroups.get Retrieve a single transactional group by ID. Risk: read
Input Output

list

transactionalGroups.list Retrieve a paginated list of transactional groups, most recently created first. Risk: read
Input Output

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
Input Output

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
Input Output

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
Input Output

Workflow Groups

create

workflowGroups.create Create a new workflow group. Risk: write
Input Output

get

workflowGroups.get Retrieve a single workflow group by ID. Risk: read
Input Output

list

workflowGroups.list Retrieve a paginated list of workflow groups, most recently created first. Risk: read
Input Output

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
Input Output

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
Input Output

create

workflowNodes.create Create a new default workflow node and return it with the latest workflow. Risk: write
Input: object
Output

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
Input Output: object

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
Input Output: object

get

workflowNodes.get Retrieve detailed data for a single workflow node. Risk: read
Input Output: object

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
Input Output

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
Input Output: object

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
Input
Output: object

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
Input Output: object

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
Input Output

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
Input Output

get

workflows.get Retrieve a workflow graph with node type names, connections, and selected display fields. Risk: read
Input Output

list

workflows.list Retrieve a paginated list of workflows. Risk: read
Input Output

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
Input Output