SendSeven GmbH Email Providers API

Manage email delivery provider configurations and DNS verification for custom domains.

GitHub OpenAPI

Operations 11

GET /api/v1/email-providers List Providers #
POST /api/v1/email-providers Create Provider #
GET /api/v1/email-providers/archived List Archived Providers #
GET /api/v1/email-providers/{provider_id} Get Provider #
PATCH /api/v1/email-providers/{provider_id} Update Provider #
DELETE /api/v1/email-providers/{provider_id} Delete Provider #
POST /api/v1/email-providers/{provider_id}/test Test Provider #
PATCH /api/v1/email-providers/{provider_id}/set-default Set Default Provider #
POST /api/v1/email-providers/{provider_id}/configure-webhooks Configure Webhooks #
POST /api/v1/email-providers/{provider_id}/refresh-domains Refresh Verified Domains #
GET /api/v1/email-providers/{provider_id}/webhook-settings Get Webhook Settings #

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/sendseven-com:sendseven-com-email-providers-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

sendseven-com-email-providers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SendSeven Email Providers API
  description: Unified messaging API for WhatsApp, Telegram, SMS, and more
  version: '20261124.1227'
servers:
- url: https://api.sendseven.com
  description: Production
tags:
- name: Email Providers
  description: Manage email delivery provider configurations and DNS verification for custom domains.
