create_app_api_key
Issue an API key for an app so REST endpoints can authenticate requests. Store it server-side and include X-App-User to enable per-user authorization.
Instructions
Create an API key for an app. SECURITY: the key must live server-side only (env var, Next.js API routes) — never in browser code. If the app has its own users, the server also sends X-App-User: <user id> with the key so per-user endpoints know who is acting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| appId | Yes | ||
| organizationId | No |