Mektup Domains API

The Domains API from Mektup, for domains.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

POST /v1/domains Register a domain #
GET /v1/domains List domains on this account #
DELETE /v1/domains/{domain} Delete a domain and everything under it #
GET /v1/domains/{domain}/records Re-fetch DNS records for an already-registered domain #
POST /v1/domains/{domain}/verify Re-check a domain's live DNS and flip verified if it matches #

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/usemektup-com:usemektup-com-domains-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

usemektup-com-domains-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mektup Domains API
  version: 1.0.0
  description: Fully-managed, multi-domain email platform (Mektup runs all the mail infrastructure - nothing for you to host or operate). Register a domain, provision mailboxes, send and receive real email, all account-scoped and enforced server-side (including at the database layer via Postgres Row-Level Security). See docs/API.md for prose documentation and worked examples, and docs/MCP.md for using this API through an MCP server as an AI agent.
  contact:
    email: contact@usemektup.com
servers:
- url: https://api.usemektup.com
  description: Production
security:
- ApiKeyAuth: []
tags:
- name: Domains
paths:
  /v1/domains:
    post:
      summary: Register a domain
      description: Generates a real DKIM keypair and returns the exact DNS records to add. Never modifies DNS itself.
      operationId: createDomain
      tags:
      - Domains
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - domain
              properties:
                domain:
                  type: string
                  example: example.com
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateDomainResult'
        '400':
          $ref: '#/components/responses/BadRequest'
        '402':
          $ref: '#/components/responses/LimitReached'
    get:
      summary: List domains on this account
      operationId: listDomains
      tags:
      - Domains
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  domains:
                    type: array
                    items:
                      $ref: '#/components/schemas/Domain'
  /v1/domains/{domain}:
    delete:
      summary: Delete a domain and everything under it
      description: Cascades to every mailbox and message. Does not delete already-delivered mail bodies from object storage.
      operationId: deleteDomain
      tags:
      - Domains
      parameters:
      - $ref: '#/components/parameters/DomainParam'
      responses:
        '204':
          description: Deleted
        '404':
          $ref: '#/components/responses/NotFound'
  /v1/domains/{domain}/records:
    get:
      summary: Re-fetch DNS records for an already-registered domain
      operationId: getDomainRecords
      tags:
      - Domains
      parameters:
      - $ref: '#/components/parameters/DomainParam'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  records:
                    type: array
                    items:
                      $ref: '#/components/schemas/DnsRecord'
                  recommendation:
                    $ref: '#/components/schemas/Recommendation'
        '404':
          $ref: '#/components/responses/NotFound'
  /v1/domains/{domain}/verify:
    post:
      summary: Re-check a domain's live DNS and flip verified if it matches
      operationId: verifyDomain
      tags:
      - Domains
      parameters:
      - $ref: '#/components/parameters/DomainParam'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  verified:
                    type: boolean
                  mx:
                    type: array
                    items:
                      type: string
                  error:
                    type: string
                    description: DNS resolver error code, present only on lookup failure
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
    DnsRecord:
      type: object
      properties:
        type:
          type: string
          enum:
          - MX
          - TXT
        host:
          type: string
        value:
          type: string
        priority:
          type: integer
        label:
          type: string
    CreateDomainResult:
      type: object
      properties:
        domain:
          $ref: '#/components/schemas/Domain'
        dkimKeyPath:
          type: string
        records:
          type: array
          items:
            $ref: '#/components/schemas/DnsRecord'
        recommendation:
          $ref: '#/components/schemas/Recommendation'
    Domain:
      type: object
      properties:
        domain:
          type: string
        verified:
          type: boolean
        created_at:
          type: string
          format: date-time
    Recommendation:
      type: object
      properties:
        nameservers:
          type: array
          items:
            type: string
        detectedHost:
          type:
          - string
          - 'null'
          enum:
          - cloudflare
          - simply.com
          - godaddy
          - route53
          - vercel
          - null
        action:
          type: string
          enum:
          - delegate
          - push-to-known-host
          - manual
        note:
          type: string
          description: Present only if NS lookup failed
  responses:
    NotFound:
      description: Not found on this account (tenant-isolated - never reveals another account's data)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    LimitReached:
      description: Billing tier limit reached
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  parameters:
    DomainParam:
      name: domain
      in: path
      required: true
      schema:
        type: string
      example: example.com
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: mek_live_...
      description: 'Bearer token API key, minted per-account. Shown once at creation, only a SHA-256 hash is stored server-side. Dashboard requests may alternatively authenticate via a Clerk session, not relevant for programmatic/agent integration.

        '