Postmark · Capability

Postmark Server API — Sending API

Postmark Server API — Sending API. 4 operations. Lead operation: Postmark Send a single email. Self-contained Naftiko capability covering one Postmark business surface.

Run with Naftiko PostmarkSending API

What You Can Do

POST
Sendemail — Postmark Send a single email
/v1/email
POST
Sendemailbatch — Postmark Send a batch of emails
/v1/email/batch
POST
Sendemailbatchwithtemplates — Postmark Send a batch of email using templates.
/v1/email/batchwithtemplates
POST
Sendemailwithtemplate — Postmark Send an email using a Template
/v1/email/withtemplate

MCP Tools

postmark-send-single-email

Postmark Send a single email

postmark-send-batch-emails

Postmark Send a batch of emails

postmark-send-batch-email-using

Postmark Send a batch of email using templates.

postmark-send-email-using-template

Postmark Send an email using a Template

Capability Spec

server-sending-api.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Postmark Server API — Sending API
  description: 'Postmark Server API — Sending API. 4 operations. Lead operation: Postmark Send a single email. Self-contained
    Naftiko capability covering one Postmark business surface.'
  tags:
  - Postmark
  - Sending API
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POSTMARK_API_KEY: POSTMARK_API_KEY
capability:
  consumes:
  - type: http
    namespace: server-sending-api
    baseUri: https://api.postmarkapp.com
    description: Postmark Server API — Sending API business capability. Self-contained, no shared references.
    resources:
    - name: email
      path: /email
      operations:
      - name: sendemail
        method: POST
        description: Postmark Send a single email
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: X-Postmark-Server-Token
          in: header
          type: string
          description: The token associated with the Server on which this request will operate.
          required: true
        - name: body
          in: body
          type: string
    - name: email-batch
      path: /email/batch
      operations:
      - name: sendemailbatch
        method: POST
        description: Postmark Send a batch of emails
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: X-Postmark-Server-Token
          in: header
          type: string
          description: The token associated with the Server on which this request will operate.
          required: true
        - name: body
          in: body
          type: string
    - name: email-batchWithTemplates
      path: /email/batchWithTemplates
      operations:
      - name: sendemailbatchwithtemplates
        method: POST
        description: Postmark Send a batch of email using templates.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: X-Postmark-Server-Token
          in: header
          type: string
          description: The token associated with the Server on which this request will operate.
          required: true
        - name: body
          in: body
          type: string
          required: true
    - name: email-withTemplate
      path: /email/withTemplate
      operations:
      - name: sendemailwithtemplate
        method: POST
        description: Postmark Send an email using a Template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: X-Postmark-Server-Token
          in: header
          type: string
          description: The token associated with the Server on which this request will operate.
          required: true
        - name: body
          in: body
          type: string
          required: true
  exposes:
  - type: rest
    namespace: server-sending-api-rest
    port: 8080
    description: REST adapter for Postmark Server API — Sending API. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/email
      name: email
      description: REST surface for email.
      operations:
      - method: POST
        name: sendemail
        description: Postmark Send a single email
        call: server-sending-api.sendemail
        with:
          X-Postmark-Server-Token: rest.X-Postmark-Server-Token
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/email/batch
      name: email-batch
      description: REST surface for email-batch.
      operations:
      - method: POST
        name: sendemailbatch
        description: Postmark Send a batch of emails
        call: server-sending-api.sendemailbatch
        with:
          X-Postmark-Server-Token: rest.X-Postmark-Server-Token
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/email/batchwithtemplates
      name: email-batchwithtemplates
      description: REST surface for email-batchWithTemplates.
      operations:
      - method: POST
        name: sendemailbatchwithtemplates
        description: Postmark Send a batch of email using templates.
        call: server-sending-api.sendemailbatchwithtemplates
        with:
          X-Postmark-Server-Token: rest.X-Postmark-Server-Token
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/email/withtemplate
      name: email-withtemplate
      description: REST surface for email-withTemplate.
      operations:
      - method: POST
        name: sendemailwithtemplate
        description: Postmark Send an email using a Template
        call: server-sending-api.sendemailwithtemplate
        with:
          X-Postmark-Server-Token: rest.X-Postmark-Server-Token
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: server-sending-api-mcp
    port: 9090
    transport: http
    description: MCP adapter for Postmark Server API — Sending API. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: postmark-send-single-email
      description: Postmark Send a single email
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: server-sending-api.sendemail
      with:
        X-Postmark-Server-Token: tools.X-Postmark-Server-Token
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: postmark-send-batch-emails
      description: Postmark Send a batch of emails
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: server-sending-api.sendemailbatch
      with:
        X-Postmark-Server-Token: tools.X-Postmark-Server-Token
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: postmark-send-batch-email-using
      description: Postmark Send a batch of email using templates.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: server-sending-api.sendemailbatchwithtemplates
      with:
        X-Postmark-Server-Token: tools.X-Postmark-Server-Token
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: postmark-send-email-using-template
      description: Postmark Send an email using a Template
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: server-sending-api.sendemailwithtemplate
      with:
        X-Postmark-Server-Token: tools.X-Postmark-Server-Token
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.