Skip to content
Skip to main content
POST
/v3/policies

Create a policyBeta

Creates a policy for your application. Policies define message limits, spam detection settings, options, and linked rules for Nylas Agent Accounts. The application_id and organization_id are derived from your API key, so you don't need to include them in the request body — they are read-only.

NYLAS API KEY

Request body

name*string

A human-readable name for the policy.

Example: "Standard Agent Account Policy"
optionsobject
limitsobject
rulesarray<string>

Rule IDs to link to this policy.

Example: ["c1d2e3f4-5678-4abc-9def-0123456789ab"]
spam_detectionobject

Responses

request_idstring

ID of the request.

Example: "5fa64c92-e840-4357-86b9-2aa364d35b88"
dataobject
POSThttps://api.us.nylas.com/v3/policies

Find your API key in the Nylas Dashboard under API Keys in your application settings.

Loading editor...

Autocomplete and validation come from this endpoint's request schema.