Register an app
gate_add_appGive one app its own key and the calls it may make. Routes are rules like "GET /orders/:id", "POST /orders", "GET /users/{user}/orders" (per-user), or example calls like "GET /orders/42", which become rules. Returns the app key (shown once).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The app name, e.g. "storefront" or "nightly sync" | |
| routes | Yes | Only the calls this app makes, one "METHOD /path" per item | |
| admin_key | Yes | The project admin key (ga_...). Read it from the .env; never print it. | |
| per_minute | No | Calls per minute for this app (default 60) | |
| project_id | Yes | The project id from gate_create_project, e.g. p1a2b3... |