SendSeven GmbH SMS API

Manage SMS provisioning, sender verification, and account balance.

GitHub OpenAPI

Operations 7

GET /api/v1/sms/available-numbers List MSISDNs available to purchase in a country #
GET /api/v1/sms/balance Current prepaid SMS balance #
PUT /api/v1/sms/low-balance-threshold Set the low-balance warning threshold #
GET /api/v1/sms/senders List the tenant's configured SMS senders #
DELETE /api/v1/sms/senders/{channel_id} Release a dedicated number or archive an alphanumeric/verified sender #
GET /api/v1/sms/message-pricing Estimated price to send one SMS to a country / number #
GET /api/v1/sms/pricelist Full per-country SMS pricelist (platform fee + SendSeven margin) #

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-sms-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-sms-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SendSeven SMS API
  description: Unified messaging API for WhatsApp, Telegram, SMS, and more
  version: '20261124.1227'
servers:
- url: https://api.sendseven.com
  description: Production
tags:
- name: SMS
  description: Manage SMS provisioning, sender verification, and account balance.
paths:
  /api/v1/sms/available-numbers:
    get:
      tags:
      - SMS
      summary: List MSISDNs available to purchase in a country
      description: 'List numbers offered by our SMS provider for the given country.


        Results are cached per-tenant for 5 minutes to keep the pick-a-number

        picker snappy and to avoid hammering the SMS provider when a customer pages

        through options.


        **Required Scopes:** ``channels:read``'
      operationId: list_available_numbers_api_v1_sms_available_numbers_get
      security:
      - HTTPBearer: []
      parameters:
      - name: country
        in: query
        required: true
        schema:
          type: string
          minLength: 2
          maxLength: 2
          description: ISO-3166 alpha-2
          title: Country
        description: ISO-3166 alpha-2
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AvailableNumbersListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/sms/balance:
    get:
      tags:
      - SMS
      summary: Current prepaid SMS balance
      description: 'Return the workspace''s prepaid SMS balance and balance settings.


        Besides ``balance_eur`` and the auto-top-up / low-balance-warning

        settings, the response carries:


        * ``pending_transfer_cents`` — credit from already-paid top-ups that is

        still on its way to the balance (usually arrives within minutes).

        * ``auto_topup_available`` — whether auto-top-up can currently be enabled.

        * ``auto_topup_has_payment_method`` — whether a card is saved for it.

        * ``auto_topup_last_attempt`` — the latest automatic top-up attempt

        (``status``, ``amount_cents``, ``created_at``, ``failure_code``) or null.

        * ``auto_topup_min_amount_cents`` / ``auto_topup_max_amount_cents`` — the

        allowed auto-top-up amount range (net, cents).

        * ``auto_topup_can_edit`` — whether the caller may change auto-top-up

        (needs ``billing:update``); otherwise show the settings read-only.


        **Required Scopes:** ``channels:read``'
      operationId: get_balance_api_v1_sms_balance_get
      security:
      - HTTPBearer: []
      parameters:
      - name: force_refresh
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Force Refresh
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BalanceResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/sms/low-balance-threshold:
    put:
      tags:
      - SMS
      summary: Set the low-balance warning threshold
      description: 'Set (or clear) the workspace''s SMS low-balance **warning** threshold.


        When the prepaid balance drops below this amount the workspace owners and

        admins receive the low-balance warning (email + in-app, at most once per

        24h). This is warn-only — it never triggers a charge (see auto-topup).


        Body: ``{"threshold_eur": | null}`` —

        ``null`` removes the per-workspace override so the platform default

        applies again. Returns the updated settings resource (same shape as

        ``GET /sms/balance``); the balance value is the cached one (no forced

        provider refresh).


        **Required Scopes:** ``channels:update``'
      operationId: update_low_balance_threshold_api_v1_sms_low_balance_threshold_put
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LowBalanceThresholdUpdateRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BalanceResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/v1/sms/senders:
    get:
      tags:
      - SMS
      summary: List the tenant's configured SMS senders
      description: 'List every SMS sender configured for the tenant.


        The frontend cannot get this from ``/channels``: ``ChannelResponse``

        deliberately omits ``Channel.config`` (it holds API tokens and secrets),

        so ``sender_type`` / ``mode`` / ``msisdn_or_alpha`` were invisible. This

        endpoint returns a hand-whitelisted projection of those non-secret facts.

        Provider subaccount ids and every other credential stay server-side.


        Inactive / archived senders ARE included so the UI can show them as

        archived, but they are never ``is_default_for_send``.


        Archived channels have ``config = None`` (``Channel.archive()`` calls

        ``_clear_credentials()``), so ``sender_type`` is recovered from the

        ``sms_phone_numbers.number_type`` row (which survives archiving) or from

        the identifier shape. One case remains genuinely undecidable: an archived

        row with no ``sms_phone_numbers`` row and a phone-shaped identifier, where

        ``dedicated`` and ``verified_own`` are indistinguishable. Those rows are

        omitted (and logged) rather than guessed — ``pagination.total`` counts only

        rows that are actually returned. Active channels always carry

        ``config["sender_type"]``, so a live sender can never be omitted.


        ``is_default_for_send`` marks the ONE sender an auto-selected send will

        actually use. It comes from the same

        :func:`app.services.sms.sender_identity.pick_default_sms_channel` helper

        the send path in ``app/api/messages.py`` calls, so the badge is truthful

        by construction rather than by convention.


        **Required Scopes:** ``channels:read``'
      operationId: list_senders_api_v1_sms_senders_get
      security:
      - HTTPBearer: []
      parameters:
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
          title: Page
      - name: page_size
        in: query
        required: false
        schema:
          type: integer
          maximum: 200
          minimum: 1
          default: 50
          title: Page Size
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_SmsSenderResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/sms/senders/{channel_id}:
    delete:
      tags:
      - SMS
      summary: Release a dedicated number or archive an alphanumeric/verified sender
      description: 'Delete / release an SMS sender.


        For ``dedicated`` senders this releases the number at the SMS

        provider. For ``alphanumeric`` / ``verified_own`` senders we only

        archive the :class:`Channel` row; there is no number to release.


        **Required Scopes:** ``channels:delete``'
      operationId: delete_sender_api_v1_sms_senders__channel_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: channel_id
        in: path
        required: true
        schema:
          type: string
          title: Channel Id
      - name: immediate
        in: query
        required: false
        schema:
          type: boolean
          description: If true, release the number immediately
          default: false
          title: Immediate
        description: If true, release the number immediately
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteSenderResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/sms/message-pricing:
    get:
      tags:
      - SMS
      summary: Estimated price to send one SMS to a country / number
      description: 'Estimate what one SMS to a country / number costs.


        Accepts either a ``phone`` (preferred — country resolved by E.164

        prefix), a ``country`` ISO-2 hint, or both. Carrier prices are

        refreshed daily; ``source`` reports whether this answer came from the

        live price list, the cache or the fallback list.


        Two charges with different units:


        * ``platform_fee_eur`` — carrier fee PER SEGMENT, taken from the

        workspace''s prepaid SMS balance. MIN price across all networks for

        the destination country (conservative: a specific route may cost

        more).

        * ``sendseven_fee_eur`` — SendSeven fee ONCE PER MESSAGE, counted

        against the plan''s message pool (matches the invoice).


        ``total_eur = platform_fee_eur × segments + sendseven_fee_eur``, split

        into ``carrier_fee_total_eur`` and ``sendseven_fee_total_eur``. Without

        ``text``, segments is 1. ``total_per_segment_eur`` / legacy

        ``price_per_message_eur`` stay for older clients and equal the price

        of a ONE-segment SMS; do not multiply them by ``segments``.


        **Required Scopes:** ``channels:read``'
      operationId: message_pricing_api_v1_sms_message_pricing_get
      security:
      - HTTPBearer: []
      parameters:
      - name: phone
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Recipient MSISDN (E.164)
          title: Phone
        description: Recipient MSISDN (E.164)
      - name: country
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            minLength: 2
            maxLength: 3
          - type: 'null'
          description: ISO-3166 alpha-2 (e.g. 'DE') — alternative to phone
          title: Country
        description: ISO-3166 alpha-2 (e.g. 'DE') — alternative to phone
      - name: text
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional message body. When supplied, the response includes the segment count and total_eur = carrier fee x segments + SendSeven fee (once per message).
          title: Text
        description: Optional message body. When supplied, the response includes the segment count and total_eur = carrier fee x segments + SendSeven fee (once per message).
      - name: append_opt_out_link
        in: query
        required: false
        schema:
          type: boolean
          description: 'Price the text as a Reach campaign with the SMS opt-out link enabled: a representative '' Unsubscribe: https://c.sendseven.com/<code>'' suffix (same length and encoding as the real per-recipient link) is appended before segments, char_count and total are computed.'
          default: false
          title: Append Opt Out Link
        description: 'Price the text as a Reach campaign with the SMS opt-out link enabled: a representative '' Unsubscribe: https://c.sendseven.com/<code>'' suffix (same length and encoding as the real per-recipient link) is appended before segments, char_count and total are computed.'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessagePricingResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/sms/pricelist:
    get:
      tags:
      - SMS
      summary: Full per-country SMS pricelist (platform fee + SendSeven margin)
      description: 'Return the full SMS pricelist as a per-country table.


        Used by the frontend pricing page. Carrier prices are refreshed daily;

        the ``source`` field reports whether this answer came from the live

        price list, the cache or the fallback list.


        ``platform_fee_eur`` is the carrier fee per segment (prepaid SMS

        balance), ``sendseven_fee_eur`` the SendSeven fee per message (plan

        pool). ``total_per_segment_eur`` is their sum, i.e. the price of a

        one-segment SMS.


        **Required Scopes:** ``channels:read``'
      operationId: get_sms_pricelist_api_v1_sms_pricelist_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SmsPricelistResponse'
      security:
      - HTTPBearer: []
