Skip to main content
POST
Create a network policy.

Network policy concepts

Review how rules are evaluated, how tokens are bound, and how to debug denied requests.
Policies are immutable. To allow different networks, create a new policy and issue tokens with it.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Body

application/json
policy
object
required

The restriction. Policies are immutable; create a new one to change it.

slug
string
required

Slug, unique to the account. Up to 96 characters of letters, digits, - and _.

Required string length: 1 - 96

Response

created_at
string<date-time>
required

Creation time in RFC 3339 format.

id
string
required

Full reference, <slug>.<nonce>, which access tokens are bound to.

policy
object
required

The restriction.

slug
string
required

Slug chosen at creation.

Required string length: 1 - 96