SendSeven GmbH Email Connections API
Test and validate email server connections (SMTP/IMAP) for email integrations.
Test and validate email server connections (SMTP/IMAP) for email integrations.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/sendseven-com:sendseven-com-email-connections-api"
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.
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: 3.2.0
info:
title: SendSeven Email Connections 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 Connections
description: Test and validate email server connections (SMTP/IMAP) for email integrations.
paths:
/api/v1/email-connections:
get:
tags:
- Email Connections
summary: List Email Connections
description: 'List all email connections for the tenant.
Returns a unified view of both email_provider_configs (SendGrid, Mailgun, SES)
and email_integrations (Gmail, SMTP/IMAP, Proxy).
Each connection includes computed capabilities:
- can_send_campaigns: Can send bulk email campaigns
- can_receive_support: Can receive inbound support emails
- can_reply_support: Can send replies to support emails
**Required Scopes:** `email_integrations:read`'
operationId: list_email_connections_api_v1_email_connections_get
security:
- HTTPBearer: []
parameters:
- name: include_inactive
in: query
required: false
schema:
type: boolean
default: false
title: Include Inactive
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EmailConnectionListResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/email-connections/campaign-provider:
get:
tags:
- Email Connections
summary: Get Campaign Provider
description: 'Get the current campaign provider for the tenant.
Returns the email connection that is configured as the active campaign provider.
Only one connection can be the campaign provider at a time.
**Required Scopes:** `email_integrations:read`'
operationId: get_campaign_provider_api_v1_email_connections_campaign_provider_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EmailConnectionResponse'
security:
- HTTPBearer: []
/api/v1/email-connections/{connection_id}:
get:
tags:
- Email Connections
summary: Get Email Connection
description: 'Get a single email connection by ID.
Searches both email_provider_configs and email_integrations tables.
**Required Scopes:** `email_integrations:read`'
operationId: get_email_connection_api_v1_email_connections__connection_id__get
security:
- HTTPBearer: []
parameters:
- name: connection_id
in: path
required: true
schema:
type: string
title: Connection Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EmailConnectionResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Email Connections
summary: Delete Email Connection
description: 'Delete an email connection.
Searches both email_provider_configs and email_integrations tables
and deletes the matching connection.
**WARNING:** This is a destructive operation. If you delete a campaign provider,
you will need to set a new one before sending campaigns.
**Required Scopes:** `email_integrations:delete`'
operationId: delete_email_connection_api_v1_email_connections__connection_id__delete
security:
- HTTPBearer: []
parameters:
- name: connection_id
in: path
required: true
schema:
type: string
title: Connection Id
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/email-connections/{connection_id}/set-campaign-provider:
patch:
tags:
- Email Connections
summary: Set Campaign Provider
description: 'Set this connection as the active campaign provider.
Only connections with can_send_campaigns=True can be set as campaign providers
(SendGrid, Mailgun, SES).
This will unset any other campaign provider for the tenant.
Only one connection can be the campaign provider at a time.
**Required Scopes:** `email_integrations:update`'
operationId: set_campaign_provider_api_v1_email_connections__connection_id__set_campaign_provider_patch
security:
- HTTPBearer: []
parameters:
- name: connection_id
in: path
required: true
schema:
type: string
title: Connection Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SetCampaignProviderResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/email-connections/{connection_id}/link-outbound:
patch:
tags:
- Email Connections
summary: Link Outbound Provider
description: 'Link an outbound provider to a proxy integration.
This allows proxy integrations (which can receive inbound emails)
to send replies using a SendGrid, Mailgun, or SES provider.
Only proxy integrations can have linked outbound providers.
**Required Scopes:** `email_integrations:update`'
operationId: link_outbound_provider_api_v1_email_connections__connection_id__link_outbound_patch
security:
- HTTPBearer: []
parameters:
- name: connection_id
in: path
required: true
schema:
type: string
title: Connection Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LinkOutboundProviderRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LinkOutboundProviderResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Email Connections
summary: Unlink Outbound Provider
description: 'Unlink the outbound provider from a proxy integration.
After unlinking, the proxy integration will no longer be able to send replies.
**Required Scopes:** `email_integrations:update`'
operationId: unlink_outbound_provider_api_v1_email_connections__connection_id__link_outbound_delete
security:
- HTTPBearer: []
parameters:
- name: connection_id
in: path
required: true
schema:
type: string
title: Connection Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UnlinkOutboundProviderResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ConnectionType:
type: string
enum:
- sendgrid
- sendgrid_managed
- mailgun
- ses
- gmail
- smtp_imap
- ses_managed
- proxy
title: ConnectionType
description: Type of email connection
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
SetCampaignProviderResponse:
properties:
success:
type: boolean
title: Success
description: Whether the operation succeeded
message:
type: string
title: Message
description: Status message
connection:
$ref: '#/components/schemas/EmailConnectionResponse'
description: Updated connection details
type: object
required:
- success
- message
- connection
title: SetCampaignProviderResponse
description: Response after setting campaign provider
LinkOutboundProviderRequest:
properties:
outbound_provider_id:
type: string
title: Outbound Provider Id
description: ID of the email provider config to use for sending replies
type: object
required:
- outbound_provider_id
title: LinkOutboundProviderRequest
description: Request to link an outbound provider to a proxy integration
EmailConnectionResponse:
properties:
id:
type: string
title: Id
description: Unique identifier
tenant_id:
type: string
title: Tenant Id
description: Tenant ID
name:
type: string
title: Name
description: User-friendly name
source_type:
$ref: '#/components/schemas/SourceType'
description: Which table this connection came from (provider or integration)
connection_type:
$ref: '#/components/schemas/ConnectionType'
description: Type of connection (sendgrid, mailgun, gmail, smtp_imap, proxy; legacy ses_managed rows are listed as disconnected)
is_active:
type: boolean
title: Is Active
description: Whether the connection is active
connection_status:
type: string
title: Connection Status
description: Connection status (connected, disconnected, error, pending_verification, pending_dns)
can_send_campaigns:
type: boolean
title: Can Send Campaigns
description: Whether this connection can send bulk email campaigns
can_receive_support:
type: boolean
title: Can Receive Support
description: Whether this connection can receive inbound support emails
can_reply_support:
type: boolean
title: Can Reply Support
description: Whether this connection can send replies to support emails
is_campaign_provider:
type: boolean
title: Is Campaign Provider
description: Whether this is the active campaign provider for the tenant
is_support_default:
type: boolean
title: Is Support Default
description: Whether this is the default support integration (used for outbound support emails)
default: false
outbound_mailbox_id:
anyOf:
- type: string
- type: 'null'
title: Outbound Mailbox Id
description: ID of the EmailMailbox used to send proxy replies (new outbound selector)
outbound_mailbox_name:
anyOf:
- type: string
- type: 'null'
title: Outbound Mailbox Name
description: Display name of the linked outbound mailbox for proxy integrations
outbound_provider_id:
anyOf:
- type: string
- type: 'null'
title: Outbound Provider Id
description: 'DEPRECATED: backward-compat ID of linked outbound provider for proxy integrations. Prefer outbound_mailbox_id.'
outbound_provider_name:
anyOf:
- type: string
- type: 'null'
title: Outbound Provider Name
description: 'DEPRECATED: backward-compat name of linked outbound provider for proxy integrations. Prefer outbound_mailbox_name.'
proxy_forward_to:
anyOf:
- type: string
- type: 'null'
title: Proxy Forward To
description: Your email address where proxy emails are forwarded to
accepted_aliases:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Accepted Aliases
description: Additional email aliases that are accepted
recipient_validation_mode:
type: string
title: Recipient Validation Mode
description: 'Recipient validation mode: ''any'' (accept all), ''strict'' (only proxy_forward_to), ''whitelist'' (proxy_forward_to + accepted_aliases)'
default: any
has_received_email:
type: boolean
title: Has Received Email
description: Whether this proxy has received at least one email (forwarding confirmed)
default: false
proxy_address:
anyOf:
- type: string
- type: 'null'
title: Proxy Address
description: Inbound proxy receive-address (the @proxy.sendseven.com hash) for PROXY connections. This is the address customers forward TO; it is NEVER a sendable/from address.
email_address:
anyOf:
- type: string
- type: 'null'
title: Email Address
description: Primary, real, sendable email address for this connection. For PROXY connections this is the configured sending/identity address, NOT the inbound proxy hash (see proxy_address).
verified_domains:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Verified Domains
description: List of verified domains (for SendGrid/Mailgun)
key_status:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Key Status
description: 'BYOK API-key health for provider connections: {valid: bool|null, error: str|null, checked_at: iso}. valid=false -> render a ''reconnect key'' banner. Absent for non-BYOK/integration connections.'
last_error:
anyOf:
- type: string
- type: 'null'
title: Last Error
description: Last error message if any
created_at:
type: string
format: date-time
title: Created At
description: When the connection was created
updated_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Updated At
description: When the connection was last updated
type: object
required:
- id
- tenant_id
- name
- source_type
- connection_type
- is_active
- connection_status
- can_send_campaigns
- can_receive_support
- can_reply_support
- is_campaign_provider
- created_at
title: EmailConnectionResponse
description: 'Unified response schema for email connections.
This schema combines data from both email_provider_configs and email_integrations
tables into a single unified view.'
example:
can_receive_support: false
can_reply_support: false
can_send_campaigns: true
connection_status: connected
connection_type: sendgrid
created_at: '2024-01-01T12:00:00Z'
email_address: marketing@example.com
id: prov-123-abc
is_active: true
is_campaign_provider: true
name: Marketing SendGrid
source_type: provider
tenant_id: tenant-456
updated_at: '2024-01-02T12:00:00Z'
verified_domains:
- example.com
UnlinkOutboundProviderResponse:
properties:
success:
type: boolean
title: Success
description: Whether the operation succeeded
message:
type: string
title: Message
description: Status message
connection:
$ref: '#/components/schemas/EmailConnectionResponse'
description: Updated connection details
type: object
required:
- success
- message
- connection
title: UnlinkOutboundProviderResponse
description: Response after unlinking outbound provider
LinkOutboundProviderResponse:
properties:
success:
type: boolean
title: Success
description: Whether the operation succeeded
message:
type: string
title: Message
description: Status message
connection:
$ref: '#/components/schemas/EmailConnectionResponse'
description: Updated connection details
type: object
required:
- success
- message
- connection
title: LinkOutboundProviderResponse
description: Response after linking outbound provider
EmailConnectionListResponse:
properties:
connections:
items:
$ref: '#/components/schemas/EmailConnectionResponse'
type: array
title: Connections
description: List of email connections
total:
type: integer
title: Total
description: Total number of connections
type: object
required:
- connections
- total
title: EmailConnectionListResponse
description: Response schema for listing email connections
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
SourceType:
type: string
enum:
- provider
- integration
title: SourceType
description: Source type indicating which table the connection came from
securitySchemes:
HTTPBearer:
type: http
scheme: bearer