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