Skip to content

GET/PUT · Bearer

GET/PUT /api/v1/inboxes/:id/spend-policy

Summary

Read or set per-inbox send limits. max_sends_per_day is an integer from 1 to 10000 or null. A later send that day returns HTTP 429 send_limit_exceeded with sent and limit. domain_allow and domain_block are hostnames. A blocked domain is HTTP 403 recipient_domain_blocked. A domain outside a non-empty allow list is HTTP 403 recipient_domain_denied. Subdomains match the listed domain. approval_keywords are case-insensitive substrings. approval_amount_cents holds the message when the text names a dollar amount at or above that many cents. Either rule stages the existing owner-approval draft instead of sending and needs a verified owner. Omitting a field leaves it unchanged. COOPER_SPEND_LIMITS=off disables enforcement. The default is on. MCP: cooper_set_spend_policy. Guide: /blog/per-inbox-spend-and-approval-limits.

Request

{
  "max_sends_per_day": 20,
  "domain_block": [
    "example.net"
  ],
  "approval_keywords": [
    "wire"
  ],
  "approval_amount_cents": 50000
}

Response

The OpenAPI document does not declare a JSON response schema for this call. The summary is the contract.

Errors

  • HTTP 429 send_limit_exceeded
  • HTTP 403 recipient_domain_blocked
  • HTTP 403 recipient_domain_denied

Idempotency

This route does not document Idempotency-Key or client_id.