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

Account

getApiUsageInfo

account.getApiUsageInfo Retrieve current API usage and account information. Use when you need to monitor your remaining quotas before sending more requests. Risk: read
Input: empty object Output

testApiKey

account.testApiKey Validate your API key and retrieve account info. Use when confirming credentials before performing other operations. Risk: read
Input: empty object Output

Contacts

createContact

contacts.createContact Create a new contact in your 2Chat account. Use after gathering and verifying first name and at least one contact detail (email, phone, or address). Risk: write
Input
Output

listContacts

contacts.listContacts List all contacts in your 2Chat account. Use when you need to retrieve your contact list after confirming your account connection. Risk: read
Input Output

Webhook Subscriptions

listWebhooks

webhookSubscriptions.listWebhooks List all configured webhook subscriptions for WhatsApp and phone call events. Returns details including webhook UUID, event type, channel UUID, callback URL, and creation timestamp. Risk: read
Input: empty object Output