AirctrlClient. Method names are the stable developer bindings verified against the public API.
For a runnable TypeScript example of every method, continue to SDK examples.
Identity availability
A human PAT may call every method on this page when RBAC permits it. A Service Account may call only:listRecords()andlistProjectRecords().getSecret(),readRecord()andgetAll().listProviders().getGateway(),listGatewayTokens(),listGatewayLogs(),getGatewayLogDetail()andlistGatewayKeyAccess().
Context and projects
Record reading and creation
Record lifecycle and sharing
Record history and audit
Providers and gateways
Gateway tokens
Gateway observability
Service Account metadata
These metadata methods require a human PAT. Service Account creation, lifecycle, credential administration and identity rotation are not public SDK capabilities. The package contains internal Web infrastructure for those flows, but it is not part of this developer contract.
Exact method signatures
Optional values end with?. Input types are exported by @airctrl/sdk, so your editor can show every
field and accepted value.
Context and projects
Records
Providers and gateways
Service Account metadata
Input and result rules
- IDs are UUID strings. Keep account, project, record, gateway, token and credential IDs separate.
- Methods with
accountIdselect the active account. The value never grants access. - List methods return arrays or paginated objects. Empty access returns an empty result, not broader data.
getProject()andgetServiceAccount()can returnnullwhen the resource is unavailable.- Write methods that create a resource return its new identifier or resource metadata.
- Methods that return no resource resolve successfully without a value.
- Record plaintext is accepted or returned only by client-side crypto methods. Raw HTTP methods work with encrypted material.
- Provider secrets and newly created gateway tokens are one-time values. Do not log their result.
End-to-end examples
Create a project, then create an encrypted record inside it:Failure behavior
Every API failure throwsAirctrlError. Inspect its fields instead of parsing prose.
400, 403, or 404 unchanged. Retry temporary 429, 500, or 503 failures with
bounded exponential backoff. Reuse the same idempotency key only for the same intended write.