> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.merge.dev/merge-gateway/automation/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server. # Automate with the Management API > Build once. Connect to every API, tool, and LLM. Ship products and agents to production without owning the integration stack. ## Docs - [Management API keys](https://docs.merge.dev/merge-gateway/automation/api-keys.md): Create and administer your organization's API keys programmatically with a management key: model allowlists, routing policy bindings, per-key spend limits, and per-key usage. - [Projects API](https://docs.merge.dev/merge-gateway/automation/projects-api.md): Manage projects over /v1/projects with a management key: project-scoped routing policies, budgets, guardrail and vendor-control overrides, and spend rollups, built for infrastructure-as-code. - [Projects](https://docs.merge.dev/merge-gateway/automation/projects-api/projects.md): Project CRUD over /v1/projects: the project object, cursor pagination, updates, deactivation, and the delete guard for active project API keys. - [Project routing](https://docs.merge.dev/merge-gateway/automation/projects-api/project-routing.md): Attach a project-scoped routing policy with uses_organization_default_routing and routing_policy: ranked Priority or Intelligent strategies, replaced in place with a stable ID. - [Budgets](https://docs.merge.dev/merge-gateway/automation/projects-api/budgets.md): Configure budget_config on a project: amount, period, hard or soft enforcement, alert thresholds, and recipients, and how PATCH replaces the whole object. - [Guardrails](https://docs.merge.dev/merge-gateway/automation/projects-api/guardrails.md): Per-project prompt injection and DLP overrides over the API: sparse overrides on top of the organization policy, the tighten-only rule for client-named projects, and write limits. - [Usage](https://docs.merge.dev/merge-gateway/automation/projects-api/usage.md): Read spend over /v1/organization/usage and /v1/projects/{project_id}/usage: date ranges, managed vs BYOK vs web search spend, per-model breakdowns, and group_by dimensions.