| Field | Type | Required | Description |
|---|---|---|---|
InstanceID | string | Yes | Instance ID (path or struct field). |
InstanceToken | string | Yes | Instance token (X-Instance-Token header). |
context.Context as the first argument.
Auth
Auth.GetAccessToken(ctx)
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(ctx, req)
InstancePublicCreateResponse — id, name, token, url, webhook, events_subscribe, status, created_at, updated_at.
Instances.List(ctx, req)
{ page, size, total, total_pages, content[], summary }. Each content item uses the public instance summary shape.
Instances.Get(ctx, instanceID)
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(ctx, instanceID, body, options)
instances.get().
Instances.Restart(ctx, instanceID, options)
InstanceActionResponse — instance_id, status, details.
Instances.Delete(ctx, instanceID, options)
204) or the standard error envelope.
Instances.Subscribe(ctx, instanceID, body, options)
BillingHostedSession — url, session_id, mode (direct or checkout), subscription_id.
Instances.ResumeSubscription(ctx, instanceID, options)
{ status: "ok" }.
Instances.Cancel(ctx, instanceID, options)
{ message } confirming cancellation or scheduled cancel.
Advanced calls
Useclient.Request() when you need an operation not yet wrapped by a resource:

