---
title: "Changes to Create a guardrail"
method: POST
path: "/guardrails"
---

# Changes to Create a guardrail

`POST /guardrails`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 8 of 303 revisions.

- **2026-09-02** `29a651ca4ed2` — 2 info
- **2026-08-26** `ed04e14f2755` — 1 warning, 1 info
- **2026-08-07** `6b6ae78fb2f3` — 1 breaking
- **2026-07-28** `346bdfb17c00` — 6 info
- **2026-07-24** `e7bfee97794c` — 2 info
- **2026-07-17** `6aaba48b96d6` — 1 warning, 1 info
- **2026-07-16** `c91cc6f88caa` — 16 breaking
- **2026-07-14** `e51e9261ea50` — 2 info

## Changes

- **2026-09-02** `29a651ca4ed2` — 2 info
  - added the new optional request property `allowed_data_regions`
  - added the optional property `data/allOf[#/components/schemas/Guardrail]/allowed_data_regions` to the response with the `201` status
- **2026-08-26** `ed04e14f2755` — 1 warning, 1 info
  - added the new `secrets` enum value to the `data/allOf[#/components/schemas/Guardrail]/content_filter_builtins/items/slug` response property for the response status `201`
  - added the new `secrets` enum value to the request property `content_filter_builtins/items/slug`
- **2026-08-07** `6b6ae78fb2f3` — 1 breaking
  - the response property `data/allOf[#/components/schemas/Guardrail]/workspace_id` became nullable for the status `201`
- **2026-07-28** `346bdfb17c00` — 6 info
  - added the new optional request property `enable_free_model_publication`
  - added the new optional request property `enable_free_model_training`
  - added the new optional request property `enable_paid_model_training`
  - added the optional property `data/allOf[#/components/schemas/Guardrail]/enable_free_model_publication` to the response with the `201` status
  - added the optional property `data/allOf[#/components/schemas/Guardrail]/enable_free_model_training` to the response with the `201` status
  - added the optional property `data/allOf[#/components/schemas/Guardrail]/enable_paid_model_training` to the response with the `201` status
- **2026-07-24** `e7bfee97794c` — 2 info
  - added the new optional request property `include_byok_in_budgets`
  - added the required property `data/allOf[#/components/schemas/Guardrail]/include_byok_in_budgets` to the response with the `201` status
- **2026-07-17** `6aaba48b96d6` — 1 warning, 1 info
  - added the new `flag` enum value to the `data/allOf[#/components/schemas/Guardrail]/content_filters/items/action` response property for the response status `201`
  - added the new `flag` enum value to the request property `content_filters/items/action`
- **2026-07-16** `c91cc6f88caa` — 16 breaking
  - the request property `allowed_models` became not nullable
  - the request property `allowed_providers` became not nullable
  - the request property `content_filter_builtins` became not nullable
  - the request property `content_filters` became not nullable
  - the request property `content_filters/items/label` became not nullable
  - the request property `description` became not nullable
  - the request property `enforce_zdr` became not nullable
  - the request property `enforce_zdr_anthropic` became not nullable
  - the request property `enforce_zdr_google` became not nullable
  - the request property `enforce_zdr_openai` became not nullable
  - the request property `enforce_zdr_other` became not nullable
  - the request property `enforce_zdr_xai` became not nullable
  - the request property `ignored_models` became not nullable
  - the request property `ignored_providers` became not nullable
  - the request property `limit_usd` became not nullable
  - the request property `reset_interval` became not nullable
- **2026-07-14** `e51e9261ea50` — 2 info
  - added the new optional request property `enforce_zdr_xai`
  - added the optional property `data/allOf[#/components/schemas/Guardrail]/enforce_zdr_xai` to the response with the `201` status

---

[Operation](https://skmtc.dev/openrouterteam/apis/openrouter-api/docs/guardrails/post.md) · [API](https://skmtc.dev/openrouterteam/apis/openrouter-api.md) · [Page](https://skmtc.dev/openrouterteam/apis/openrouter-api/changes/guardrails/post)
