Set the sender allowlist and send/reply/read access rules for an inbox owned by the authenticated organization.
curl --request PUT \
--url https://api.case.dev/mail/v1/inboxes/{inboxId}/policy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enforceSenderAllowlist": true,
"allowedSenderPatterns": [
"<string>"
],
"readAccessRules": [
"<string>"
],
"replyAccessRules": [
"<string>"
],
"sendAccessRules": [
"<string>"
]
}
'API key starting with sk_case_
Exact emails, @domain rules, or *
Rules like organization, operator, user:
Rules like organization, operator, user:
Rules like organization, user:
Inbox policy updated successfully
Was this page helpful?
curl --request PUT \
--url https://api.case.dev/mail/v1/inboxes/{inboxId}/policy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enforceSenderAllowlist": true,
"allowedSenderPatterns": [
"<string>"
],
"readAccessRules": [
"<string>"
],
"replyAccessRules": [
"<string>"
],
"sendAccessRules": [
"<string>"
]
}
'