Per request options
Every SDK method accepts request options.Authentication behavior
- If you set
token, the SDK addsauthorization: Bearer <token>. - If you pass an explicit
Authorizationheader, the SDK keeps your header. - You can override token per request.
Tenant scoping behavior
- Tenant header key is
tenant-id. - If you set
tenantIdon the client, it applies to every request. - If you set
tenantIdon a request, it overrides the client value.
Expand behavior
For resources that supportexpand, you can pass one value or an array.
Direct request helper
Usesdk.request when you need a low-level call.
Validation errors
For methods that validate request bodies, invalid payloads fail before any HTTP call.API errors
Non-2xx responses throwApiClientError.
Response shape
Each successful call returns:statusok(alwaystruefor resolved calls)headersbody(raw parsed body)data(unwrapped from{ data: ... }when present)