Get My Organization
Return the authenticated caller’s own organization record.
Self-scoped replacement for the deleted
GET /organizations/{organization_id} detail endpoint. Only
reads the caller’s own organization, so the tenant-enumeration
risk that motivated PRA-362 does not apply: there is no
organization_id path parameter for a customer admin to
substitute another tenant’s id into.
Returns:
Organization record for user.organization_id.
Response
Successful Response
Organization record persisted in the shared platform namespace.
Represents a Clerk organization synced via webhooks. Stored in the shared namespace because organization data must be accessible before any organization context exists (e.g., during webhook processing).
Identity fields (frozen): organization_id: Clerk organization ID, used as the record ID.
Metadata: name: Display name of the organization. slug: URL-friendly organization identifier from Clerk.
State (system-managed):
status: Lifecycle status.
bootstrap_error: Short human-readable message recording the
latest bootstrap failure; cleared when bootstrap completes.
bootstrap_deadline_at: Time after which an organization still
bootstrapping is moved to bootstrap_failed.
last_published_at: When the organization last started publishing
a provider version; written in the publish transaction so a
concurrent teardown conflicts with it.
Inherited from PragmaModel: created_at: Creation timestamp (frozen). updated_at: Last update timestamp (mutable).
Lifecycle status of an organization.
Bootstrap states: BOOTSTRAPPING: Organization row exists, bootstrap worker has not yet finished provisioning tenant namespace resources. READY: Organization is fully provisioned and usable. BOOTSTRAP_FAILED: The bootstrap deadline passed before setup finished. Recovery is manual: operators contact support or clear the failure via direct platform intervention.
Teardown states: DEACTIVATING: Cleanup worker is tearing down tenant resources. DELETED: Organization fully cleaned up.
bootstrapping, ready, bootstrap_failed, deactivating, deleted