Shipmail Suppressions API

The Suppressions API from Shipmail — 4 operation(s) for suppressions.

GitHub OpenAPI

Operations 5

POST /suppressions Suppress an email address #
GET /suppressions List suppressed addresses and newsletter opt-outs #
POST /suppressions/batch-remove Remove suppressed addresses in bulk #
DELETE /suppressions/{email} Remove a suppressed address #
POST /newsletter-opt-outs/{email}/resubscribe Lift a newsletter opt-out with fresh consent #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/shipmail-to:shipmail-to-suppressions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

shipmail-to-suppressions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: shipmail Suppressions API
  description: 'API-first email provider for creators, freelancers, and businesses of all sizes. The version is in the server URL (/api/v1). Compatible changes ship in v1 at any time; a breaking change ships in a new version or after at least 12 months of notice, during which deprecated operations are marked deprecated and their responses carry Deprecation (RFC 9745) and Sunset (RFC 8594) headers. Policy: https://shipmail.to/docs/api/versioning'
  version: 0.1.0
  contact:
    name: shipmail
    url: https://shipmail.to
servers:
- url: https://shipmail.to/api/v1
  description: Production
security:
- bearerAuth: []
- oauth2: []
tags:
- name: Suppressions
paths:
  /suppressions:
    post:
      operationId: createSuppression
      summary: Suppress an email address
      description: 'Adds a `manual` suppression so nothing is sent to the address. The address is trimmed and lowercased. When an active entry already covers the address, it is returned with status 200: its scope widens to `all` if you ask for `all`, a soft-bounce pause becomes a permanent manual entry with the scope you pass while the pause carries on (`paused`), and any other permanent entry is never shortened. When there is no active entry, or the previous one has expired, a new entry is stored and returned with status 201. Calling it twice with the same body has the same effect as calling it once.'
      tags:
      - Suppressions
      x-rate-limit-tier: write
      x-scope: suppressions:write
      security:
      - bearerAuth: []
      - oauth2:
        - suppressions:write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSuppressionRequest'
      parameters:
      - $ref: '#/components/parameters/ShipmailOrganization'
      responses:
        '200':
          description: An active entry already covered the address. Returns it, widened if requested.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Suppression'
        '201':
          description: Suppression created, or an expired entry replaced.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Suppression'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '429':
          $ref: '#/components/responses/RateLimitError'
    get:
      operationId: listSuppressions
      summary: List suppressed addresses and newsletter opt-outs
      description: 'Returns a paginated list of email addresses that have been suppressed for your organization, together with newsletter opt-outs, newest first. Each entry has `source`: `suppression` or `newsletter_optout`. An opt-out has `reason: "unsubscribe"`, `scope: "marketing"` and no expiry; only a resubscribe with fresh consent lifts it. Opt-outs listed here are organization-wide and block every audience. An unsubscribe from one audience, through an issue''s link, is not listed: the subscriber is `unsubscribed` in that audience. A cursor from before opt-outs were listed is rejected with 422. Addresses are suppressed automatically on hard bounces, complaints and repeated soft bounces, or by importing a suppression list into an audience. A complaint blocks only the kind of email it was about: scope `marketing` for a newsletter, `transactional` for an application sender, `mailbox` for email sent from a mailbox. Hard bounces, repeated soft bounces and manual entries have scope `all` and block every send, except that email a person writes from a mailbox ignores a `soft_bounce` entry. A soft-bounce entry expires 30 days after it is created, unless the address had already been paused once.'
      tags:
      - Suppressions
      x-rate-limit-tier: read
      x-scope: suppressions:read
      security:
      - bearerAuth: []
      - oauth2:
        - suppressions:read
      parameters:
      - $ref: '#/components/parameters/Cursor'
      - $ref: '#/components/parameters/Limit'
      - name: scope
        in: query
        required: false
        description: Return only entries with this scope.
        schema:
          type: string
          enum:
          - all
          - marketing
          - transactional
          - mailbox
      - name: reason
        in: query
        required: false
        description: Return only entries with this reason. `unsubscribe` returns newsletter opt-outs.
        schema:
          type: string
          enum:
          - hard_bounce
          - complaint
          - manual
          - soft_bounce
          - unsubscribe
      - $ref: '#/components/parameters/ShipmailOrganization'
      responses:
        '200':
          description: Paginated list of suppressed addresses.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/SuppressionEntry'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '422':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimitError'
  /suppressions/batch-remove:
    post:
      operationId: removeSuppressionsBatch
      summary: Remove suppressed addresses in bulk
      description: 'Removes the address-health suppressions of up to 500 email addresses in one call. Each address is trimmed and lowercased, duplicates are collapsed, and each one is lifted exactly as DELETE /suppressions/{email} lifts it, with one audit entry per removed address. Returns one result per distinct address, in input order. A newsletter opt-out is the reader''s consent and is never removed: an address with only an opt-out is `skipped_consent_opt_out`, and a removed address that also has an opt-out has `newsletter_optout_remains: true`. An address with neither is `not_found`. `failed` means an unexpected error on that one address; the others still ran, so retry only it.'
      tags:
      - Suppressions
      x-rate-limit-tier: write
      x-scope: suppressions:write
      security:
      - bearerAuth: []
      - oauth2:
        - suppressions:write
      parameters:
      - $ref: '#/components/parameters/ShipmailOrganization'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoveSuppressionsBatchRequest'
      responses:
        '200':
          description: One result per distinct address, in input order.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RemoveSuppressionsBatchResponse'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '403':
          $ref: '#/components/responses/AuthorizationError'
        '422':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimitError'
  /suppressions/{email}:
    delete:
      operationId: removeSuppression
      summary: Remove a suppressed address
      description: 'Removes the address-health suppression for an email address, allowing you to send to it again. Use with caution: if the address is invalid, future sends will bounce and damage your reputation. A newsletter opt-out is the reader''s consent and is never removed here; only a resubscribe with fresh consent lifts it: POST /newsletter-opt-outs/{email}/resubscribe for any address, or POST /audiences/{id}/subscribers/{subscriber_id}/resubscribe for a subscriber. Only a suppression: 204. A suppression and an opt-out: the suppression is removed and the answer is 200 with a `suppression_removal` object. Only an opt-out: 409 `conflict` with a detail of code `consent_opt_out` on `email`. Neither: 404.'
      tags:
      - Suppressions
      x-rate-limit-tier: write
      x-scope: suppressions:write
      security:
      - bearerAuth: []
      - oauth2:
        - suppressions:write
      parameters:
      - name: email
        in: path
        required: true
        description: The email address to remove from the suppression list.
        schema:
          type: string
          format: email
      - $ref: '#/components/parameters/ShipmailOrganization'
      responses:
        '200':
          description: The suppression was removed, but a newsletter opt-out remains, so newsletters stay blocked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuppressionRemoval'
        '204':
          description: Suppression removed.
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '404':
          $ref: '#/components/responses/NotFoundError'
        '409':
          $ref: '#/components/responses/ConflictError'
        '429':
          $ref: '#/components/responses/RateLimitError'
  /newsletter-opt-outs/{email}/resubscribe:
    post:
      operationId: resubscribeNewsletterOptOut
      summary: Lift a newsletter opt-out with fresh consent
      description: 'Lifts the organization-wide newsletter opt-out of an address, which may be in no audience, after the reader opted in again. `consent_source` records where and how, as a subscriber resubscribe does, and is kept with the time and the opt-out it replaced. Audience statuses do not change: a subscriber who unsubscribed in an audience stays unsubscribed there, and one still subscribed in an audience receives its newsletters again. Resubscribe a subscriber in one audience instead to lift the opt-out for that audience only. A key limited to some audiences gets 403. An active suppression that blocks newsletters (a bounce, a complaint or a manual entry) answers 409: remove it first with DELETE /suppressions/{email}. An address without an opt-out answers 404.'
      tags:
      - Suppressions
      x-rate-limit-tier: write
      x-scope: audiences:write
      security:
      - bearerAuth: []
      - oauth2:
        - audiences:write
      parameters:
      - name: email
        in: path
        required: true
        description: The opted-out email address.
        schema:
          type: string
          format: email
      - $ref: '#/components/parameters/ShipmailOrganization'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResubscribeNewsletterOptOutRequest'
      responses:
        '200':
          description: The opt-out was lifted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NewsletterOptOutLift'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '403':
          $ref: '#/components/responses/AuthorizationError'
        '404':
          $ref: '#/components/responses/NotFoundError'
        '409':
          $ref: '#/components/responses/ConflictError'
        '422':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimitError'
