| Field | Type | Required | Description |
|---|---|---|---|
instanceId | string | Yes | Instance ID. |
instanceToken | string | Yes | Instance token. |
Auth
auth.getAccessToken()
Gets a JWT with clientToken and clientSecret. In most flows, resources do this automatically.
string JWT access token (accessToken from POST /token).
Instances and billing
instances.create(data)
InstancePublicCreateResponse — id, name, token, url, webhook, eventsSubscribe, status, createdAt, updatedAt.
instances.list(data?)
{ page, size, total, totalPages, content[], summary }. Each content item uses the public instance summary shape.
instances.get(instanceId, options?)
Returns one instance in the same public summary format as each row from instances.list().
instances.list() item (id, name, token, url, webhook, status, etc.).
instances.update(instanceId, data, options?)
instances.get().
instances.restart(instanceId, options?)
InstanceActionResponse — instanceId, status, details.
instances.delete(instanceId, options?)
204) or the standard error envelope.
instances.subscribe(instanceId, data?, options?)
BillingHostedSession — url, sessionId, mode (direct or checkout), subscriptionId.
instances.resumeSubscription(instanceId, options?)
{ status: "ok" }.
instances.cancel(instanceId, options?)
{ message } confirming cancellation or scheduled cancel.
Advanced calls
Usevzaps.request() when you need an operation not yet wrapped by a resource:

