Skip to main content
Every campayn.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Contacts

createContact

contacts.createContact Create a new contact in a contact list. Risk: write
Input
Output

deleteContact

contacts.deleteContact Delete a contact by contact ID. Risk: destructive · Irreversible
Input Output

getContact

contacts.getContact Get full contact details by contact ID. Risk: read
Input Output

getContacts

contacts.getContacts List contacts for a contact list, with optional contact keyword filtering. Risk: read
Input Output: object[]

unsubscribeContact

contacts.unsubscribeContact Unsubscribe contacts from a list by contact ID or by email address. Risk: write
Input Output: object

Lists

deleteList

lists.deleteList Delete a contact list by list ID. Risk: destructive · Irreversible
Input Output

getLists

lists.getLists List all contact lists visible to the authenticated user. Risk: read
Input: empty object Output: object[]

updateList

lists.updateList Update a contact list name or tags by list ID. Risk: write
Input Output

Messages

getMessages

messages.getMessages List messages visible to the authenticated user. Risk: read
Input: empty object Output: object[]

getMessageStatistics

messages.getMessageStatistics Get message statistics for a specific message ID. Risk: read
Input Output

Reports

getReports

reports.getReports Get report calendar entries for sent and scheduled emails, optionally filtered by Unix timestamp range. Risk: read
Input Output: object[]

Signup

signup

signup.signup Create a Campayn account via POST /signup on the site root (not /api/v1). Risk: write
Input Output

Webforms

deleteWebform

webforms.deleteWebform Delete a webform by list ID and webform ID. Risk: destructive · Irreversible
Input Output

getWebform

webforms.getWebform Get a webform by list ID and webform ID. Risk: read
Input Output

getWebforms

webforms.getWebforms List webforms for a contact list, with optional form type filter. Risk: read
Input Output: object[]