components:
  schemas:
    NewsletterOptoutSuppression:
      type: object
      description: 'An organization-wide newsletter opt-out: no newsletter of the organization reaches the reader, in any audience. Only a resubscribe with fresh consent lifts it. A reader who unsubscribes from one audience through an issue''s link is not listed here: they are `unsubscribed` in that audience and still get the others.'
      required:
      - object
      - email_address
      - reason
      - scope
      - expires_at
      - paused
      - paused_until
      - created_at
      - source
      - newsletter_id
      - test_send
      properties:
        object:
          type: string
          enum:
          - suppression
        email_address:
          type: string
          format: email
        reason:
          type: string
          const: unsubscribe
        scope:
          type: string
          const: marketing
        expires_at:
          type: 'null'
        paused:
          type: boolean
          const: false
        paused_until:
          type: 'null'
        created_at:
          type: string
          format: date-time
          description: When the reader unsubscribed.
        source:
          type: string
          const: newsletter_optout
        newsletter_id:
          type:
          - string
          - 'null'
          description: The newsletter the reader unsubscribed from, when known.
        test_send:
          type: boolean
          description: True when the reader unsubscribed from a test send.
    Pagination:
      type: object
      required:
      - next_cursor
      - has_more
      - limit
      properties:
        next_cursor:
          type:
          - string
          - 'null'
          description: Cursor for the next page. Null if no more results.
        has_more:
          type: boolean
          description: Whether more results exist beyond this page.
        limit:
          type: integer
          description: Number of items per page.
    RemoveSuppressionsBatchResponse:
      type: object
      required:
      - results
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/SuppressionRemovalResult'
    RemoveSuppressionsBatchRequest:
      type: object
      required:
      - emails
      properties:
        emails:
          type: array
          description: The addresses to remove from the suppression list. Each is trimmed and lowercased; duplicates are collapsed.
          minItems: 1
          maxItems: 500
          items:
            type: string
            format: email
    SuppressionRemoval:
      type: object
      description: Returned by DELETE /suppressions/{email} when the suppression was removed but a newsletter opt-out remains.
      required:
      - object
      - email_address
      - removed
      - newsletter_optout_remains
      - message
      properties:
        object:
          type: string
          const: suppression_removal
        email_address:
          type: string
          format: email
        removed:
          type: boolean
          const: true
        newsletter_optout_remains:
          type: boolean
          const: true
        message:
          type: string
    Suppression:
      type: object
      description: 'An address-health suppression: a bounce, complaint or manual entry.'
      required:
      - object
      - email_address
      - reason
      - scope
      - expires_at
      - paused
      - paused_until
      - created_at
      - source
      properties:
        object:
          type: string
          enum:
          - suppression
        email_address:
          type: string
          format: email
          description: The suppressed email address.
        reason:
          type: string
          enum:
          - hard_bounce
          - complaint
          - manual
          - soft_bounce
          description: 'Why the address was suppressed. `soft_bounce`: at least 3 temporary bounces (mailbox full or a general temporary failure) in 14 days.'
        scope:
          type: string
          enum:
          - all
          - marketing
          - transactional
          - mailbox
          description: 'Which sends the entry blocks. `all` blocks every send, except that email a person writes from a mailbox ignores a `soft_bounce` entry. The others are set by a complaint and block one kind of email: `marketing` newsletters, `transactional` email from application senders, `mailbox` email sent from a mailbox. Complaints about two kinds widen the entry to `all`.'
        expires_at:
          type:
          - string
          - 'null'
          format: date-time
          description: When the entry stops blocking sends, or null when it is permanent. A soft-bounce entry lasts 30 days; a second one for the same address is permanent.
        paused:
          type: boolean
          description: 'True while a soft-bounce pause holds automated mail to the address: the entry itself when `reason` is `soft_bounce`, or a pause held beside another block. When a `soft_bounce` entry gets another event, such as a newsletter complaint, that event becomes the entry''s reason and scope and the pause carries on beside it. Email a person writes from a mailbox is never paused.'
        paused_until:
          type:
          - string
          - 'null'
          format: date-time
          description: When the soft-bounce pause ends, or null when it is permanent or there is none.
        created_at:
          type: string
          format: date-time
          description: When the address was suppressed.
        source:
          type: string
          const: suppression
          description: Always `suppression` for an address-health entry.
    ResubscribeNewsletterOptOutRequest:
      type: object
      required:
      - consent_source
      properties:
        consent_source:
          type: string
          minLength: 1
          maxLength: 500
          description: Where and how the reader opted in again.
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - type
          - message
          - request_id
          properties:
            type:
              type: string
              enum:
              - validation_error
              - authentication_error
              - authorization_error
              - quota_exceeded
              - over_limit
              - not_found
              - rate_limit_error
              - conflict
              - reconciliation_required
              - internal_error
            code:
              type: string
              enum:
              - external_send_requires_review
              description: 'Present on a refusal a client can act on. `external_send_requires_review` (403, type `authorization_error`): the API key holds email to outside addresses for review, and this request would reach someone outside the organization''s domains in a way that cannot wait as a draft. Save it as a draft instead, and a person sends it from Shipmail.'
            message:
              type: string
            request_id:
              type: string
            details:
              type: array
              items:
                type: object
                required:
                - field
                - message
                properties:
                  field:
                    type: string
                  code:
                    type: string
                    description: Stable machine-readable code for the validation detail when available.
                  message:
                    type: string
            retry_after:
              type: integer
              description: Seconds to wait before retrying (present on 429 responses).
            message_id:
              type: string
              description: Present only on a reconciliation_required error. The tracking message the interrupted send attempt left behind; quote it in support rather than retrying, because the original may already have gone out.
            reason:
              type: string
              enum:
              - owner_confirmation_required
              - subscription_required
              - trial_capacity
              - purchased_capacity
              description: 'Present only on a refusal an organization owner can lift in Shipmail. `owner_confirmation_required`: an agent credential asked to buy a domain, and the owner must confirm it. `subscription_required`: the organization has no plan. `trial_capacity`: the trial''s own limit binds; ending the trial early lifts it and charges at once. `purchased_capacity`: the paid plan is full. The type and status stay those of the original error. Send `action_url` to the owner; after they confirm, retry with a new idempotency key.'
            action_url:
              type: string
              format: uri
              description: Present with `reason`. A Shipmail page where the organization owner reviews and confirms. It carries identifiers only; prices are computed on the page.
            limit:
              type: object
              description: Present on a `quota_exceeded` error caused by a plan, trial or fixed limit. Storage values are bytes. A `fixed` limit is the same on every plan and has no `reason`.
              required:
              - resource
              - used
              - limit
              - scope
              properties:
                resource:
                  type: string
                  description: The limited resource, such as `audience_subscribers`, `newsletter_sends`, `sends`, `mailboxes`, `aliases`, `team_members`, `newsletter_storage`, `api_keys`, `webhooks` or `event_queues`. New values may be added.
                used:
                  type: number
                limit:
                  type: number
                scope:
                  type: string
                  enum:
                  - trial
                  - plan
                  - fixed
    CreateSuppressionRequest:
      type: object
      required:
      - email
      properties:
        email:
          type: string
          format: email
          description: The address to suppress. Trimmed and lowercased before it is stored.
        scope:
          type: string
          enum:
          - all
          - marketing
          default: all
          description: '`all` blocks every send. `marketing` blocks newsletter sends only.'
    SuppressionRemovalResult:
      type: object
      description: What happened to one address of POST /suppressions/batch-remove.
      required:
      - email_address
      - outcome
      - newsletter_optout_remains
      properties:
        email_address:
          type: string
          format: email
          description: The normalized address.
        outcome:
          type: string
          enum:
          - removed
          - not_found
          - skipped_consent_opt_out
          - failed
          description: '`removed`: the suppression was removed. `not_found`: the address had neither a suppression nor an opt-out. `skipped_consent_opt_out`: the address has only a newsletter opt-out, which is never removed here. `failed`: an unexpected error on this address; retry it.'
        newsletter_optout_remains:
          type: boolean
          description: True when the address has a newsletter opt-out, so newsletters stay blocked.
    SuppressionEntry:
      description: 'An entry of the suppression list: an address-health suppression or a newsletter opt-out.'
      oneOf:
      - $ref: '#/components/schemas/Suppression'
      - $ref: '#/components/schemas/NewsletterOptoutSuppression'
      discriminator:
        propertyName: source
        mapping:
          suppression: '#/components/schemas/Suppression'
          newsletter_optout: '#/components/schemas/NewsletterOptoutSuppression'
    NewsletterOptOutLift:
      type: object
      required:
      - object
      - email_address
      - consent_source
      - consent_attested_at
      - opted_out_at
      - newsletter_id
      properties:
        object:
          type: string
          enum:
          - newsletter_opt_out_lift
        email_address:
          type: string
          format: email
        consent_source:
          type: string
          description: Where and how the reader opted in again.
        consent_attested_at:
          type: string
          format: date-time
          description: When the opt-out was lifted with this consent.
        opted_out_at:
          type: string
          format: date-time
          description: When the lifted opt-out was recorded.
        newsletter_id:
          type:
          - string
          - 'null'
          description: The newsletter the reader had unsubscribed from, when known.
  responses:
    AuthenticationError:
      description: Authentication failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ValidationError:
      description: Validation failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ConflictError:
      description: Resource conflict.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimitError:
      description: Rate limit exceeded.
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds to wait before retrying.
        X-RateLimit-Limit:
          schema:
            type: integer
          description: Maximum requests allowed in the window.
        X-RateLimit-Remaining:
          schema:
            type: integer
          description: Requests remaining in the current window.
        X-RateLimit-Reset:
          schema:
            type: integer
          description: Unix timestamp (seconds) when the window resets.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    AuthorizationError:
      description: Insufficient permissions.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFoundError:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  parameters:
    ShipmailOrganization:
      name: X-Shipmail-Organization
      in: header
      required: false
      description: OAuth access tokens only. The organization ID this request acts on. Required when the OAuth connection was approved for several organizations (400 validation_error without it); optional with one. An organization the connection was not approved for returns 403 authorization_error. Ignored for API keys, which belong to one organization.
      schema:
        type: string
    Cursor:
      name: cursor
      in: query
      description: Opaque pagination cursor returned by the same list operation. Send it unchanged; do not parse, modify, or fabricate it.
      schema:
        type: string
    Limit:
      name: limit
      in: query
      description: Number of items to return (1-100, default 25).
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 25
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Keys are prefixed with sm_live_ or sm_test_ and carry their own scopes. An OAuth access token issued for the https://shipmail.to/api/v1 resource is also accepted as the Bearer token. It is limited to the API scopes it names; a token that names none can do everything its consent allows. See oauth2.
    oauth2:
      type: oauth2
      description: 'OAuth 2.1 for agents and command-line tools. Register a public client with dynamic client registration (https://shipmail.to/api/auth/oauth2/register), then use the authorization code flow with PKCE (S256) and resource=https://shipmail.to/api/v1 on the authorize and token requests. Send the access token as Authorization: Bearer <token>. OAuth scopes use the API key scope names. A token that names API scopes can use only those, and only within the organizations and access approved on the consent page. A token that names no API scope, only openid, profile, email or offline_access, can do everything the consent page approved. A request outside the token''s scopes gets 403 with WWW-Authenticate: Bearer error="insufficient_scope" and the scope it needs. Tokens issued for https://shipmail.to/api/mcp are rejected. Protected resource metadata: https://shipmail.to/.well-known/oauth-protected-resource/api/v1.'
      flows:
        authorizationCode:
          authorizationUrl: https://shipmail.to/api/auth/oauth2/authorize
          tokenUrl: https://shipmail.to/api/auth/oauth2/token
          refreshUrl: https://shipmail.to/api/auth/oauth2/token
          scopes:
            openid: Sign in with your Shipmail account.
            profile: Read your name.
            email: Read your account email address.
            offline_access: Receive a refresh token.
            audiences:read: List and retrieve newsletter audiences and their subscribers.
            audiences:write: Create audiences and add, update, or remove their subscribers.
            automations:read: List and retrieve assistant automations.
            automations:write: Create, update, and manually run assistant automations.
            booking_pages:read: List and retrieve booking pages.
            booking_pages:write: Create, update, and delete booking pages.
            calendar:read: List and retrieve calendar events and open availability.
            calendar:write: Create, update, and delete calendar events.
            customers:read: List and retrieve customers, reply times, and customer fields.
            customers:write: Create, update, sync, and delete customers.
            domains:read: List, retrieve, and verify domains.
            domains:write: Create, update, and delete domains.
            mailboxes:read: List and retrieve mailboxes.
            mailboxes:export: Create and download mailbox content exports.
            mailboxes:write: Create, update, suspend, resume, and delete mailboxes. Does not include setting mailbox passwords.
            mailbox_credentials:read: List revocable app passwords and transactional SMTP credentials for allowed mailboxes.
            mailbox_credentials:write: Set primary mailbox passwords, and create and revoke app passwords and transactional SMTP credentials for allowed mailboxes.
            mailbox_forwarding:read: List forwarding destinations for allowed mailboxes.
            mailbox_forwarding:write: Create and remove forwarding destinations for allowed mailboxes.
            mailbox_rules:read: List deterministic server-side rules for allowed mailboxes.
            mailbox_rules:write: Create, replace, and remove deterministic rules for allowed mailboxes.
            members:read: List and retrieve organization members.
            members:write: Invite people, cancel invitations, and share or unshare mailboxes with members.
            organization:read: 'Read organization settings: default timezone and AI settings.'
            organization:write: 'Change organization settings: default timezone, and whether AI models are on.'
            messages:read: List and retrieve messages.
            messages:review: Inspect and release messages held by API-agent security review.
            messages:write: Update, move, delete, and inject sandbox messages.
            drafts:write: Create agent-safe reply drafts with server-derived recipients.
            drafts:compose: Save new-message drafts to a mailbox's Drafts folder for review. Cannot send.
            drafts:send: Send reply drafts that already exist. Cannot write new email.
            messages:send: Send messages, replies, and approved reply drafts.
            newsletters:read: List and retrieve newsletter drafts and campaigns.
            newsletters:write: Create, update, test, schedule, cancel, and resume newsletters.
            threads:read: List threads and retrieve thread messages.
            webhooks:read: List webhooks, retrieve webhooks, and list deliveries.
            webhooks:write: Create, update, delete, test, and rotate webhooks.
            suppressions:read: List suppressed recipient addresses.
            suppressions:write: Remove addresses from the suppression list.
            templates:read: List, retrieve, and render email templates and their versions.
            templates:write: Create, update, publish, restore, and delete email templates.