For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Logo
Resources
Log inGet a demo
GuidesModelsAPI reference
GuidesModelsAPI reference
    • Get started
    • Install skills
  • Features
    • Projects
    • Management API keys
    • Cost governance and savings
    • Tool calling
    • Web search
    • Context compression
  • Security & Compliance
    • Customer blocklist
    • Geo-location routing
    • Prompt injection protection
    • Data loss prevention
    • Audit trail
    • Roles and permissions
    • Zero data retention
    • Provider terms

Get started

  • Overview
  • Introduction
  • Unified API
  • Linked Account
  • Merge Link
  • Use cases

Implementation

  • Sandboxes
  • SDKs
  • API access
  • Syncing data
  • Writing data
  • Data minimization
  • Supplemental data
  • Errors
  • Integration metadata

API reference

  • ATS
  • HRIS
  • Accounting
  • Ticketing
  • CRM
  • File Storage
  • Knowledge Base
  • Chat

Resources

  • Help Center
  • Merge.dev
  • Changelog
© Merge 2026Terms of usePrivacy policy
UnifiedAgent HandlerGateway
UnifiedAgent HandlerGateway
Resources
Log inGet a demo
On this page
  • How rules work
  • What you can scope a rule to
  • Configuring the blocklist in the dashboard
  • Block rule example
  • Pin rule example
  • What blocked requests look like
  • FAQ
  • Next steps
Security & Compliance

Customer blocklist

Block or pin specific combinations of customers, providers, and models for your org
Was this page helpful?
Previous

Codex

Next

Geo-location routing

The customer blocklist gives org admins fine-grained control over what each of your customers is allowed to route through. Use it to enforce per-customer model restrictions, deny providers that aren’t approved for a customer’s data, or pin a customer to a specific allow-list of models for a pilot rollout.


How rules work

Blocklist rules are evaluated on every request before routing runs. There are two rule types:

Rule typeBehavior
BlockDeny the request when the customer and model dimensions both match
PinRestrict a customer to a specific allow-list of providers or models. Anything outside the pin is denied.

Each org can have up to 100 rules. Block rules always win over pin rules. If the same customer and model combination is both pinned-allowed and explicitly blocked, the request is blocked.

Blocklist rules run on the data-plane hot path. A change in the dashboard syncs to the data plane within seconds and takes effect on the next request.


What you can scope a rule to

Every rule combines three optional dimensions:

DimensionExample
Customer IDs"customer_abc", "customer_xyz" (the value passed as customer_id on the request)
Providers"openai", "anthropic", "google" (provider slugs)
Models"openai/gpt-5.2", "anthropic/claude-sonnet-4-20250514" (full model IDs)

Block rule scope requirements: at least one of the three dimensions must be non-empty. A block rule with empty model and provider lists denies every model for the listed customers.

Pin rule scope requirements: customer_ids is required, and at least one of providers or models must be set. A pin rule says “for these customers, only these providers/models are allowed.”


Configuring the blocklist in the dashboard

Go to Configuration → Blocklists in the Merge Gateway dashboard to create, edit, and delete rules. Each rule has an optional human-readable reason field that shows up in the audit log for that rule’s create / update / delete events.

Use the reason field to record the ticket or compliance requirement that drove the rule. It makes audit reviews much faster.

Block rule example

A block rule that denies a specific customer from using any Anthropic model:

Block rule
1{
2 "rule_type": "block",
3 "customer_ids": ["customer_abc"],
4 "providers": ["anthropic"],
5 "models": [],
6 "reason": "Customer contract, no Anthropic routing"
7}

Pin rule example

A pin rule that restricts a customer to two specific OpenAI models:

Pin rule
1{
2 "rule_type": "pin",
3 "customer_ids": ["customer_xyz"],
4 "providers": [],
5 "models": ["openai/gpt-5.2", "openai/gpt-5-mini"],
6 "reason": "Pilot rollout, OpenAI only"
7}

What blocked requests look like

When a rule denies a request, Gateway returns HTTP 403 with a stable error body:

1{
2 "error": {
3 "message": "Request blocked by organization policy.",
4 "type": "blocked_by_policy",
5 "code": "customer_model_blocked"
6 }
7}

The code field tells you which dimension blocked the request:

CodeMeaning
customer_blockedA block rule denied this customer for all models
customer_model_blockedA block rule denied this customer for the requested provider or model
provider_blockedA block rule denied the requested provider for all customers
model_blockedA block rule denied the requested model for all customers
customer_pinnedA pin rule limited this customer to a different set of providers or models

Handle these the same way you’d handle any other 403. They’re stable and safe to match on programmatically.


FAQ

Are blocklist rules evaluated before or after routing policies?

Before. If a rule denies the request, Gateway returns 403 immediately without consulting the routing policy. This means you can’t route around a block by changing strategies.

What happens if a routing policy lists a model that's in a block rule?

The block wins. Gateway filters the policy’s candidate list to remove blocked models before scoring, so the model is never selected. If every candidate is blocked, the request fails with the standard “no eligible vendor” error from the routing policy.

Can I block by IP or end-user location?

No. Blocklist rules target customers (by customer_id), providers, and models. They don’t read the request’s source IP. If you need source-IP filtering, do it at your application layer before calling Gateway. For routing restrictions based on the vendor’s location, see Geo-location routing.

Do block rules apply to BYOK traffic?

Yes. Blocklist rules are evaluated on every request regardless of whether the routing target is a managed or BYOK credential.

Who can manage blocklist rules?

Org members with the Manage organization settings permission. Viewing the list requires View organization settings. All create, update, and delete actions are written to the org audit log.


Next steps

Geo-location routing

Restrict routing to vendors in specific countries or regions for data-sovereignty

Audit trail

Every blocklist mutation is recorded. See who changed what, when, and from where.

Roles and permissions

Blocklist management requires the Manage organization settings permission. Review who holds it.