Embedded Routing Stack
Provision customers, routing policies, keys, budgets, and usage programmatically
The Embedded Routing API lets a platform built on Gateway provision each end customer as a Customer with its own routing policies, BYOK vendor keys, budgets, and usage. Attach one to a model request with the customer field on Create response or any SDK-compatible surface. Walkthrough: Embedded routing guide.
Base URL and authentication
Authenticate with the mg_ API key you send model requests with; the organization comes from the key.
Reference
A customer API key can call only routes for its own customer, and changing budgets, controls, or anything but its own name, deleting itself, or minting keys returns 403. Another customer’s ID returns 404. Errors use a detail object.