Postmark Domains API

The Domains API API from Postmark — 6 operation(s) for domains api.

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /domains List sending domains · Postmark List Domains #
Ask an LLM
“Which domains have I added to my Postmark account?”
“Can I page through all my sending domains a few at a time?”
Tell an agent
List the first {count} domains on my account.
Show my domains, skipping the first {offset}.
POST /domains Add a sending domain · Postmark Create a Domain #
Ask an LLM
“How do I add a new domain so I can send email from it?”
“Can I set a custom Return-Path when I register a domain?”
Tell an agent
Add the domain {name} to my account.
Register domain {name} with Return-Path domain {return_path}.
GET /domains/{domainid} Get a domain's DNS and verification status · Postmark Get a Domain #
Ask an LLM
“What DKIM and Return-Path records does one of my domains need?”
“Has my domain's DNS verification gone through yet?”
Tell an agent
Get the details for domain {domainid}.
Show the DNS records and verification state of domain {domainid}.
PUT /domains/{domainid} Change a domain's Return-Path · Postmark Update a Domain #
Ask an LLM
“How do I change the Return-Path on a domain I already added?”
“Can I update an existing domain's custom bounce domain?”
Tell an agent
Set the Return-Path of domain {domainid} to {return_path}.
Update domain {domainid} with a new Return-Path domain.
DELETE /domains/{domainid} Remove a sending domain · Postmark Delete a Domain #
Ask an LLM
“How do I remove a domain I no longer send from?”
“Can I delete a domain from my account entirely?”
Tell an agent destructive · confirm first
Delete domain {domainid}.
Remove domain {domainid} from my account permanently.
PUT /domains/{domainid}/verifydkim Verify a domain's DKIM record · Postmark Request DNS Verification for DKIM #
Ask an LLM
“I added the DKIM TXT record — how do I get it checked?”
“Can I trigger a DKIM DNS check for my domain on demand?”
Tell an agent
Check the DKIM DNS record for domain {domainid}.
Request DKIM verification on domain {domainid}.
PUT /domains/{domainid}/verifyreturnpath Verify a domain's Return-Path CNAME · Postmark Request DNS Verification for Return-Path #
Ask an LLM
“How do I confirm my Return-Path CNAME is set up correctly?”
“Can I ask for the custom Return-Path DNS to be re-checked?”
Tell an agent
Verify the Return-Path DNS for domain {domainid}.
Run a Return-Path CNAME check on domain {domainid}.
POST /domains/{domainid}/verifyspf Verify a domain's SPF record · Postmark Request DNS Verification for SPF #
Ask an LLM
“How do I get the SPF record on my domain verified?”
“Can I re-run the SPF DNS check after updating my domain's TXT record?”
Tell an agent
Verify SPF for domain {domainid}.
Check whether domain {domainid} has a valid SPF record now.
POST /domains/{domainid}/rotatedkim Rotate a domain's DKIM key · Postmark Rotate DKIM Key #
Ask an LLM
“How do I rotate the DKIM key on my domain?”
“Where do the new DKIM values show up until DNS confirms them?”
Tell an agent
Rotate the DKIM key for domain {domainid}.
Generate a replacement DKIM key on domain {domainid} and show the pending DNS values.

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/postmark:postmark-domains-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

postmark-domains-api-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Postmark Account Domains API
  description: 'Postmark makes sending and receiving email incredibly easy. The Account-level API allows users to

    configure all Servers, Domains, and Sender Signatures associated

    with an Account.'
  version: 0.9.0
servers:
- url: //api.postmarkapp.com/
tags:
- name: Domains API
paths:
  /domains:
    get:
      tags:
      - Domains API
      summary: Postmark List Domains
      operationId: listDomains
      parameters:
      - name: X-Postmark-Account-Token
        in: header
        description: The token associated with the Account on which this request will operate.
        required: true
        schema:
          type: string
      - name: count
        in: query
        description: Number of records to return per request. Max 500.
        required: true
        schema:
          maximum: 500
          minimum: 1
          type: integer
      - name: offset
        in: query
        description: Number of records to skip
        required: true
        schema:
          minimum: 0
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainListingResults'
        '422':
          description: An error was generated due to incorrect use of the API. See the Message associated with this response for more information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardPostmarkResponse'
        '500':
          description: Indicates an internal server error occurred.
          content: {}
    post:
      tags:
      - Domains API
      summary: Postmark Create a Domain
      operationId: createDomain
      parameters:
      - name: X-Postmark-Account-Token
        in: header
        description: The token associated with the Account on which this request will operate.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DomainCreationModel'
        required: false
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainExtendedInformation'
        '422':
          description: An error was generated due to incorrect use of the API. See the Message associated with this response for more information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardPostmarkResponse'
        '500':
          description: Indicates an internal server error occurred.
          content: {}
      x-codegen-request-body-name: body
  /domains/{domainid}:
    get:
      tags:
      - Domains API
      summary: Postmark Get a Domain
      operationId: getDomain
      parameters:
      - name: X-Postmark-Account-Token
        in: header
        description: The token associated with the Account on which this request will operate.
        required: true
        schema:
          type: string
      - name: domainid
        in: path
        description: The ID for the Domain that should be retrieved.
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainExtendedInformation'
        '422':
          description: An error was generated due to incorrect use of the API. See the Message associated with this response for more information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardPostmarkResponse'
        '500':
          description: Indicates an internal server error occurred.
          content: {}
    put:
      tags:
      - Domains API
      summary: Postmark Update a Domain
      operationId: editDomain
      parameters:
      - name: X-Postmark-Account-Token
        in: header
        description: The token associated with the Account on which this request will operate.
        required: true
        schema:
          type: string
      - name: domainid
        in: path
        description: The ID for the Domain that should be modified by the request.
        required: true
        schema:
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DomainEditingModel'
        required: false
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainExtendedInformation'
        '422':
          description: An error was generated due to incorrect use of the API. See the Message associated with this response for more information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardPostmarkResponse'
        '500':
          description: Indicates an internal server error occurred.
          content: {}
      x-codegen-request-body-name: body
    delete:
      tags:
      - Domains API
      summary: Postmark Delete a Domain
      operationId: deleteDomain
      parameters:
      - name: X-Postmark-Account-Token
        in: header
        description: The token associated with the Account on which this request will operate.
        required: true
        schema:
          type: string
      - name: domainid
        in: path
        description: The ID for the Domain that should be deleted by the request.
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardPostmarkResponse'
        '422':
          description: An error was generated due to incorrect use of the API. See the Message associated with this response for more information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardPostmarkResponse'
        '500':
          description: Indicates an internal server error occurred.
          content: {}
  /domains/{domainid}/verifydkim:
    put:
      tags:
      - Domains API
      summary: Postmark Request DNS Verification for DKIM
      operationId: requestDkimVerificationForDomain
      parameters:
      - name: X-Postmark-Account-Token
        in: header
        description: The token associated with the Account on which this request will operate.
        required: true
        schema:
          type: string
      - name: domainid
        in: path
        description: The ID for the Domain for which DKIM DNS records should be verified.
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainExtendedInformation'
        '422':
          description: An error was generated due to incorrect use of the API. See the Message associated with this response for more information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardPostmarkResponse'
        '500':
          description: Indicates an internal server error occurred.
          content: {}
  /domains/{domainid}/verifyreturnpath:
    put:
      tags:
      - Domains API
      summary: Postmark Request DNS Verification for Return-Path
      operationId: requestReturnPathVerificationForDomain
      parameters:
      - name: X-Postmark-Account-Token
        in: header
        description: The token associated with the Account on which this request will operate.
        required: true
        schema:
          type: string
      - name: domainid
        in: path
        description: The ID for the Domain for which Return-Path DNS records should be verified.
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainExtendedInformation'
        '422':
          description: An error was generated due to incorrect use of the API. See the Message associated with this response for more information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardPostmarkResponse'
        '500':
          description: Indicates an internal server error occurred.
          content: {}
  /domains/{domainid}/verifyspf:
    post:
      tags:
      - Domains API
      summary: Postmark Request DNS Verification for SPF
      operationId: requestSPFVerificationForDomain
      parameters:
      - name: X-Postmark-Account-Token
        in: header
        description: The token associated with the Account on which this request will operate.
        required: true
        schema:
          type: string
      - name: domainid
        in: path
        description: The ID for the Domain for which SPF DNS records should be verified.
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainSPFResult'
        '422':
          description: An error was generated due to incorrect use of the API. See the Message associated with this response for more information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardPostmarkResponse'
        '500':
          description: Indicates an internal server error occurred.
          content: {}
  /domains/{domainid}/rotatedkim:
    post:
      tags:
      - Domains API
      summary: Postmark Rotate DKIM Key
      description: 'Creates a new DKIM key to replace your current key. Until the DNS entries are confirmed,

        the new values will be in the `DKIMPendingHost` and `DKIMPendingTextValue` fields.

        After the new DKIM value is verified in DNS, the pending values will migrate to

        `DKIMTextValue` and `DKIMPendingTextValue` and Postmark will begin to sign emails

        with the new DKIM key.'
      operationId: rotateDKIMKeyForDomain
      parameters:
      - name: X-Postmark-Account-Token
        in: header
        description: The token associated with the Account on which this request will operate.
        required: true
        schema:
          type: string
      - name: domainid
        in: path
        description: The ID for the Sender Signature for which a new DKIM Key should be generated.
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DKIMRotationResponse'
        '422':
          description: An error was generated due to incorrect use of the API. See the Message associated with this response for more information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardPostmarkResponse'
        '500':
          description: Indicates an internal server error occurred.
          content: {}
