client.instances() and client.auth() for account authentication, instance lifecycle, and billing.
For WhatsApp session flows, see Session. For chats, see Chats. For message sending, see Messages.
Pass InstanceRequestOptions with instanceToken on instance-scoped routes.
Auth
client.auth().getAccessToken()
string JWT access token (accessToken from POST /token).
Instances and billing
client.instances().create(request)
InstancePublicCreateResponse — id, name, token, url, webhook, events_subscribe, status, created_at, updated_at.
client.instances().list(request)
{ page, size, total, total_pages, content[], summary }. Each content item uses the public instance summary shape.
client.instances().get(instanceId)
instances.list() item (id, name, token, url, webhook, status, etc.).
client.instances().update(instanceId, body, options)
instances.get().
client.instances().restart(instanceId, options)
InstanceActionResponse — instance_id, status, details.
client.instances().delete(instanceId, options)
204) or the standard error envelope.
client.instances().subscribe(instanceId, body, options)
BillingHostedSession — url, session_id, mode (direct or checkout), subscription_id.
client.instances().resumeSubscription(instanceId, options)
{ status: "ok" }.
client.instances().cancel(instanceId, options)
{ message } confirming cancellation or scheduled cancel.
Advanced calls
For stricter typing, useclient.request(..., MyDto.class) or published DTOs such as SessionStatusResponse.
For the full HTTP contract, see the API tab.
