SendGuard Preflight API

The Preflight API from SendGuard — 1 operation(s) for preflight.

GitHub OpenAPI

Operations 1

POST /v1/preflight/email Check an outbound email before sending #

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/sendguard-ai:sendguard-ai-preflight-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

sendguard-ai-preflight-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SendGuard Preflight API
  version: '2026-11-14'
  description: 'SendGuard is the pre-send decision layer for AI agents. Its hosted Email Preflight API returns allow, delay, requires_approval or block with reasons. Call POST /v1/preflight/email before each send; your existing sender or workflow must enforce the decision. Send only on allow; hold requires_approval for human review, retry delay after delay_seconds, and do not send on block. SendGuard never sends email. Guardrails for customer-operated or self-hosted email workflows are one use case; the SendGuard API is hosted.


    Email preflight uses non-SMTP recipient signals, sender checks, pattern-based content checks and outbound policy. It does not fact-check content or guarantee delivery. A completed authenticated preflight uses one credit, including when recipient signals are cached or the recipient status is unknown. The separate Email Validation API has different charging rules; consult response billing fields.


    Agents without an API key can request one with the device flow (POST /v1/agent/signup, then poll POST /v1/agent/token) after a human approves it.'
  contact:
    email: support@sendguard.ai
    url: https://sendguard.ai/docs/
servers:
- url: https://api.sendguard.ai
security:
- bearerAuth: []
tags:
- name: Preflight
paths:
  /v1/preflight/email:
    post:
      tags:
      - Preflight
      operationId: preflightEmail
      summary: Check an outbound email before sending
      description: Requires scope preflight:read. Uses one credit when charged.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PreflightRequest'
      responses:
        '200':
          description: Decision
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreflightResult'
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Out of credits.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InsufficientCredits'
        '401':
          description: Missing or invalid API key. Body includes next_action=start_agent_signup.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: insufficient_scope (body names required_scope).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PreflightRequest:
      type: object
      required:
      - from
      - to
      properties:
        workspace_id:
          type: string
        agent_id:
          type: string
        campaign_id:
          type: string
        policy:
          type: string
          enum:
          - default
          - balanced
          - strict
          - growth
          - enterprise
          - healthcare
          - recruiting
        from:
          type: object
          required:
          - email
          properties:
            email:
              type: string
              format: email
            domain_age_days:
              type: integer
            mailbox_age_days:
              type: integer
        to:
          type: object
          required:
          - email
          properties:
            email:
              type: string
              format: email
            name:
              type: string
            company:
              type: string
            industry:
              type: string
            country:
              type: string
              description: ISO 3166-1 alpha-2
            source:
              type: string
        message:
          type: object
          properties:
            subject:
              type: string
            body:
              type: string
        context:
          type: object
          properties:
            intent:
              type: string
            relationship:
              type: string
            is_opted_in:
              type: boolean
            has_unsubscribed:
              type: boolean
            crm_stage:
              type: string
            sequence_step:
              type: integer
              minimum: 1
    Scope:
      type: string
      enum:
      - preflight:read
      - verify:create
      - billing:topup
      - billing:autorecharge
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
        message:
          type: string
        next_action:
          type: string
        required_scope:
          $ref: '#/components/schemas/Scope'
        signup_endpoint:
          type: string
    PreflightResult:
      type: object
      properties:
        id:
          type: string
        decision:
          type: string
          enum:
          - allow
          - delay
          - requires_approval
          - block
        risk_score:
          type: integer
          minimum: 0
          maximum: 100
        confidence:
          type: number
        delay_seconds:
          type: integer
        reasons:
          type: array
          items:
            $ref: '#/components/schemas/ReasonCode'
        recommendations:
          type: array
          items:
            type: string
        approval:
          type: object
          properties:
            queue:
              type: string
            reason:
              type: string
        suggested_email:
          type: string
        status:
          type: string
        billing:
          type: object
          properties:
            charged:
              type: boolean
            units:
              type: integer
            reason:
              type: string
            balance_remaining:
              type: integer
    InsufficientCredits:
      type: object
      properties:
        error:
          type: string
          const: insufficient_credits
        message:
          type: string
        next_action:
          type: string
          enum:
          - auto_recharge
          - create_checkout_link
          - human_topup
          description: 'auto_recharge: call POST /v1/billing/topups/auto-recharge. create_checkout_link: call POST /v1/billing/topups/checkout-link and hand the link to a human. human_topup: ask a human to buy credits at billing_url.'
        can_create_checkout_link:
          type: boolean
        can_auto_recharge:
          type: boolean
        recommended_top_up_package_id:
          type: string
        billing_url:
          type: string
          format: uri
        checkout_url:
          type: string
          format: uri
        topup_endpoint:
          type: string
        pricing_url:
          type: string
          format: uri
        plan:
          type: string
    ReasonCode:
      type: object
      properties:
        code:
          type: string
        severity:
          type: string
          enum:
          - low
          - medium
          - high
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: SendGuard API key (sk_live_... or sk_test_...).