Skip to main content
All methods below belong to 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() and listProjectRecords().
  • getSecret(), readRecord() and getAll().
  • listProviders().
  • getGateway(), listGatewayTokens(), listGatewayLogs(), getGatewayLogDetail() and listGatewayKeyAccess().
Every other method is human-only. The SDK does not turn a human-only API operation into a Service Account operation. RBAC and record key access can further reduce what either identity may do.

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 accountId select 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() and getServiceAccount() can return null when 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:
Read only metadata first, then decrypt only when the process needs the value:
Create a gateway token and display the one-time value only to the custody step:
Read project-wide usage without requesting stored request bodies:

Failure behavior

Every API failure throws AirctrlError. Inspect its fields instead of parsing prose.
Do not retry 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.