SendSeven GmbH Subscriptions API
Manage contact subscription preferences across channels including opt-in/opt-out status.
Manage contact subscription preferences across channels including opt-in/opt-out status.
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-subscriptions-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 Subscriptions API
description: Unified messaging API for WhatsApp, Telegram, SMS, and more
version: '20261124.1227'
servers:
- url: https://api.sendseven.com
description: Production
tags:
- name: Subscriptions
description: Manage contact subscription preferences across channels including opt-in/opt-out status.
paths:
/api/v1/contacts/{contact_id}/subscriptions:
get:
tags:
- Subscriptions
summary: Get contact subscriptions
description: 'Get all subscriptions for a specific contact
**🔐 Required Scopes:** `contacts:read`'
operationId: get_contact_subscriptions_api_v1_contacts__contact_id__subscriptions_get
security:
- HTTPBearer: []
parameters:
- name: contact_id
in: path
required: true
schema:
type: string
title: Contact Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ContactSubscriptionsResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Subscriptions
summary: Subscribe contact
description: 'Subscribe a contact to a list via a specific channel
**🔐 Required Scopes:** `contacts:update`'
operationId: subscribe_contact_api_v1_contacts__contact_id__subscriptions_post
security:
- HTTPBearer: []
parameters:
- name: contact_id
in: path
required: true
schema:
type: string
title: Contact Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriptionCreate'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriptionResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/contacts/{contact_id}/subscriptions/{subscription_id}:
delete:
tags:
- Subscriptions
summary: Unsubscribe contact
description: 'Unsubscribe a contact from a list
**🔐 Required Scopes:** `contacts:update`'
operationId: unsubscribe_contact_api_v1_contacts__contact_id__subscriptions__subscription_id__delete
security:
- HTTPBearer: []
parameters:
- name: contact_id
in: path
required: true
schema:
type: string
title: Contact Id
- name: subscription_id
in: path
required: true
schema:
type: string
title: Subscription Id
requestBody:
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/UnsubscribeRequest'
- type: 'null'
title: Unsubscribe Data
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UnsubscribeResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/subscriptions/{subscription_id}:
patch:
tags:
- Subscriptions
summary: Update subscription
description: 'Update a subscription status or metadata
**🔐 Required Scopes:** `contacts:update`'
operationId: update_subscription_api_v1_subscriptions__subscription_id__patch
security:
- HTTPBearer: []
parameters:
- name: subscription_id
in: path
required: true
schema:
type: string
title: Subscription Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriptionUpdate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriptionResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/lists/{list_id}/subscribers:
get:
tags:
- Subscriptions
summary: Get list subscribers
description: 'Get subscribers for a list with optional filtering by channel and status
**🔐 Required Scopes:** `contacts:read`'
operationId: get_list_subscribers_api_v1_lists__list_id__subscribers_get
security:
- HTTPBearer: []
parameters:
- name: list_id
in: path
required: true
schema:
type: string
title: List Id
- name: channel_type
in: query
required: false
schema:
anyOf:
- $ref: '#/components/schemas/SubscriptionChannelType'
- type: 'null'
description: Filter by channel type
title: Channel Type
description: Filter by channel type
- name: status
in: query
required: false
schema:
anyOf:
- $ref: '#/components/schemas/SubscriptionStatus'
- type: 'null'
description: Filter by status
default: subscribed
title: Status
description: Filter by status
- name: limit
in: query
required: false
schema:
type: integer
maximum: 1000
minimum: 1
description: Maximum number of results
default: 100
title: Limit
description: Maximum number of results
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
description: Pagination offset
default: 0
title: Offset
description: Pagination offset
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ListSubscribersResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/lists/{list_id}/subscription-stats:
get:
tags:
- Subscriptions
summary: Get subscription statistics
description: 'Get subscription statistics for a list broken down by channel
**🔐 Required Scopes:** `contacts:read`'
operationId: get_subscription_stats_api_v1_lists__list_id__subscription_stats_get
security:
- HTTPBearer: []
parameters:
- name: list_id
in: path
required: true
schema:
type: string
title: List Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriptionStatsResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/subscriptions/confirm/{token}:
post:
tags:
- Subscriptions
summary: Confirm double opt-in
description: Confirm a subscription using the double opt-in token (public endpoint). Returns only the confirmed subscription's status, channel type and confirmation time.
operationId: confirm_subscription_api_v1_subscriptions_confirm__token__post
parameters:
- name: token
in: path
required: true
schema:
type: string
title: Token
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ConfirmOptInResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/contacts/{contact_id}/email-tracking-consent:
get:
tags:
- Subscriptions
summary: Get email tracking consent
description: 'Open/click tracking consent for each email address of the contact
**🔐 Required Scopes:** `contacts:read`'
operationId: get_email_tracking_consent_api_v1_contacts__contact_id__email_tracking_consent_get
security:
- HTTPBearer: []
parameters:
- name: contact_id
in: path
required: true
schema:
type: string
title: Contact Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EmailTrackingConsentList'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
put:
tags:
- Subscriptions
summary: Set email tracking consent
description: 'Set the open/click tracking consent of one email address of the contact
**🔐 Required Scopes:** `contacts:update`'
operationId: put_email_tracking_consent_api_v1_contacts__contact_id__email_tracking_consent_put
security:
- HTTPBearer: []
parameters:
- name: contact_id
in: path
required: true
schema:
type: string
title: Contact Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EmailTrackingConsentUpdate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EmailTrackingConsentItem'
'409':
description: 'The recipient withdrew tracking consent themselves (stop-tracking link, unsubscribe or preference center), so the workspace cannot set `granted` or `unknown`. Body `detail`: `{code: "tracking_consent_withdrawn_by_recipient", error, email, withdrawn_via}`; `withdrawn_via` is the source of the withdrawal. Only the recipient can lift it (re-consent link or their own preference center). Setting `denied` again succeeds and changes nothing.'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ConfirmOptInResponse:
properties:
success:
type: boolean
title: Success
message:
type: string
title: Message
subscription:
anyOf:
- $ref: '#/components/schemas/ConfirmOptInSubscriptionSummary'
- type: 'null'
type: object
required:
- success
- message
title: ConfirmOptInResponse
description: Schema for opt-in confirmation response (public endpoint)
example:
message: Subscription confirmed successfully
subscription:
channel_type: email
opt_in_confirmed_at: '2026-10-06T10:15:00Z'
status: subscribed
success: true
UnsubscribeResponse:
properties:
success:
type: boolean
title: Success
message:
type: string
title: Message
subscription:
anyOf:
- $ref: '#/components/schemas/SubscriptionResponse'
- type: 'null'
type: object
required:
- success
- message
title: UnsubscribeResponse
description: Schema for unsubscribe response
example:
message: Unsubscribed successfully
success: true
OptInMethod:
type: string
enum:
- widget
- import
- api
- manual
- single_opt_in
- double_opt_in
- keyword
- conversation
- whatsapp_flow
title: OptInMethod
description: How the subscription was created
SubscriptionStatsResponse:
properties:
list_id:
type: string
title: List Id
list_name:
type: string
title: List Name
total_subscriptions:
type: integer
title: Total Subscriptions
channels:
items:
$ref: '#/components/schemas/ChannelStats'
type: array
title: Channels
type: object
required:
- list_id
- list_name
- total_subscriptions
- channels
title: SubscriptionStatsResponse
description: Schema for subscription statistics by list
example:
channels:
- bounced: 8
channel_type: email
complained: 2
pending: 50
subscribed: 1400
total: 1500
unsubscribed: 40
- bounced: 0
channel_type: telegram
complained: 0
pending: 10
subscribed: 980
total: 1000
unsubscribed: 10
list_id: list-123
list_name: Weekly Newsletter
total_subscriptions: 2500
SubscriptionChannelType:
type: string
enum:
- email
- sms
- whatsapp
- telegram
- messenger
- instagram
- browser_push
- rcs
title: SubscriptionChannelType
description: Channels a contact can hold a list subscription on.
ListSubscribersResponse:
properties:
list_id:
type: string
title: List Id
total:
type: integer
title: Total
subscriptions:
items:
$ref: '#/components/schemas/SubscriptionResponse'
type: array
title: Subscriptions
type: object
required:
- list_id
- total
- subscriptions
title: ListSubscribersResponse
description: Schema for list subscribers response
example:
list_id: list-123
subscriptions: []
total: 100
UnsubscribeRequest:
properties:
reason:
anyOf:
- type: string
maxLength: 1000
- type: 'null'
title: Reason
description: Reason for unsubscribing
method:
$ref: '#/components/schemas/UnsubscribeMethod'
description: Method of unsubscription
default: manual
type: object
title: UnsubscribeRequest
description: Schema for unsubscribe request
example:
method: manual
reason: Too many messages
SubscriptionResponse:
properties:
id:
type: string
title: Id
tenant_id:
type: string
title: Tenant Id
contact_id:
type: string
title: Contact Id
list_id:
type: string
title: List Id
list_name:
anyOf:
- type: string
- type: 'null'
title: List Name
channel_type:
$ref: '#/components/schemas/SubscriptionChannelType'
channel_id:
anyOf:
- type: string
- type: 'null'
title: Channel Id
status:
$ref: '#/components/schemas/SubscriptionStatus'
opt_in_method:
$ref: '#/components/schemas/OptInMethod'
opt_in_ip:
anyOf:
- type: string
- type: 'null'
title: Opt In Ip
opt_in_user_agent:
anyOf:
- type: string
- type: 'null'
title: Opt In User Agent
opt_in_source_url:
anyOf:
- type: string
- type: 'null'
title: Opt In Source Url
opt_in_widget_id:
anyOf:
- type: string
- type: 'null'
title: Opt In Widget Id
opt_in_confirmed_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Opt In Confirmed At
opt_in_token_expires_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Opt In Token Expires At
unsubscribed_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Unsubscribed At
unsubscribe_reason:
anyOf:
- type: string
- type: 'null'
title: Unsubscribe Reason
unsubscribe_method:
anyOf:
- $ref: '#/components/schemas/UnsubscribeMethod'
- type: 'null'
channel_metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Channel Metadata
last_message_sent_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Message Sent At
last_engagement_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Engagement At
bounce_count:
type: integer
title: Bounce Count
default: 0
failure_count:
type: integer
title: Failure Count
default: 0
last_bounce_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Bounce At
last_failure_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Failure At
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
tracking_consent:
anyOf:
- type: string
- type: 'null'
title: Tracking Consent
type: object
required:
- id
- tenant_id
- contact_id
- list_id
- channel_type
- status
- opt_in_method
- created_at
- updated_at
title: SubscriptionResponse
description: Schema for subscription response
example:
bounce_count: 0
channel_type: email
contact_id: contact-789
created_at: '2024-01-01T12:00:00Z'
failure_count: 0
id: sub-123
list_id: list-abc
opt_in_confirmed_at: '2024-01-01T12:00:00Z'
opt_in_ip: 192.168.1.1
opt_in_method: widget
status: subscribed
tenant_id: tenant-456
updated_at: '2024-01-01T12:00:00Z'
EmailTrackingConsentUpdate:
properties:
email:
type: string
maxLength: 320
minLength: 3
title: Email
status:
type: string
enum:
- granted
- denied
- unknown
title: Status
consent_text:
anyOf:
- type: string
maxLength: 2000
- type: 'null'
title: Consent Text
type: object
required:
- email
- status
title: EmailTrackingConsentUpdate
EmailTrackingConsentList:
properties:
items:
items:
$ref: '#/components/schemas/EmailTrackingConsentItem'
type: array
title: Items
type: object
required:
- items
title: EmailTrackingConsentList
SubscriptionCreate:
properties:
list_id:
type: string
minLength: 1
title: List Id
description: List ID to subscribe to
channel_type:
$ref: '#/components/schemas/SubscriptionChannelType'
description: Channel type for subscription
channel_id:
anyOf:
- type: string
- type: 'null'
title: Channel Id
description: Channel ID (required for telegram, messenger, instagram)
opt_in_method:
$ref: '#/components/schemas/OptInMethod'
description: Method of opt-in
default: manual
opt_in_ip:
anyOf:
- type: string
maxLength: 45
- type: 'null'
title: Opt In Ip
description: IP address of subscriber
opt_in_user_agent:
anyOf:
- type: string
- type: 'null'
title: Opt In User Agent
description: User agent string
opt_in_source_url:
anyOf:
- type: string
- type: 'null'
title: Opt In Source Url
description: URL where subscription originated
opt_in_widget_id:
anyOf:
- type: string
- type: 'null'
title: Opt In Widget Id
description: Widget ID if subscribed via widget
send_double_opt_in:
type: boolean
title: Send Double Opt In
description: Send double opt-in confirmation
default: false
channel_metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Channel Metadata
description: Channel-specific metadata
tracking_consent:
anyOf:
- type: string
enum:
- granted
- denied
- type: 'null'
title: Tracking Consent
description: 'Email open/click tracking consent of the contact''s email address (one consent covers both). Omitted: unchanged.'
tracking_consent_text:
anyOf:
- type: string
maxLength: 2000
- type: 'null'
title: Tracking Consent Text
description: The consent text the contact agreed to (proof)
type: object
required:
- list_id
- channel_type
title: SubscriptionCreate
description: Schema for creating a subscription
example:
channel_metadata: {}
channel_type: email
list_id: list-123
opt_in_ip: 192.168.1.1
opt_in_method: widget
send_double_opt_in: true
ConfirmOptInSubscriptionSummary:
properties:
status:
$ref: '#/components/schemas/SubscriptionStatus'
channel_type:
$ref: '#/components/schemas/SubscriptionChannelType'
opt_in_confirmed_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Opt In Confirmed At
type: object
required:
- status
- channel_type
title: ConfirmOptInSubscriptionSummary
description: 'What the PUBLIC (unauthenticated) confirm endpoint may reveal about the
confirmed subscription. Deliberately minimal: no ids, IP address, user
agent, tokens or the rest of the record. Never widen this to
``SubscriptionResponse``.'
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
EmailTrackingConsentItem:
properties:
email:
type: string
title: Email
status:
type: string
title: Status
description: granted | denied | unknown
source:
anyOf:
- type: string
- type: 'null'
title: Source
changed_at:
anyOf:
- type: string
- type: 'null'
title: Changed At
changed_by_user_id:
anyOf:
- type: string
- type: 'null'
title: Changed By User Id
consent_text:
anyOf:
- type: string
- type: 'null'
title: Consent Text
type: object
required:
- email
- status
title: EmailTrackingConsentItem
ChannelStats:
properties:
channel_type:
$ref: '#/components/schemas/SubscriptionChannelType'
total:
type: integer
title: Total
default: 0
subscribed:
type: integer
title: Subscribed
default: 0
pending:
type: integer
title: Pending
default: 0
unsubscribed:
type: integer
title: Unsubscribed
default: 0
bounced:
type: integer
title: Bounced
default: 0
complained:
type: integer
title: Complained
default: 0
type: object
required:
- channel_type
title: ChannelStats
description: Statistics for a single channel
example:
bounced: 15
channel_type: email
complained: 5
pending: 50
subscribed: 850
total: 1000
unsubscribed: 80
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
SubscriptionUpdate:
properties:
status:
anyOf:
- $ref: '#/components/schemas/SubscriptionStatus'
- type: 'null'
description: New subscription status
channel_metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Channel Metadata
description: Channel-specific metadata
type: object
title: SubscriptionUpdate
description: Schema for updating a subscription
example:
channel_metadata:
preferred_time: morning
status: subscribed
ContactSubscriptionsResponse:
properties:
contact_id:
type: string
title: Contact Id
total:
type: integer
title: Total
subscriptions:
items:
$ref: '#/components/schemas/SubscriptionResponse'
type: array
title: Subscriptions
type: object
required:
- contact_id
- total
- subscriptions
title: ContactSubscriptionsResponse
description: Schema for contact's subscriptions
example:
contact_id: contact-123
subscriptions: []
total: 5
UnsubscribeMethod:
type: string
enum:
- link
- keyword
- manual
- bounce
- complaint
- api
- whatsapp_flow
title: UnsubscribeMethod
description: How the unsubscription happened
SubscriptionStatus:
type: string
enum:
- pending
- subscribed
- unsubscribed
- bounced
- complained
title: SubscriptionStatus
description: Status of a subscription
securitySchemes:
HTTPBearer:
type: http
scheme: bearer