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
createOnboardingLink
accounts.createOnboardingLink
Create an account onboarding link
Risk: write
Output:
Record<string, any>
getAccount
accounts.getAccount
Retrieve a Spoki account
Risk: read
Output
channels full type
channels full type
getAccountByPhone
accounts.getAccountByPhone
Retrieve a Spoki account by phone
Risk: read
Output
channels full type
channels full type
getCurrentReport
accounts.getCurrentReport
Get the current account report
Risk: read
Output:
Record<string, any>[] \| Record<string, any>
listAccounts
accounts.listAccounts
List Spoki WhatsApp accounts
Risk: read
Output:
object[]
Output full type
Output full type
Agencies
list
agencies.list
List agencies
Risk: read
Output:
Record<string, any>[] \| Record<string, any>
Automation
triggerAutomation
automation.triggerAutomation
Trigger a Spoki automation
Risk: write
Output: empty object
Automations
list
automations.list
List automations
Risk: read
Output:
Record<string, any>[] \| Record<string, any>
retrieve
automations.retrieve
Retrieve an automation
Risk: read
Output:
Record<string, any>
Campaigns
list
campaigns.list
List campaigns
Risk: read
Output:
Record<string, any>[] \| Record<string, any>
update
campaigns.update
Update a campaign
Risk: write
Output:
Record<string, any>
Contacts
addOperator
contacts.addOperator
Assign an operator to a contact
Risk: write
Output:
Record<string, any>
createOrUpdate
contacts.createOrUpdate
Create or update a contact by phone
Risk: write
Output:
Record<string, any>
delete
contacts.delete
Delete a contact
Risk: destructive · Irreversible
Output:
Record<string, any> \| any[]
list
contacts.list
List contacts
Risk: read
Output:
Record<string, any>[] \| Record<string, any>
removeOperator
contacts.removeOperator
Remove an operator from a contact
Risk: write
Output:
Record<string, any>
retrieve
contacts.retrieve
Retrieve a contact
Risk: read
Output:
Record<string, any>
syncBulk
contacts.syncBulk
Bulk sync contacts
Risk: write
Output:
Record<string, any>
update
contacts.update
Update a contact
Risk: write
Output:
Record<string, any>
Custom Fields
create
customFields.create
Create a custom field
Risk: write
Output:
Record<string, any>
delete
customFields.delete
Delete a custom field
Risk: destructive · Irreversible
Output:
Record<string, any>
list
customFields.list
List custom fields
Risk: read
Output:
Record<string, any>[] \| Record<string, any>
retrieve
customFields.retrieve
Retrieve a custom field
Risk: read
Output:
Record<string, any>
update
customFields.update
Update a custom field
Risk: write
Output:
Record<string, any>
Invitations
resend
invitations.resend
Resend an invitation
Risk: write
Output:
Record<string, any>
updateRole
invitations.updateRole
Update an invitation role
Risk: write
Output:
Record<string, any>
Lists
create
lists.create
Create a contact list
Risk: write
Output:
Record<string, any>
delete
lists.delete
Delete a contact list
Risk: destructive · Irreversible
Output:
Record<string, any>
list
lists.list
List contact lists
Risk: read
Output:
Record<string, any>[] \| Record<string, any>
removeAllContacts
lists.removeAllContacts
Remove all contacts from a list
Risk: write
Output:
Record<string, any>
removeContacts
lists.removeContacts
Remove contacts from a list
Risk: write
Output:
Record<string, any>
retrieve
lists.retrieve
Retrieve a contact list
Risk: read
Output:
Record<string, any>
syncContacts
lists.syncContacts
Sync contacts into a list
Risk: write
Output:
Record<string, any>
Media
create
media.create
Create a media file
Risk: write
Record<string, any>
delete
media.delete
Delete a media file
Risk: destructive · Irreversible
Output:
Record<string, any>
list
media.list
List media files
Risk: read
Output:
Record<string, any>[] \| Record<string, any>
retrieve
media.retrieve
Retrieve a media file
Risk: read
Output:
Record<string, any>
update
media.update
Update a media file
Risk: write
Output:
Record<string, any>
Messaging
sendMessage
messaging.sendMessage
Send a WhatsApp message
Risk: write
Output: empty object
Partners
list
partners.list
List partners
Risk: read
Output:
Record<string, any>[] \| Record<string, any>
Reports
list
reports.list
List usage reports
Risk: read
Output:
Record<string, any>[] \| Record<string, any>
Roles
addServiceUser
roles.addServiceUser
Add a service user
Risk: write
Record<string, any>
checkPrivateKey
roles.checkPrivateKey
Check whether a role has a private key
Risk: read
Output:
Record<string, any>
delete
roles.delete
Delete a role
Risk: destructive · Irreversible
Output:
Record<string, any>
generatePrivateKey
roles.generatePrivateKey
Generate a role private key
Risk: write
Output:
Record<string, any>
list
roles.list
List roles
Risk: read
Output:
Record<string, any>[] \| Record<string, any>
retrieve
roles.retrieve
Retrieve a role
Risk: read
Output:
Record<string, any>
update
roles.update
Update a role
Risk: write
Output:
Record<string, any>
Tags
list
tags.list
List tags
Risk: read
Output:
Record<string, any>[] \| Record<string, any>
retrieve
tags.retrieve
Retrieve a tag
Risk: read
Output:
Record<string, any>
Templates
clone
templates.clone
Clone a template
Risk: write
Output:
Record<string, any>
create
templates.create
Create a WhatsApp template
Risk: write
Output:
Record<string, any>
delete
templates.delete
Delete a WhatsApp template
Risk: destructive · Irreversible
Output:
Record<string, any>
list
templates.list
List templates
Risk: read
Output:
Record<string, any>[] \| Record<string, any>
retrieve
templates.retrieve
Retrieve a template
Risk: read
Output:
Record<string, any>
revertToDraft
templates.revertToDraft
Revert a template to draft
Risk: write
Output:
Record<string, any>
update
templates.update
Update a WhatsApp template
Risk: write
Output:
Record<string, any>
Tickets
create
tickets.create
Create a ticket
Risk: write
Record<string, any>
delete
tickets.delete
Delete a ticket
Risk: destructive · Irreversible
Output:
Record<string, any>
list
tickets.list
List tickets
Risk: read
Output:
Record<string, any>[] \| Record<string, any>