Get Blocklist Rule
Return a blocklist rule.
Authentication
AuthorizationBearer
A management key (mgmt_...), sent as Authorization: Bearer <key>. Reading /v1/routing-policies also accepts the organization’s gateway API keys; writing there needs a management key.
Path parameters
rule_id
The rule’s id.
Response
The blocklist rule
created_at
When the rule was created.
customer_ids
Values of the X-Customer-ID request header the rule applies to. Empty matches every customer.
id
The rule's id.
models
Full model ids, like openai/gpt-5.5.
providers
Model providers, the prefix of a model id, like anthropic. With models empty too, matches every model.
reason
Why the rule exists, such as a ticket or contract clause.
rule_type
block denies a request when its customer matches and its model or provider matches. pin lets the listed customers use only the listed providers and models, and needs customer_ids plus providers or models. A block always wins over a pin.
Allowed values:
updated_at
When the rule last changed.
Errors
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error