Skip to main content
POST
Create Network Policy

Authorizations

X-Browser-Use-API-Key
string
header
required

Body

application/json

Request body for creating a network policy.

name
string
required
Required string length: 1 - 100
defaultAction
enum<string>
default:allow

Action for a domain that no list entry matches.

Available options:
allow,
block
allow
NetworkPolicyDomainList · object

Domains to allow.

block
NetworkPolicyDomainList · object

Domains to block.

Response

Successful Response

A network policy with normalized domains.

id
string<uuid>
required
name
string
required
defaultAction
enum<string>
required

Action for a domain that no list entry matches.

Available options:
allow,
block
allow
NetworkPolicyDomainList · object
required

A list of domains.

block
NetworkPolicyDomainList · object
required

A list of domains.

version
integer
required

Starts at 1 and increases by 1 with each update.

createdAt
string<date-time>
required
updatedAt
string<date-time>
required