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

Api Webhooks

create

apiWebhooks.create Register an HTTPS endpoint for message events on the channels named in each event; Heyy then POSTs every matching message, with its content and sender, to that URL Risk: write
Input The URL must be https. Events are message.received, message.sent, message.updated, whatsapp_message_received or whatsapp_message_status, each scoped to at least one channel id from channels.search. Heyy then POSTs every matching message, with its content and sender, to that URL.
Output

remove

apiWebhooks.remove Delete a webhook endpoint by id; Heyy stops delivering to it immediately Risk: destructive · Irreversible
Input Output

apiWebhooks.search List the registered webhook endpoints with their URL, status and subscribed events Risk: read
Input
Output

update

apiWebhooks.update Change a webhook’s URL or events, or pause deliveries by setting it inactive Risk: write
Input
Output

Attributes

create

attributes.create Define a custom contact attribute: text, number, select or date, with the options a select needs and where it appears Risk: write
Input A single_select or multi_select attribute needs details.options; any other type must omit it.
Output

remove

attributes.remove Delete a custom contact attribute by id; the values contacts had for it are gone and cannot be restored. An id that does not exist fails with 404 attribute_not_found Risk: destructive · Irreversible
Input Output

search

attributes.search Search the custom contact attributes defined on the workspace, with their type, options and where they appear in Heyy Risk: read
Input
Output

Automations

search

automations.search List the automation workflows on the workspace with their status: draft, active or paused Risk: read
Input
Output

Channels

search

channels.search List the connected channels (WhatsApp, Instagram, Messenger, SMS or live chat) with their type and connection status Risk: read
Input
Output

Contacts

create

contacts.create Create a contact with a name, phone number or email, attach labels by id and set custom attribute values Risk: write
Input
Output

search

contacts.search Search contacts with a structured filter, free-text search, sorting and paging; returns the matched contacts with their labels and attribute values Risk: read
Input query is a structured expression such as equals(email, 'a@b.com') over firstName, lastName, email, phoneNumber, isSubscribed, labels and the other listed fields; search is free text over name, phone and email. They can be combined.
Output

Labels

create

labels.create Create a label with a name and a hex colour Risk: write
Input Output

remove

labels.remove Delete a label by id; it is detached from every contact that carried it Risk: destructive · Irreversible
Input Output

search

labels.search Search the labels used to group contacts, with their colours Risk: read
Input
Output

Message Templates

search

messageTemplates.search List the message templates available for a channel, with their status, content and variables Risk: read
Input
Output