- API reference
- Policies
- Get a policy
https://api.us.nylas.com/v3/policies/{policy_id}Get a policy
Returns the specified policy.
Works with an API key or an IAM API key with the policies.read permission.
"b1c2d3e4-5678-4abc-9def-0123456789ab""Standard Agent Account Policy"application_idstringThe ID of the application that owns the policy. Read-only; derived from the authenticated API key.
"ad410018-d306-43f9-8361-fa5d7b2172e0"organization_idstringThe ID of the Nylas organization that owns the policy. Read-only; derived from the authenticated API key.
"org-abc123"limitsobjectOperational limits enforced for inboxes that use this policy. All fields are optional. If omitted, each limit defaults
to the plan's maximum allowed value. If a requested value exceeds the plan limit, the API returns an error.
limit_storage_total, limit_count_daily_message_received,
limit_count_daily_email_sent, limit_inbox_retention_period, and limit_spam_retention_period use -1
for unlimited. You can set -1 only when your plan sets no limit for that field.
2621440020limit_attachment_allowed_typesarray<string>Allowed attachment MIME types. If empty or omitted, all types permitted by the plan are allowed.
["image/png","image/jpeg","application/pdf"]limit_size_total_mimeinteger<int64>Maximum total MIME size (in bytes) for a single message, including all attachments.
31457280limit_storage_totalinteger<int64>Maximum total storage (in bytes) for each inbox that uses this policy. -1 means unlimited.
10737418240limit_count_daily_message_receivedinteger<int64>Maximum number of messages each grant can receive per day. -1 means unlimited.
1000limit_count_daily_email_sentinteger<int64>Maximum number of messages each grant can send per day. -1 means unlimited.
1000rulesarray<string>(Legacy) Rule IDs linked to this policy. Rule evaluation uses the rule_ids array on the
workspace, not the policy. Set rules on the workspace instead.
Whether rules are allowed depends on your plan.
["c1d2e3f4-5678-4abc-9def-0123456789ab"]truetrue1742932766Rate limited. The provider or Nylas throttled the request. If a provider throttles a request and
says how long to wait, the Retry-After header gives that number of seconds. When the header
is missing, retry with exponential backoff. See
429 rate limit errors by provider.