components:
  schemas:
    StandardPostmarkResponse:
      type: object
      properties:
        ErrorCode:
          type: integer
        Message:
          type: string
      description: A Postmark API error.
    DomainInformation:
      type: object
      properties:
        Name:
          type: string
        SPFVerified:
          type: boolean
        DKIMVerified:
          type: boolean
        WeakDKIM:
          type: boolean
        ReturnPathDomainVerified:
          type: boolean
        ID:
          type: integer
          format: int64
      description: ''
    DomainExtendedInformation:
      type: object
      properties:
        Name:
          type: string
        SPFVerified:
          type: boolean
        SPFHost:
          type: string
        SPFTextValue:
          type: string
        DKIMVerified:
          type: boolean
        WeakDKIM:
          type: boolean
        DKIMHost:
          type: string
        DKIMTestValue:
          type: string
        DKIMPendingHost:
          type: string
        DKIMPendingTextValue:
          type: string
        DKIMRevokedHost:
          type: string
        DKIMRevokedTextValue:
          type: string
        SafeToRemoveRevokedKeyFromDNS:
          type: boolean
        DKIMUpdateStatus:
          type: string
        ReturnPathDomain:
          type: string
        ReturnPathDomainVerified:
          type: boolean
        ReturnPathDomainCNAMEValue:
          type: string
        ID:
          type: integer
          format: int64
      description: ''
    DomainEditingModel:
      type: object
      properties:
        ReturnPathDomain:
          type: string
      description: ''
    DomainSPFResult:
      type: object
      properties:
        SPFHost:
          type: string
        SPFVerified:
          type: boolean
        SPFTextValue:
          type: string
      description: ''
    DomainCreationModel:
      type: object
      properties:
        Name:
          type: string
        ReturnPathDomain:
          type: string
      description: ''
    DomainListingResults:
      type: object
      properties:
        TotalCount:
          type: integer
        Domains:
          type: array
          items:
            $ref: '#/components/schemas/DomainInformation'
      description: ''
    DKIMRotationResponse:
      type: object
      properties:
        Name:
          type: string
        DKIMVerified:
          type: boolean
        WeakDKIM:
          type: boolean
        DKIMHost:
          type: string
        DKIMTestValue:
          type: string
        DKIMPendingHost:
          type: string
        DKIMPendingTextValue:
          type: string
        DKIMRevokedHost:
          type: string
        DKIMRevokedTextValue:
          type: string
        SafeToRemoveRevokedKeyFromDNS:
          type: boolean
        DKIMUpdateStatus:
          type: string
        ID:
          type: integer
          format: int64
      description: ''