SendGuard Agent signup API

The Agent signup API from SendGuard — 2 operation(s) for agent signup.

GitHub OpenAPI

Operations 2

POST /v1/agent/signup Request an API key (RFC 8628 device authorization) #
POST /v1/agent/token Poll for the API key #

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-agent-signup-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-agent-signup-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SendGuard Agent signup 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: Agent signup
paths:
  /v1/agent/signup:
    post:
      tags:
      - Agent signup
      operationId: startAgentSignup
      security: []
      summary: Request an API key (RFC 8628 device authorization)
      description: Returns a user_code and verification_url for a human to approve in the dashboard, and a device_code to poll with.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                scopes:
                  type: array
                  items:
                    $ref: '#/components/schemas/Scope'
                  description: Defaults to preflight:read and verify:create.
                monthly_spend_cap_usd:
                  type: number
                  minimum: 0
                  description: Requested monthly cap on purchases made with the key. The approver can change it.
      responses:
        '200':
          description: Signup started
          content:
            application/json:
              schema:
                type: object
                properties:
                  device_code:
                    type: string
                  user_code:
                    type: string
                    examples:
                    - ABCD-EFGH
                  verification_url:
                    type: string
                    format: uri
                  expires_in:
                    type: integer
                  interval:
                    type: integer
                    description: Minimum seconds between polls.
        '400':
          description: Invalid scope or cap.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceError'
  /v1/agent/token:
    post:
      tags:
      - Agent signup
      operationId: pollAgentSignup
      security: []
      summary: Poll for the API key
      description: 'Returns the API key exactly once after approval. Errors follow RFC 8628: authorization_pending, slow_down, access_denied, expired_token.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - grant_type
              - device_code
              properties:
                grant_type:
                  type: string
                  const: urn:ietf:params:oauth:grant-type:device_code
                device_code:
                  type: string
      responses:
        '200':
          description: Approved
          content:
            application/json:
              schema:
                type: object
                properties:
                  api_key:
                    type: string
                  token_type:
                    type: string
                    const: bearer
                  scopes:
                    type: array
                    items:
                      $ref: '#/components/schemas/Scope'
        '400':
          description: Pending, denied or expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceError'
components:
  schemas:
    DeviceError:
      type: object
      properties:
        error:
          type: string
          enum:
          - invalid_request
          - authorization_pending
          - slow_down
          - access_denied
          - expired_token
        error_description:
          type: string
    Scope:
      type: string
      enum:
      - preflight:read
      - verify:create
      - billing:topup
      - billing:autorecharge
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: SendGuard API key (sk_live_... or sk_test_...).