BootstrapOrg is the first call that you make against a fresh ClutchCall deployment for a new tenant. It creates the tenant record and mints the first admin service account. Every subsequent admin call uses a JWT signed by that account.
There is no SDK wrapper. Use the raw RPC envelope. This is a one-shot call. BootstrapOrg refuses to run twice for the same tenant_id.

BootstrapOrg

Request (BootstrapOrgRequest): Response (BootstrapOrgResponse): After a successful response, the keypair that you supplied is the admin service account for the tenant. Use the private half to sign the admin_token for every subsequent admin call.
  1. Generate an RSA-2048 keypair locally.
  2. Keep the bootstrap secret in a short-lived store (CI vault, HSM, or one-shot env var).
  3. Call BootstrapOrg with the public half and a kid that you choose.
  4. Discard the bootstrap secret. You cannot use it again. The gateway burns it on success.
  5. From now on, sign admin JWTs with the private half. Most operators then call PublishServiceAccount first, to create separate "sdk"-role keys for their applications.

Failure modes