Signup
Create (or enable API on an existing) workspace org and return the first API key. Used by docs-only developers to bootstrap API access.
Flow:
- Authenticate the caller via Firebase ID token.
- If
existing_org_idis set and the user is an owner/admin, light up API fields on that Firestore org. Otherwise create a fresh org doc under the user’s ownership. - Mint a
sk_live_*key, store its hash, return the raw value once in this response.
The raw key is never persisted in the response body elsewhere — subsequent list calls only show the prefix.
Authorizations
Send X-API-Key: sk_live_<your_key>. Keys are issued via POST /signup or via the dashboard. Legacy callers may also use Authorization: Bearer sk_live_<your_key>.
Body
Create a workspace org + first API key in one shot.
The caller is authenticated via Firebase ID token. If they already
belong to a workspace and want to enable API access on it, pass its
existing_org_id instead of creating a new one.
Response
Successful Response