paths:
  /api/v1/email-providers:
    get:
      tags:
      - Email Providers
      summary: List Providers
      description: 'List all active (non-archived) email provider configurations for the tenant


        **Required Scopes:** any of `settings:read`, `campaigns:read`, `widgets:read`'
      operationId: list_providers_api_v1_email_providers_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/EmailProviderConfigResponse'
                type: array
                title: Response List Providers Api V1 Email Providers Get
      security:
      - HTTPBearer: []
    post:
      tags:
      - Email Providers
      summary: Create Provider
      description: 'Create a new email provider configuration


        **Required Scopes:** `settings:update` (a new default provider re-routes

        the workspace''s DOI / transcript / system-to-contact mail).


        - Encrypts API key before storage

        - If set as default, removes default flag from other providers

        - Validates provider configuration'
      operationId: create_provider_api_v1_email_providers_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailProviderConfigCreate'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailProviderConfigResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/v1/email-providers/archived:
    get:
      tags:
      - Email Providers
      summary: List Archived Providers
      description: 'List all archived email provider configurations for the tenant (admin/audit)


        Returns archived providers with metadata but without sensitive credentials.

        Useful for audit trails and reviewing historical configurations.


        **Required Scopes:** `settings:read`'
      operationId: list_archived_providers_api_v1_email_providers_archived_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ArchivedEmailProviderResponse'
                type: array
                title: Response List Archived Providers Api V1 Email Providers Archived Get
      security:
      - HTTPBearer: []
  /api/v1/email-providers/{provider_id}:
    get:
      tags:
      - Email Providers
      summary: Get Provider
      description: 'Get a specific email provider configuration (excludes archived)


        **🔐 Required Scopes:** `settings:read`'
      operationId: get_provider_api_v1_email_providers__provider_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: provider_id
        in: path
        required: true
        schema:
          type: string
          title: Provider Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailProviderConfigResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - Email Providers
      summary: Update Provider
      description: 'Update email provider configuration


        - Can update name, API key, config, active status, default status

        - If setting as default, removes default flag from other providers


        **🔐 Required Scopes:** `settings:update`'
      operationId: update_provider_api_v1_email_providers__provider_id__patch
      security:
      - HTTPBearer: []
      parameters:
      - name: provider_id
        in: path
        required: true
        schema:
          type: string
          title: Provider Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailProviderConfigUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailProviderConfigResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Email Providers
      summary: Delete Provider
      description: 'Archive (soft-delete) email provider configuration


        - Archives the provider instead of hard deleting for audit trail

        - Clears sensitive credentials (API keys) while preserving metadata

        - If this was the default provider, unsets the default flag


        **Required Scopes:** `settings:update`'
      operationId: delete_provider_api_v1_email_providers__provider_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: provider_id
        in: path
        required: true
        schema:
          type: string
          title: Provider Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArchiveEmailProviderResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/email-providers/{provider_id}/test:
    post:
      tags:
      - Email Providers
      summary: Test Provider
      description: 'Send a test email to verify provider configuration


        **Required Scopes:** `settings:update`. Rate limited (10/min, 50/h per

        workspace). The body is HTML-escaped (plain text only).


        - Validates API credentials by actually sending an email

        - Returns success/failure status and provider message ID'
      operationId: test_provider_api_v1_email_providers__provider_id__test_post
      security:
      - HTTPBearer: []
      parameters:
      - name: provider_id
        in: path
        required: true
        schema:
          type: string
          title: Provider Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TestEmailRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestEmailResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/email-providers/{provider_id}/set-default:
    patch:
      tags:
      - Email Providers
      summary: Set Default Provider
      description: 'Set a provider as the default for the tenant


        - Removes default flag from all other providers

        - Sets this provider as default


        **🔐 Required Scopes:** `settings:update`'
      operationId: set_default_provider_api_v1_email_providers__provider_id__set_default_patch
      security:
      - HTTPBearer: []
      parameters:
      - name: provider_id
        in: path
        required: true
        schema:
          type: string
          title: Provider Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailProviderConfigResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/email-providers/{provider_id}/configure-webhooks:
    post:
      tags:
      - Email Providers
      summary: Configure Webhooks
      description: 'Auto-configure SendGrid event webhooks via API


        **Required Scopes:** `settings:update`


        - Sets up event webhook URL with tenant_id and config_id parameters

        - Enables all event types (delivered, open, click, bounce, spam_report, etc.)

        - Only works for SendGrid providers


        Returns:

        - success: bool

        - webhook_url: configured webhook URL

        - message: status message

        - current_settings: current webhook configuration (if successful)'
      operationId: configure_webhooks_api_v1_email_providers__provider_id__configure_webhooks_post
      security:
      - HTTPBearer: []
      parameters:
      - name: provider_id
        in: path
        required: true
        schema:
          type: string
          title: Provider Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConfigureWebhooksResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/email-providers/{provider_id}/refresh-domains:
    post:
      tags:
      - Email Providers
      summary: Refresh Verified Domains
      description: 'Refresh the list of verified domains from the provider API.


        **Required Scopes:** `settings:update`


        Fetches current verified domains and updates provider config.

        Supports SendGrid and Mailgun. For Mailgun a domain-scoped SENDING key

        401s on /v3/domains and the live list cannot be read — in that case the

        stored verified_domains degrades to the manually-configured domain.'
      operationId: refresh_verified_domains_api_v1_email_providers__provider_id__refresh_domains_post
      security:
      - HTTPBearer: []
      parameters:
      - name: provider_id
        in: path
        required: true
        schema:
          type: string
          title: Provider Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RefreshDomainsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/email-providers/{provider_id}/webhook-settings:
    get:
      tags:
      - Email Providers
      summary: Get Webhook Settings
      description: 'Get current SendGrid webhook settings for a provider


        Only works for SendGrid providers.


        **🔐 Required Scopes:** `settings:read`'
      operationId: get_webhook_settings_api_v1_email_providers__provider_id__webhook_settings_get
      security:
      - HTTPBearer: []
      parameters:
      - name: provider_id
        in: path
        required: true
        schema:
          type: string
          title: Provider Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookSettingsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    TestEmailRequest:
      properties:
        to_email:
          type: string
          title: To Email
          description: Email address to send test email to
        subject:
          anyOf:
          - type: string
          - type: 'null'
          title: Subject
          description: Email subject
          default: Test Email
        body:
          anyOf:
          - type: string
          - type: 'null'
          title: Body
          description: Email body
          default: This is a test email to verify your email provider configuration.
      type: object
      required:
      - to_email
      title: TestEmailRequest
      description: Schema for testing email provider configuration
      example:
        body: This is a test email.
        subject: Test Email
        to_email: test@example.com
    EmailProviderConfigCreate:
      properties:
        provider_type:
          $ref: '#/components/schemas/CreatableProviderType'
          description: Provider type (sendgrid, mailgun)
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
          description: User-friendly name
        api_key:
          type: string
          minLength: 1
          title: Api Key
          description: API key for provider
        config:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Config
          description: Provider-specific settings
        is_active:
          type: boolean
          title: Is Active
          description: Whether provider is active
          default: true
        is_default:
          type: boolean
          title: Is Default
          description: Set as default provider for tenant
          default: false
      type: object
      required:
      - provider_type
      - name
      - api_key
      title: EmailProviderConfigCreate
      description: Schema for creating email provider configuration
      example:
        api_key: SG.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        config:
          from_email: marketing@example.com
          from_name: Example Company
        is_active: true
        is_default: true
        name: Marketing Emails
        provider_type: sendgrid
    ArchiveEmailProviderResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Whether the archive operation succeeded
        message:
          type: string
          title: Message
          description: Status message
        id:
          type: string
          title: Id
          description: ID of the archived provider
      type: object
      required:
      - success
      - message
      - id
      title: ArchiveEmailProviderResponse
      description: Schema for archive operation response
      example:
        id: prov-123
        message: Email provider archived successfully
        success: true
    CreatableProviderType:
      type: string
      enum:
      - sendgrid
      - sendgrid_managed
      - mailgun
      title: CreatableProviderType
      description: Provider types a client may create (``ses`` is not one of them).
    EmailProviderConfigUpdate:
      properties:
        name:
          anyOf:
          - type: string
            maxLength: 255
            minLength: 1
          - type: 'null'
          title: Name
        api_key:
          anyOf:
          - type: string
            minLength: 1
          - type: 'null'
          title: Api Key
        config:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Config
        is_active:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Is Active
        is_default:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Is Default
      type: object
      title: EmailProviderConfigUpdate
      description: Schema for updating email provider configuration
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EmailProviderConfigResponse:
      properties:
        id:
          type: string
          title: Id
        tenant_id:
          type: string
          title: Tenant Id
        provider_type:
          $ref: '#/components/schemas/ProviderType'
        name:
          type: string
          title: Name
        api_key_preview:
          type: string
          title: Api Key Preview
          description: Masked API key (last 4 chars only)
        config:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Config
        verified_domains:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Verified Domains
          description: List of verified domains from provider
        key_status:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Key Status
          description: 'BYOK API-key health, mirrored from config.key_status: {valid: bool|null, error: str|null, checked_at: iso}. valid=false -> show a ''reconnect key'' banner. null field -> never checked.'
        is_active:
          type: boolean
          title: Is Active
        is_default:
          type: boolean
          title: Is Default
        webhook_configured:
          type: boolean
          title: Webhook Configured
          description: Whether webhooks are configured
          default: false
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
      - id
      - tenant_id
      - provider_type
      - name
      - api_key_preview
      - is_active
      - is_default
      - created_at
      - updated_at
      title: EmailProviderConfigResponse
      description: Schema for email provider configuration response
      example:
        api_key_preview: '****xxxx'
        config:
          from_email: marketing@example.com
          from_name: Example Company
        created_at: '2024-01-01T12:00:00Z'
        id: prov-123
        is_active: true
        is_default: true
        name: Marketing Emails
        provider_type: sendgrid
        tenant_id: tenant-456
        updated_at: '2024-01-01T12:00:00Z'
    ConfigureWebhooksResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Whether webhook configuration succeeded
        webhook_url:
          type: string
          title: Webhook Url
          description: The configured webhook URL
        message:
          type: string
          title: Message
          description: Status message
        current_settings:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Current Settings
          description: Current webhook settings from SendGrid
      type: object
      required:
      - success
      - webhook_url
      - message
      title: ConfigureWebhooksResponse
      description: Response from configuring SendGrid webhooks
      example:
        current_settings:
          enabled: true
          url: https://api.example.com/webhooks/sendgrid/email
        message: SendGrid event webhooks configured successfully
        success: true
        webhook_url: https://api.example.com/webhooks/sendgrid/email?tenant_id=xxx&config_id=yyy
    TestEmailResponse:
      properties:
        success:
          type: boolean
          title: Success
        message:
          type: string
          title: Message
        provider_message_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Provider Message Id
        error:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
      type: object
      required:
      - success
      - message
      title: TestEmailResponse
      description: Schema for test email response
      example:
        message: Test email sent successfully
        provider_message_id: msg-abc123
        success: true
    ArchivedEmailProviderResponse:
      properties:
        id:
          type: string
          title: Id
        tenant_id:
          type: string
          title: Tenant Id
        provider_type:
          $ref: '#/components/schemas/ProviderType'
        name:
          type: string
          title: Name
        config:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Config
          description: Non-sensitive config (secrets cleared)
        verified_domains:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Verified Domains
          description: List of verified domains from provider
        is_active:
          type: boolean
          title: Is Active
        is_default:
          type: boolean
          title: Is Default
        webhook_configured:
          type: boolean
          title: Webhook Configured
          description: Whether webhooks were configured
          default: false
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        archived_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Archived At
          description: When the provider was archived
        archived_by_user_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Archived By User Id
          description: User who archived the provider
      type: object
      required:
      - id
      - tenant_id
      - provider_type
      - name
      - is_active
      - is_default
      - created_at
      - updated_at
      title: ArchivedEmailProviderResponse
      description: Schema for archived email provider configuration response (admin/audit)
      example:
        archived_at: '2024-06-15T14:30:00Z'
        archived_by_user_id: user-789
        config:
          from_email: marketing@example.com
          from_name: Example Company
        created_at: '2024-01-01T12:00:00Z'
        id: prov-123
        is_active: false
        is_default: false
        name: Marketing Emails (Archived)
        provider_type: sendgrid
        tenant_id: tenant-456
        updated_at: '2024-06-15T14:30:00Z'
    WebhookSettingsResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Whether settings retrieval succeeded
        settings:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Settings
          description: Current webhook settings from SendGrid
        expected_webhook_url:
          type: string
          title: Expected Webhook Url
          description: The webhook URL that should be configured
      type: object
      required:
      - success
      - expected_webhook_url
      title: WebhookSettingsResponse
      description: Response from getting webhook settings
      example:
        expected_webhook_url: https://api.example.com/api/v1/webhooks/sendgrid/email?tenant_id=xxx&config_id=yyy
        settings:
          bounce: true
          click: true
          delivered: true
          enabled: true
          open: true
          url: https://api.example.com/webhooks/sendgrid/email
        success: true
    RefreshDomainsResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Whether domain refresh succeeded
        verified_domains:
          items:
            type: string
          type: array
          title: Verified Domains
          description: List of verified domains
        domain_count:
          type: integer
          title: Domain Count
          description: Number of verified domains
        updated_at:
          type: string
          title: Updated At
          description: ISO8601 timestamp of update
      type: object
      required:
      - success
      - domain_count
      - updated_at
      title: RefreshDomainsResponse
      description: Response from refreshing verified domains
      example:
        domain_count: 2
        success: true
        updated_at: '2024-01-15T10:30:00Z'
        verified_domains:
        - example.com
        - mail.example.com
    ProviderType:
      type: string
      enum:
      - sendgrid
      - sendgrid_managed
      - mailgun
      - ses
      title: ProviderType
      description: 'Email provider types (response side: every value a stored row may hold).'
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer