Mailtea Senders API

The Senders API from Mailtea — 2 operation(s) for senders.

GitHub OpenAPI

Operations 5

GET /v1/senders List Senders #
POST /v1/senders Create Sender #
DELETE /v1/senders/{id} Delete Sender #
GET /v1/senders/{id} Retrieve Sender #
PATCH /v1/senders/{id} Update Sender #

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/mailtea-app:mailtea-app-senders-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

mailtea-app-senders-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mailtea Senders API
  version: 0.24.0
  summary: Send transactional and marketing email, manage contacts and audiences, verify sending domains, render templates, and subscribe to webhook events.
  description: Every endpoint lives under `/v1` and takes a Bearer token (`mt_pat_…` personal access token, `mt_svc_…` service key, or `mt_test_…` test key) in the `Authorization` header. The required scopes are listed per operation. This document is generated from the API reference at https://docs.mailtea.app/docs/api-reference.
  termsOfService: https://mailtea.app/terms
  contact:
    name: Mailtea
    url: https://mailtea.app
    email: support@mailtea.app
  license:
    name: AGPL-3.0-only
    identifier: AGPL-3.0-only
servers:
- url: https://api.mailtea.app
  description: Mailtea cloud
tags:
- name: Senders
paths:
  /v1/senders:
    get:
      operationId: listSenders
      summary: List Senders
      description: 'List a publication''s senders with cursor-based pagination


        List the senders for a publication, ordered by newest first. Results are paginated with cursor-based pagination.'
      tags:
      - Senders
      externalDocs:
        url: https://docs.mailtea.app/docs/api-reference/senders/list-senders
      parameters:
      - name: publication_id
        in: query
        required: true
        description: The publication whose senders to list.
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: Number of results per page. 1–100, default `20`.
        schema:
          type: number
      - name: after
        in: query
        required: false
        description: Pagination cursor from a previous response's `next_cursor`.
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    description: Always `"list"`.
                  data:
                    type: array
                    description: Array of [sender objects](/docs/api-reference/senders#the-sender-object).
                  has_more:
                    type: boolean
                    description: Whether additional pages exist.
                  next_cursor:
                    type: string
                    description: Cursor for the next page. Only present when `has_more` is `true`.
              example:
                object: list
                data:
                - object: sender
                  id: snd_abc123
                  publication_id: pub_abc123
                  name: Acme News
                  email: news@acme.com
                  reply_to: replies@acme.com
                  is_default: true
                  created_at: '2026-07-19T10:00:00.000Z'
                  updated_at: '2026-07-19T10:00:00.000Z'
                has_more: false
        '400':
          description: Missing required `publication_id` query parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized — missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — the token lacks `senders:read`, or the publication is not owned by your team.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearerAuth:
        - senders:read
      x-mailtea-scopes:
      - senders:read
    post:
      operationId: createSender
      summary: Create Sender
      description: 'Create a named from-identity for a publication


        Create a named sender for a publication. The sender''s `email` domain must be a **verified, DKIM-verified, email-capable sending domain** of the publication — the same gate every send path enforces. If the domain is not eligible, the request returns `400` with a message explaining what to fix.


        The built-in `.mailtea.email` host is **not** eligible: it can only ever email verified members of your team, so a sender on it would be refused on every send. Verify your own domain first — see Who you can email. The refusal reads: `The built-in mailtea.email address can only send test emails to your own team. Verify a domain under Domains in Mailtea Studio to add a sender.`


        Set `is_default` to make this the publication''s default sender. A publication has at most one default; creating a new default clears the previous one.'
      tags:
      - Senders
      externalDocs:
        url: https://docs.mailtea.app/docs/api-reference/senders/create-sender
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                publication_id:
                  type: string
                  description: The publication to create the sender in.
                name:
                  type: string
                  description: Display name shown to recipients. 1–120 characters.
                email:
                  type: string
                  description: From address. Its domain must be a verified, DKIM-verified sending domain of the publication.
                reply_to:
                  type:
                  - string
                  - 'null'
                  description: Reply-to address. May be on any domain. Max 320 characters.
                is_default:
                  type: boolean
                  description: Make this the publication's default sender. Defaults to `false`.
              required:
              - publication_id
              - name
              - email
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
              example:
                object: sender
                id: snd_abc123
                publication_id: pub_abc123
                name: Acme News
                email: news@acme.com
                reply_to: replies@acme.com
                is_default: true
                created_at: '2026-07-19T10:00:00.000Z'
                updated_at: '2026-07-19T10:00:00.000Z'
        '400':
          description: Validation failed, the `email`/`reply_to` is not a valid address, the `email` domain is not a verified, DKIM-verified sending domain of the publication, or the `email` is on the built-in `*.mailtea.email` host.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized — missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — the token lacks `senders:write`, or the publication is not owned by your team.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Publication not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Conflict — a sender with this email already exists for the publication.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearerAuth:
        - senders:write
      x-mailtea-scopes:
      - senders:write
  /v1/senders/{id}:
    delete:
      operationId: deleteSender
      summary: Delete Sender
      description: 'Delete a named sender


        Delete a sender. Newsletters that named this sender fall back to the publication''s default sender (or the automatic address on the primary sending domain) on their next send — deleting a sender never deletes an issue.'
      tags:
      - Senders
      externalDocs:
        url: https://docs.mailtea.app/docs/api-reference/senders/delete-sender
      parameters:
      - name: id
        in: path
        required: true
        description: The sender ID (prefix `snd_`).
        schema:
          type: string
      - name: publication_id
        in: query
        required: true
        description: The publication the sender belongs to.
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
              example:
                object: sender
                id: snd_abc123
                deleted: true
        '400':
          description: Missing required `publication_id` query parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized — missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — the token lacks `senders:write`, or the publication is not owned by your team.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Sender not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearerAuth:
        - senders:write
      x-mailtea-scopes:
      - senders:write
    get:
      operationId: retrieveSender
      summary: Retrieve Sender
      description: 'Retrieve a single sender by ID


        Retrieve a single sender by its ID.'
      tags:
      - Senders
      externalDocs:
        url: https://docs.mailtea.app/docs/api-reference/senders/retrieve-sender
      parameters:
      - name: id
        in: path
        required: true
        description: The sender ID (prefix `snd_`).
        schema:
          type: string
      - name: publication_id
        in: query
        required: true
        description: The publication the sender belongs to.
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
              example:
                object: sender
                id: snd_abc123
                publication_id: pub_abc123
                name: Acme News
                email: news@acme.com
                reply_to: replies@acme.com
                is_default: true
                created_at: '2026-07-19T10:00:00.000Z'
                updated_at: '2026-07-19T10:00:00.000Z'
        '400':
          description: Missing required `publication_id` query parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized — missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — the token lacks `senders:read`, or the publication is not owned by your team.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Sender not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearerAuth:
        - senders:read
      x-mailtea-scopes:
      - senders:read
    patch:
      operationId: updateSender
      summary: Update Sender
      description: 'Update a sender''s name, reply-to, or default flag


        Update a sender''s `name`, `reply_to`, or default flag. The `email` is **immutable** — create a new sender to send from a different address.


        Set `is_default` to `true` to promote this sender to the publication''s default; the previous default is cleared.'
      tags:
      - Senders
      externalDocs:
        url: https://docs.mailtea.app/docs/api-reference/senders/update-sender
      parameters:
      - name: id
        in: path
        required: true
        description: The sender ID (prefix `snd_`).
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                publication_id:
                  type: string
                  description: The publication the sender belongs to.
                name:
                  type: string
                  description: New display name. 1–120 characters.
                reply_to:
                  type:
                  - string
                  - 'null'
                  description: New reply-to address, or `null` to clear it. Max 320 characters.
                is_default:
                  type: boolean
                  description: Set to `true` to make this the publication's default sender.
              required:
              - publication_id
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
              example:
                object: sender
                id: snd_abc123
                publication_id: pub_abc123
                name: Acme Weekly
                email: news@acme.com
                reply_to: replies@acme.com
                is_default: true
                created_at: '2026-07-19T10:00:00.000Z'
                updated_at: '2026-07-19T11:30:00.000Z'
        '400':
          description: Validation failed, or `reply_to` is not a valid address.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized — missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — the token lacks `senders:write`, or the publication is not owned by your team.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Sender not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearerAuth:
        - senders:write
      x-mailtea-scopes:
      - senders:write
components:
  schemas:
    Error:
      type: object
      description: Every error body carries `error`; validation failures add `details` and some refusals add a machine-readable `code`.
      properties:
        error:
          type: string
        code:
          type: string
        details:
          type: array
          items:
            type: object
      required:
      - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A Mailtea API key. Scopes such as `contacts:write` are properties of the key, chosen when it is created; each operation lists the scope it needs under `x-mailtea-scopes`. See https://docs.mailtea.app/docs/api-reference/authentication.
externalDocs:
  description: API reference
  url: https://docs.mailtea.app/docs/api-reference