api-keys
Create Api Key
Changed onCreate a new API key for the authenticated user.
Only JWT-authenticated (browser session) requests are permitted — API key creation via an existing API key is blocked to prevent credential chaining.
Nothing here waits on Stripe — see :func:_schedule_stripe_customer_backfill.
Args: request: The incoming FastAPI request (used by SlowAPI rate limiter). body: The API key creation request payload. auth: The authenticated user context.
Returns: CreateAPIKeyResponse with the secret key (shown only once).
Raises: HTTPException: 403 if called via API key or the active team's key cap is zero, 409 if the cap is already reached or the name is taken, 500 for unexpected failures.
post/v1/create-api-key
Request
- Base URLhttps://api.pioneer.ai (the document declares no server; this is the origin it was published from)
- Auth
- API key in header X-API-Key
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
Changes
- info
endpoint added
- info