components:
  schemas:
    PaginatedResponse_SmsSenderResponse_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/SmsSenderResponse'
          type: array
          title: Items
          description: List of items for this page
        pagination:
          $ref: '#/components/schemas/PaginationMeta'
          description: Pagination metadata
      type: object
      required:
      - items
      - pagination
      title: PaginatedResponse[SmsSenderResponse]
    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
    PaginationMeta:
      properties:
        total:
          type: integer
          title: Total
          description: Total number of items matching the query
        page:
          type: integer
          minimum: 1.0
          title: Page
          description: Current page number (1-indexed)
        page_size:
          type: integer
          minimum: 1.0
          title: Page Size
          description: Number of items per page
        total_pages:
          type: integer
          title: Total Pages
          description: Total number of pages
        has_next:
          type: boolean
          title: Has Next
          description: Whether there are more pages
        has_prev:
          type: boolean
          title: Has Prev
          description: Whether there are previous pages
        next_cursor:
          anyOf:
          - type: string
          - type: 'null'
          title: Next Cursor
          description: Cursor for next page (if using cursor pagination)
        prev_cursor:
          anyOf:
          - type: string
          - type: 'null'
          title: Prev Cursor
          description: Cursor for previous page
      type: object
      required:
      - total
      - page
      - page_size
      - total_pages
      - has_next
      - has_prev
      title: PaginationMeta
      description: 'Pagination metadata for list responses.


        Supports both offset-based and page-based pagination.

        Clients should use page/page_size for new implementations.'
    MessagePricingResponse:
      properties:
        country_iso:
          anyOf:
          - type: string
          - type: 'null'
          title: Country Iso
        country_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Country Name
        country_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Country Code
        prefix:
          anyOf:
          - type: string
          - type: 'null'
          title: Prefix
        phone_sample:
          anyOf:
          - type: string
          - type: 'null'
          title: Phone Sample
        platform_fee_eur:
          type: string
          title: Platform Fee Eur
          description: Carrier fee per SMS segment, deducted from the prepaid SMS balance.
        sendseven_fee_eur:
          type: string
          title: Sendseven Fee Eur
          description: SendSeven fee per message (not per segment), counted against the plan's message pool.
        total_per_segment_eur:
          type: string
          title: Total Per Segment Eur
          description: Deprecated. platform_fee_eur + sendseven_fee_eur, i.e. the price of a one-segment SMS. Do not multiply by segments; use total_eur.
        price_per_message_eur:
          type: string
          title: Price Per Message Eur
          description: Deprecated alias of total_per_segment_eur (price of a one-segment SMS).
        segments:
          type: integer
          title: Segments
          default: 1
        encoding:
          anyOf:
          - type: string
          - type: 'null'
          title: Encoding
        char_count:
          type: integer
          title: Char Count
          default: 0
        carrier_fee_total_eur:
          anyOf:
          - type: string
          - type: 'null'
          title: Carrier Fee Total Eur
          description: 'platform_fee_eur x segments: what this message takes from the prepaid SMS balance.'
        sendseven_fee_total_eur:
          anyOf:
          - type: string
          - type: 'null'
          title: Sendseven Fee Total Eur
          description: SendSeven fee for this message (charged once, whatever the segment count).
        total_eur:
          type: string
          title: Total Eur
          description: 'Estimated total for this message: platform_fee_eur x segments + sendseven_fee_eur. Without text, segments is 1.'
        source:
          type: string
          title: Source
        is_supported:
          type: boolean
          title: Is Supported
          default: true
        quote_required:
          type: boolean
          title: Quote Required
          default: false
      type: object
      required:
      - platform_fee_eur
      - sendseven_fee_eur
      - total_per_segment_eur
      - price_per_message_eur
      - total_eur
      - source
      title: MessagePricingResponse
      description: "Estimated price for one outbound SMS.\n\nAn SMS has two charges with different units:\n\n* ``platform_fee_eur``: the carrier fee, charged PER SEGMENT from the\n  workspace's prepaid SMS balance (min across networks for the\n  destination country);\n* ``sendseven_fee_eur``: the SendSeven fee, charged ONCE PER MESSAGE\n  regardless of length, counted against the plan's message pool.\n\nWith a ``text``, ``total_eur = platform_fee_eur * segments +\nsendseven_fee_eur`` (also split into ``carrier_fee_total_eur`` and\n``sendseven_fee_total_eur``). ``total_per_segment_eur`` and its legacy\nalias ``price_per_message_eur`` are kept for older clients: both equal\nthe price of a ONE-segment SMS and must not be multiplied by\n``segments``."
    DeleteSenderResponse:
      properties:
        success:
          type: boolean
          title: Success
        channel_id:
          type: string
          title: Channel Id
        released:
          type: boolean
          title: Released
          default: false
      type: object
      required:
      - success
      - channel_id
      title: DeleteSenderResponse
    AvailableNumberResponse:
      properties:
        number:
          type: string
          title: Number
        country:
          anyOf:
          - type: string
          - type: 'null'
          title: Country
        monthly_price_eur:
          anyOf:
          - type: string
          - type: 'null'
          title: Monthly Price Eur
        yearly_price_eur:
          anyOf:
          - type: string
          - type: 'null'
          title: Yearly Price Eur
        features:
          items:
            type: string
          type: array
          title: Features
      type: object
      required:
      - number
      title: AvailableNumberResponse
      description: 'One number offered for purchase.


        Prices are captured at list-time (EUR net).'
    BalanceResponse:
      properties:
        balance_eur:
          type: string
          title: Balance Eur
        auto_topup_enabled:
          type: boolean
          title: Auto Topup Enabled
          default: false
        auto_topup_threshold_cents:
          anyOf:
          - type: integer
          - type: 'null'
          title: Auto Topup Threshold Cents
        auto_topup_amount_cents:
          anyOf:
          - type: integer
          - type: 'null'
          title: Auto Topup Amount Cents
        last_checked_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Checked At
        low_balance_warn_eur:
          type: string
          title: Low Balance Warn Eur
          description: 'Effective low-balance warning threshold in EUR: the per-workspace override when set, otherwise the platform default.'
        low_balance_warn_is_default:
          type: boolean
          title: Low Balance Warn Is Default
          description: True when no per-workspace override is set (platform default applies).
          default: true
        pending_transfer_cents:
          type: integer
          title: Pending Transfer Cents
          description: Credit (net, cents) from already-paid top-ups that is still on its way to the SMS balance. 0 when everything has landed.
          default: 0
        auto_topup_available:
          type: boolean
          title: Auto Topup Available
          description: False while auto-top-up is switched off platform-wide (it cannot be enabled).
          default: false
        auto_topup_has_payment_method:
          type: boolean
          title: Auto Topup Has Payment Method
          description: True when a card for auto-top-up is saved on this workspace.
          default: false
        auto_topup_last_attempt:
          anyOf:
          - $ref: '#/components/schemas/AutoTopupAttemptSummary'
          - type: 'null'
          description: The most recent automatic top-up attempt, if any.
        auto_topup_min_amount_cents:
          type: integer
          title: Auto Topup Min Amount Cents
          description: Smallest allowed auto-top-up amount (net, cents).
          default: 2000
        auto_topup_max_amount_cents:
          type: integer
          title: Auto Topup Max Amount Cents
          description: Largest allowed auto-top-up amount (net, cents). The threshold must also stay below the amount.
          default: 10000
        auto_topup_can_edit:
          type: boolean
          title: Auto Topup Can Edit
          description: True when the caller may change the auto-top-up settings (requires the billing:update scope). When False, show them read-only.
          default: false
      type: object
      required:
      - balance_eur
      - low_balance_warn_eur
      title: BalanceResponse
      description: 'Prepaid SMS balance + the tenant''s balance-related settings.


        ``low_balance_warn_eur`` is the EFFECTIVE low-balance warning threshold

        (per-tenant override if set, else the platform default);

        ``low_balance_warn_is_default`` tells whether it is the platform default.

        Change it with ``PUT /sms/low-balance-threshold``.'
    AvailableNumbersListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/AvailableNumberResponse'
          type: array
          title: Items
        country:
          type: string
          title: Country
        cached_until:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Cached Until
      type: object
      required:
      - items
      - country
      title: AvailableNumbersListResponse
    SmsPricelistResponse:
      properties:
        countries:
          items:
            $ref: '#/components/schemas/SmsPricelistRow'
          type: array
          title: Countries
        currency:
          type: string
          title: Currency
          default: EUR
        sendseven_margin_eur:
          type: string
          title: Sendseven Margin Eur
        source:
          type: string
          title: Source
        last_updated:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Updated
        supported_countries:
          items:
            type: string
          type: array
          title: Supported Countries
      type: object
      required:
      - countries
      - sendseven_margin_eur
      - source
      title: SmsPricelistResponse
      description: 'Full SMS pricelist — every country with per-segment fees.


        ``supported_countries`` is the canonical list of ISO-2 codes where

        SendSeven currently offers SMS sending; client code can rely on this

        instead of filtering rows by ``is_supported``.'
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AutoTopupAttemptSummary:
      properties:
        status:
          type: string
          enum:
          - pending
          - succeeded
          - failed
          title: Status
        amount_cents:
          type: integer
          title: Amount Cents
        created_at:
          type: string
          format: date-time
          title: Created At
        failure_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Failure Code
      type: object
      required:
      - status
      - amount_cents
      - created_at
      title: AutoTopupAttemptSummary
      description: Most recent automatic top-up attempt (``GET /sms/balance``).
    SmsSenderResponse:
      properties:
        channel_id:
          type: string
          title: Channel Id
          description: Channel UUID
        name:
          type: string
          title: Name
          description: Human-readable sender name (Channel.name)
        sender_type:
          type: string
          enum:
          - dedicated
          - verified_own
          - alphanumeric
          - shared_pool
          title: Sender Type
          description: dedicated | verified_own | alphanumeric | shared_pool
        mode:
          type: string
          enum:
          - send_only
          - send_and_receive
          title: Mode
          description: Operating mode. Legacy rows without config.mode default to send_and_receive; alphanumeric senders are always send_only.
        msisdn_or_alpha:
          anyOf:
          - type: string
          - type: 'null'
          title: Msisdn Or Alpha
          description: The MSISDN or alphanumeric sender id. null for shared_pool — the provider picks a pool number per send.
        can_receive:
          type: boolean
          title: Can Receive
          description: True iff replies route back into a conversation. False for alphanumeric and for shared_pool in send_only mode.
        inbound_sms_rate_eur:
          anyOf:
          - type: string
          - type: 'null'
          title: Inbound Sms Rate Eur
          description: The tenant's per-SMS rate in EUR from their pricing model (cost_message_sms, falling back to cost_message). Populated only when can_receive is true — a routed inbound reply is billed as an ordinary SMS at this rate, NOT as a separate surcharge. null when the sender cannot receive or the rate cannot be resolved.
        is_active:
          type: boolean
          title: Is Active
          description: False for archived / disabled senders
        is_verified:
          type: boolean
          title: Is Verified
        is_default_for_send:
          type: boolean
          title: Is Default For Send
          description: True for the ONE sender an auto-selected send will use (see SMS_SENDER_PRIORITY in app/services/sms/sender_identity.py). Never true for an inactive sender.
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - channel_id
      - name
      - sender_type
      - mode
      - can_receive
      - is_active
      - is_verified
      - is_default_for_send
      - created_at
      title: SmsSenderResponse
      description: 'One configured SMS sender.


        **SECURITY — hand-whitelisted projection.** ``ChannelResponse`` in

        ``app/schemas/channel.py`` deliberately excludes ``Channel.config``

        because it holds API tokens, secrets and credentials that must NEVER be

        returned via the API. This schema exists so the frontend can see the few

        non-secret SMS facts it needs (``sender_type``, ``mode``,

        ``msisdn_or_alpha``) WITHOUT that ban being relaxed. Every field below is

        named explicitly — the endpoint never dumps ``config``, and in particular

        never exposes the provider subaccount id. Do not add a passthrough field.'
    LowBalanceThresholdUpdateRequest:
      properties:
        threshold_eur:
          anyOf:
          - type: number
            maximum: 1000.0
            minimum: 0.0
          - type: string
          - type: 'null'
          title: Threshold Eur
          description: Warning threshold in EUR (0 – 1000, max 2 decimals); null reverts to the platform default.
      type: object
      title: LowBalanceThresholdUpdateRequest
      description: 'Body of ``PUT /sms/low-balance-threshold``.


        ``threshold_eur``: EUR amount (0 – 1000, max 2 decimals) below which the

        workspace owners/admins get the low-balance warning. ``null`` removes the

        per-workspace override and reverts to the platform default.'
    SmsPricelistRow:
      properties:
        iso:
          type: string
          title: Iso
        name:
          type: string
          title: Name
        prefix:
          type: string
          title: Prefix
        platform_fee_eur:
          type: string
          title: Platform Fee Eur
          description: Carrier fee per SMS segment, deducted from the prepaid SMS balance.
        sendseven_fee_eur:
          type: string
          title: Sendseven Fee Eur
          description: SendSeven fee per message (not per segment), counted against the plan's message pool.
        total_per_segment_eur:
          type: string
          title: Total Per Segment Eur
          description: 'platform_fee_eur + sendseven_fee_eur: the price of a one-segment SMS. A message with n segments costs platform_fee_eur x n + sendseven_fee_eur.'
        is_supported:
          type: boolean
          title: Is Supported
          default: false
      type: object
      required:
      - iso
      - name
      - prefix
      - platform_fee_eur
      - sendseven_fee_eur
      - total_per_segment_eur
      title: SmsPricelistRow
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer