Sending Usage API

Usage snapshot against the plan.

GitHub OpenAPI

Operations 3

GET /usage Usage snapshot against the plan #
GET /settings/frequency-cap Per-contact frequency cap #
PATCH /settings/frequency-cap Set the frequency cap #

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/sending-dev:sending-dev-usage-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

sending-dev-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sending.dev Usage API
  version: 1.0.0
  description: 'Public REST API of Sending.dev (MCP-native orchestrator for email + WhatsApp + Telegram).


    ## Authentication

    Every request requires `Authorization: Bearer sk_...` (workspace API key). The `tenantId` is always derived from the key.


    ## Idempotency

    Sends require an `idempotencyKey` (min 8 characters) to prevent duplicates on retries.'
  contact:
    name: Sending.dev
    url: https://sending.dev
servers:
- url: https://sending.dev/api/v1
  description: Production
- url: http://localhost:3000/api/v1
  description: Local development
security:
- bearerAuth: []
tags:
- name: Usage
  description: Usage snapshot against the plan.
paths:
  /usage:
    get:
      tags:
      - Usage
      summary: Usage snapshot against the plan
      description: Requires authentication only (any valid API key).
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Usage snapshot.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageSnapshot'
        '401':
          description: Missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getUsage
      x-operation-id-source: derived
  /settings/frequency-cap:
    get:
      tags:
      - Usage
      summary: Per-contact frequency cap
      description: Requires authentication only (any valid API key).
      security:
      - bearerAuth: []
      responses:
        '200':
          description: 'Current frequency cap. With the cap on it includes `impact`: how many messages were dropped or deferred in the last 30 days, and how many contacts were affected.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FrequencyCapWithImpact'
        '401':
          description: Missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getSettingsFrequencyCap
      x-operation-id-source: derived
    patch:
      tags:
      - Usage
      summary: Set the frequency cap
      description: 'At most `max` MARKETING messages per contact every `days` days. Needed because no flow knows about the others: someone who joins a list on Monday, clicks on Tuesday and has an event during the week gets four emails in three days without anyone having decided it. Transactional messages are never held and do not count. Out-of-range values are clamped into the limits instead of being rejected. Required scope: `settings:write`.'
      security:
      - bearerAuth: []
      x-required-scope:
      - settings:write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FrequencyCapUpdate'
      responses:
        '200':
          description: Cap updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FrequencyCap'
        '401':
          description: Missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Insufficient scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '422':
          description: Invalid input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
      operationId: patchSettingsFrequencyCap
      x-operation-id-source: derived
components:
  schemas:
    FrequencyCapUpdate:
      type: object
      properties:
        max:
          type:
          - integer
          - 'null'
          description: Maximum marketing messages per contact in the window; `null` = no cap.
        days:
          type: integer
          description: Window size in days (1-90).
        policy:
          type: string
          enum:
          - skip
          - defer
          description: '`skip` drops the excess message, `defer` postpones it until the window frees up.'
    ValidationError:
      type: object
      properties:
        error:
          type: object
          properties:
            formErrors:
              type: array
              items:
                type: string
            fieldErrors:
              type: object
              additionalProperties:
                type: array
                items:
                  type: string
          required:
          - formErrors
          - fieldErrors
      required:
      - error
      description: 'Zod validation failed: shape of `ZodError.flatten()`.'
    FrequencyCap:
      type: object
      properties:
        max:
          type:
          - integer
          - 'null'
          description: Maximum marketing messages per contact in the window; `null` = no cap.
        days:
          type: integer
          description: Window size in days (1-90).
        policy:
          type: string
          enum:
          - skip
          - defer
          description: '`skip` drops the excess message, `defer` postpones it until the window frees up.'
      required:
      - max
      - days
      - policy
    Error:
      type: object
      properties:
        error:
          type: string
          example: not_found
        message:
          type: string
      required:
      - error
      description: 'Generic error: snake_case code in `error`.'
    UsageSnapshot:
      type: object
      properties:
        plan:
          type: string
        messages:
          type: object
          additionalProperties: {}
    FrequencyCapWithImpact:
      allOf:
      - $ref: '#/components/schemas/FrequencyCap'
      - type: object
        properties:
          impact:
            type: object
            properties:
              capped:
                type: integer
              deferred:
                type: integer
              contactsAffected:
                type: integer
              windowDays:
                type: integer
            required:
            - capped
            - deferred
            - contactsAffected
            - windowDays
    ForbiddenError:
      type: object
      properties:
        error:
          type: string
          enum:
          - forbidden
        need:
          type: string
          example: contacts:write
      required:
      - error
      description: Insufficient scope; `need` names the missing scope.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Workspace API key in the `sk_...` format, passed as `Authorization: Bearer sk_...`. The `tenantId` is always derived from the key, never from a request parameter.'