Skip to content
Skip to main content
GET
https://api.us.nylas.com/v3/grants/{grant_id}/rule-evaluations

List rule evaluations

Returns the most recent rule evaluation records for the specified grant, up to limit records. Each record captures which rules were evaluated against an inbound message, SMTP envelope, or outbound send, the normalized sender or recipient data that was matched, which rules matched, and which actions were applied.

Rule evaluations are created automatically when at least one rule matches as inbound mail is processed or an outbound send is evaluated, and serve as an audit trail for the Rules engine. Records are returned in reverse chronological order (most recent first).

Works with an API key or an IAM API key with the rule_evaluations.read permission.

Parameters

Path parameters

grant_id*string

The ID of the grant to list rule evaluations for.

Query parameters

limitinteger

The maximum number of objects to return.

Default: 10

Responses

request_idstring

ID of the request.

Example: "5fa64c92-e840-4357-86b9-2aa364d35b88"
dataarray<object>
GEThttps://api.us.nylas.com/v3/grants/{grant_id}/rule-evaluations?limit=10

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

grant_idrequiredstring

The ID of the grant to list rule evaluations for.

limitinteger

The maximum number of objects to return.