Skip to main content
Every spoki.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.

Accounts

accounts.createOnboardingLink Create an account onboarding link Risk: write
Input Output: object

getAccount

accounts.getAccount Retrieve a Spoki account Risk: read
Input Output

getAccountByPhone

accounts.getAccountByPhone Retrieve a Spoki account by phone Risk: read
Input Output

getCurrentReport

accounts.getCurrentReport Get the current account report Risk: read
Input Output: object

listAccounts

accounts.listAccounts List Spoki WhatsApp accounts Risk: read
Input Output: object[]

Agencies

list

agencies.list List agencies Risk: read
Input Output: object

Automation

triggerAutomation

automation.triggerAutomation Trigger a Spoki automation Risk: write
Input
Output: empty object

Automations

list

automations.list List automations Risk: read
Input Output: object

retrieve

automations.retrieve Retrieve an automation Risk: read
Input Output: object

Campaigns

list

campaigns.list List campaigns Risk: read
Input Output: object

update

campaigns.update Update a campaign Risk: write
Input Output: object

Contacts

addOperator

contacts.addOperator Assign an operator to a contact Risk: write
Input Output: object

createOrUpdate

contacts.createOrUpdate Create or update a contact by phone Risk: write
Input Output: object

delete

contacts.delete Delete a contact Risk: destructive · Irreversible
Input Output: object[]

list

contacts.list List contacts Risk: read
Input Output: object

removeOperator

contacts.removeOperator Remove an operator from a contact Risk: write
Input Output: object

retrieve

contacts.retrieve Retrieve a contact Risk: read
Input Output: object

syncBulk

contacts.syncBulk Bulk sync contacts Risk: write
Input Output: object

update

contacts.update Update a contact Risk: write
Input Output: object

Custom Fields

create

customFields.create Create a custom field Risk: write
Input Output: object

delete

customFields.delete Delete a custom field Risk: destructive · Irreversible
Input Output: object

list

customFields.list List custom fields Risk: read
Input Output: object

retrieve

customFields.retrieve Retrieve a custom field Risk: read
Input Output: object

update

customFields.update Update a custom field Risk: write
Input Output: object

Invitations

resend

invitations.resend Resend an invitation Risk: write
Input Output: object

updateRole

invitations.updateRole Update an invitation role Risk: write
Input Output: object

Lists

create

lists.create Create a contact list Risk: write
Input Output: object

delete

lists.delete Delete a contact list Risk: destructive · Irreversible
Input Output: object

list

lists.list List contact lists Risk: read
Input Output: object

removeAllContacts

lists.removeAllContacts Remove all contacts from a list Risk: write
Input Output: object

removeContacts

lists.removeContacts Remove contacts from a list Risk: write
Input Output: object

retrieve

lists.retrieve Retrieve a contact list Risk: read
Input Output: object

syncContacts

lists.syncContacts Sync contacts into a list Risk: write
Input Output: object

Media

create

media.create Create a media file Risk: write
Input: empty object Output: object

delete

media.delete Delete a media file Risk: destructive · Irreversible
Input Output: object

list

media.list List media files Risk: read
Input Output: object

retrieve

media.retrieve Retrieve a media file Risk: read
Input Output: object

update

media.update Update a media file Risk: write
Input Output: object

Messaging

sendMessage

messaging.sendMessage Send a WhatsApp message Risk: write
Input
Output: empty object

Partners

list

partners.list List partners Risk: read
Input Output: object

Reports

list

reports.list List usage reports Risk: read
Input Output: object

Roles

addServiceUser

roles.addServiceUser Add a service user Risk: write
Input: empty object Output: object

checkPrivateKey

roles.checkPrivateKey Check whether a role has a private key Risk: read
Input Output: object

delete

roles.delete Delete a role Risk: destructive · Irreversible
Input Output: object

generatePrivateKey

roles.generatePrivateKey Generate a role private key Risk: write
Input Output: object

list

roles.list List roles Risk: read
Input Output: object

retrieve

roles.retrieve Retrieve a role Risk: read
Input Output: object

update

roles.update Update a role Risk: write
Input Output: object

Tags

list

tags.list List tags Risk: read
Input Output: object

retrieve

tags.retrieve Retrieve a tag Risk: read
Input Output: object

Templates

clone

templates.clone Clone a template Risk: write
Input Output: object

create

templates.create Create a WhatsApp template Risk: write
Input Output: object

delete

templates.delete Delete a WhatsApp template Risk: destructive · Irreversible
Input Output: object

list

templates.list List templates Risk: read
Input Output: object

retrieve

templates.retrieve Retrieve a template Risk: read
Input Output: object

revertToDraft

templates.revertToDraft Revert a template to draft Risk: write
Input Output: object

update

templates.update Update a WhatsApp template Risk: write
Input Output: object

Tickets

create

tickets.create Create a ticket Risk: write
Input: empty object Output: object

delete

tickets.delete Delete a ticket Risk: destructive · Irreversible
Input Output: object

list

tickets.list List tickets Risk: read
Input Output: object