Sending Events API

Behavioral event ingestion.

GitHub OpenAPI

Operations 1

POST /events Ingest a behavioral event #

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-events-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-events-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sending.dev Events 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: Events
  description: Behavioral event ingestion.
paths:
  /events:
    post:
      tags:
      - Events
      summary: Ingest a behavioral event
      description: 'Records the event, applies UTM/conversion attribution and queues the automation. Provide `contactId` or `email` (at the top level of the body). With `idempotencyKey` (8-200 characters, e.g. the order id) the same repeated request answers 200 `duplicate` without recording a second event or a second conversion: a payment webhook delivered twice is the norm. Without a key every call is a new event. Required scope: `events:write`.'
      security:
      - bearerAuth: []
      x-required-scope:
      - events:write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EventInput'
      responses:
        '200':
          description: 'Same `idempotencyKey` already seen: nothing new recorded.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventAccepted'
        '202':
          description: Event accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventAccepted'
        '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'
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Invalid input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
      operationId: postEvents
      x-operation-id-source: derived
components:
  schemas:
    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()`.'
    Error:
      type: object
      properties:
        error:
          type: string
          example: not_found
        message:
          type: string
      required:
      - error
      description: 'Generic error: snake_case code in `error`.'
    EventAccepted:
      type: object
      properties:
        status:
          type: string
          enum:
          - accepted
          - duplicate
        eventId:
          type: string
          format: uuid
        contactId:
          type: string
          format: uuid
      required:
      - status
      - eventId
      - contactId
    EventInput:
      type: object
      properties:
        name:
          type: string
          minLength: 1
        contactId:
          type: string
          format: uuid
        email:
          type: string
          format: email
        properties:
          type: object
          additionalProperties: {}
        idempotencyKey:
          type: string
          minLength: 8
          maxLength: 200
      required:
      - name
    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.'