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
account full type
account full type
limits full type
limits full type
usage full type
usage full type
testApiKey
account.testApiKey
Validate your API key and retrieve account info. Use when confirming credentials before performing other operations.
Risk: read
account full type
account full type
limits full type
limits full type
usage full type
usage full type
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
contact_details full type
contact_details full type
contact full type
contact full type
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
Output
contacts full type
contacts full type
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
webhooks full type
webhooks full type