Customer keys
A customer key is a customer’s own bring-your-own-key (BYOK) provider credential. When set, it overrides your organization’s key for that vendor on that customer’s requests.
Not to be confused with Customer API keys, which are Merge Gateway keys you give to a customer. The keys on this page are provider credentials you hold for them.
Path: /v1/customers/{customer_id}/keys. A GET lists the customer’s usable key per vendor, omitting vendors with no usable key under the customer’s key usage mode. A POST adds a customer key, overriding that vendor to CUSTOMER.
Key usage modes
Which credential serves a customer’s request depends on the customer’s key_usage_default, which you set on the customer or inherit from your organization’s default:
The last two fail closed. A vendor the customer has not keyed comes back with key_ownership: null under CUSTOMER_ONLY, and a request routed to it returns 404 provider_credentials_missing. Under CUSTOMER_ONLY the fix is a key for that customer, since adding an organization key does nothing.
CUSTOMER_ONLY is what to reach for when each tenant must run strictly on its own provider account, with no shared capacity of yours behind it.
Fields
Add a provider key
Pass the vendor as its slug (openai, anthropic), not its display name. Sending a display name that isn’t a known slug returns 400.