Get Mail preferences
GET
/api/v1/mail/preferences
const url = 'https://example.com/api/v1/mail/preferences';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/mail/preferences \ --header 'Authorization: Bearer <token>'Requires a signed-in User. It returns when Mail marks a Message as read: when it opens, after one second, or after a manual action. Route: /api/v1/mail/preferences. Inputs: . Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Media typeapplication/json
object
load_remote_content
required
boolean
read_marking
required
string
Example
{ "read_marking": "on_open"}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}