---
title: "Create domain restriction"
method: POST
path: "/resources/configurations/restrictions/v1/email-domain"
tags: ["Domain restrictions"]
---

# Create domain restriction

`POST /resources/configurations/restrictions/v1/email-domain`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/configurations/restrictions/v1/email-domain`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/configurations/restrictions/v1/email-domain/post.ts> (a function with typed inputs; its response is checked against the schema)

This route creates a new domain restriction for a tenant. Send values in the POST body as objects. See the dropdowns for available values for each object param.

## Request body

- DomainRestrictionsCreateRequest
  - `domain` string, required
  - `type` 'ALLOW' | 'BLOCK', required

## Response `201`

- DomainRestrictionsResponse
  - `id` string, required
  - `domain` string, required
  - `type` 'ALLOW' | 'BLOCK', required

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
