naftiko: 1.0.0-alpha2 info: label: Postmark API — Statistics description: 'Postmark API — Statistics. 13 operations. Lead operation: Postmark Get outbound overview. Self-contained Naftiko capability covering one Postmark business surface.' tags: - Postmark - Statistics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: POSTMARK_API_KEY: POSTMARK_API_KEY capability: consumes: - type: http namespace: postmark-statistics baseUri: http://{{baseurl}} description: Postmark API — Statistics business capability. Self-contained, no shared references. resources: - name: stats-outbound path: /stats/outbound operations: - name: get method: GET description: Postmark Get outbound overview outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: tag in: query type: string description: Filter by tag - name: fromdate in: query type: string description: Filter messages starting from the date specified. e.g. `2014-02-01` - name: todate in: query type: string description: Filter messages up to the date specified. e.g. `2014-02-01` - name: stats-outbound-bounces path: /stats/outbound/bounces operations: - name: get method: GET description: Postmark Get bounce counts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: tag in: query type: string description: Filter by tag - name: fromdate in: query type: string description: Filter messages starting from the date specified. e.g. `2014-02-01` - name: todate in: query type: string description: Filter messages up to the date specified. e.g. `2014-02-01` - name: stats-outbound-clicks path: /stats/outbound/clicks operations: - name: get method: GET description: Postmark Get click counts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: tag in: query type: string description: Filter by tag - name: fromdate in: query type: string description: Filter messages starting from the date specified. e.g. `2014-02-01` - name: todate in: query type: string description: Filter messages up to the date specified. e.g. `2014-02-01` - name: stats-outbound-clicks-browserfamilies path: /stats/outbound/clicks/browserfamilies operations: - name: get method: GET description: Postmark Get browser usage by family outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: tag in: query type: string description: Filter by tag - name: fromdate in: query type: string description: Filter messages starting from the date specified. e.g. `2014-02-01` - name: todate in: query type: string description: Filter messages up to the date specified. e.g. `2014-02-01` - name: stats-outbound-clicks-location path: /stats/outbound/clicks/location operations: - name: get method: GET description: Postmark Get clicks by body location outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: tag in: query type: string description: Filter by tag - name: fromdate in: query type: string description: Filter messages starting from the date specified. e.g. `2014-02-01` - name: todate in: query type: string description: Filter messages up to the date specified. e.g. `2014-02-01` - name: stats-outbound-clicks-platforms path: /stats/outbound/clicks/platforms operations: - name: get method: GET description: Postmark Get browser plaform usage outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: tag in: query type: string description: Filter by tag - name: fromdate in: query type: string description: Filter messages starting from the date specified. e.g. `2014-02-01` - name: todate in: query type: string description: Filter messages up to the date specified. e.g. `2014-02-01` - name: stats-outbound-opens path: /stats/outbound/opens operations: - name: get method: GET description: Postmark Get email open counts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: tag in: query type: string description: Filter by tag - name: fromdate in: query type: string description: Filter messages starting from the date specified. e.g. `2014-02-01` - name: todate in: query type: string description: Filter messages up to the date specified. e.g. `2014-02-01` - name: stats-outbound-opens-emailclients path: /stats/outbound/opens/emailclients operations: - name: get method: GET description: Postmark Get email client usage outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: tag in: query type: string description: Filter by tag - name: fromdate in: query type: string description: Filter messages starting from the date specified. e.g. `2014-02-01` - name: todate in: query type: string description: Filter messages up to the date specified. e.g. `2014-02-01` - name: stats-outbound-opens-platforms path: /stats/outbound/opens/platforms operations: - name: get method: GET description: Postmark Get email platform usage outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: tag in: query type: string description: Filter by tag - name: fromdate in: query type: string description: Filter messages starting from the date specified. e.g. `2014-02-01` - name: todate in: query type: string description: Filter messages up to the date specified. e.g. `2014-02-01` - name: stats-outbound-opens-readtimes path: /stats/outbound/opens/readtimes operations: - name: get method: GET description: Postmark Get email read times outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: tag in: query type: string description: Filter by tag - name: fromdate in: query type: string description: Filter messages starting from the date specified. e.g. `2014-02-01` - name: todate in: query type: string description: Filter messages up to the date specified. e.g. `2014-02-01` - name: stats-outbound-sends path: /stats/outbound/sends operations: - name: get method: GET description: Postmark Get sent counts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: tag in: query type: string description: Filter by tag - name: fromdate in: query type: string description: Filter messages starting from the date specified. e.g. `2014-02-01` - name: todate in: query type: string description: Filter messages up to the date specified. e.g. `2014-02-01` - name: stats-outbound-spam path: /stats/outbound/spam operations: - name: get method: GET description: Postmark Get spam complaints outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: tag in: query type: string description: Filter by tag - name: fromdate in: query type: string description: Filter messages starting from the date specified. e.g. `2014-02-01` - name: todate in: query type: string description: Filter messages up to the date specified. e.g. `2014-02-01` - name: stats-outbound-tracked path: /stats/outbound/tracked operations: - name: get method: GET description: Postmark Get tracked email counts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: tag in: query type: string description: Filter by tag - name: fromdate in: query type: string description: Filter messages starting from the date specified. e.g. `2014-02-01` - name: todate in: query type: string description: Filter messages up to the date specified. e.g. `2014-02-01` exposes: - type: rest namespace: postmark-statistics-rest port: 8080 description: REST adapter for Postmark API — Statistics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/stats/outbound name: stats-outbound description: REST surface for stats-outbound. operations: - method: GET name: get description: Postmark Get outbound overview call: postmark-statistics.get with: tag: rest.tag fromdate: rest.fromdate todate: rest.todate outputParameters: - type: object mapping: $. - path: /v1/stats/outbound/bounces name: stats-outbound-bounces description: REST surface for stats-outbound-bounces. operations: - method: GET name: get description: Postmark Get bounce counts call: postmark-statistics.get with: tag: rest.tag fromdate: rest.fromdate todate: rest.todate outputParameters: - type: object mapping: $. - path: /v1/stats/outbound/clicks name: stats-outbound-clicks description: REST surface for stats-outbound-clicks. operations: - method: GET name: get description: Postmark Get click counts call: postmark-statistics.get with: tag: rest.tag fromdate: rest.fromdate todate: rest.todate outputParameters: - type: object mapping: $. - path: /v1/stats/outbound/clicks/browserfamilies name: stats-outbound-clicks-browserfamilies description: REST surface for stats-outbound-clicks-browserfamilies. operations: - method: GET name: get description: Postmark Get browser usage by family call: postmark-statistics.get with: tag: rest.tag fromdate: rest.fromdate todate: rest.todate outputParameters: - type: object mapping: $. - path: /v1/stats/outbound/clicks/location name: stats-outbound-clicks-location description: REST surface for stats-outbound-clicks-location. operations: - method: GET name: get description: Postmark Get clicks by body location call: postmark-statistics.get with: tag: rest.tag fromdate: rest.fromdate todate: rest.todate outputParameters: - type: object mapping: $. - path: /v1/stats/outbound/clicks/platforms name: stats-outbound-clicks-platforms description: REST surface for stats-outbound-clicks-platforms. operations: - method: GET name: get description: Postmark Get browser plaform usage call: postmark-statistics.get with: tag: rest.tag fromdate: rest.fromdate todate: rest.todate outputParameters: - type: object mapping: $. - path: /v1/stats/outbound/opens name: stats-outbound-opens description: REST surface for stats-outbound-opens. operations: - method: GET name: get description: Postmark Get email open counts call: postmark-statistics.get with: tag: rest.tag fromdate: rest.fromdate todate: rest.todate outputParameters: - type: object mapping: $. - path: /v1/stats/outbound/opens/emailclients name: stats-outbound-opens-emailclients description: REST surface for stats-outbound-opens-emailclients. operations: - method: GET name: get description: Postmark Get email client usage call: postmark-statistics.get with: tag: rest.tag fromdate: rest.fromdate todate: rest.todate outputParameters: - type: object mapping: $. - path: /v1/stats/outbound/opens/platforms name: stats-outbound-opens-platforms description: REST surface for stats-outbound-opens-platforms. operations: - method: GET name: get description: Postmark Get email platform usage call: postmark-statistics.get with: tag: rest.tag fromdate: rest.fromdate todate: rest.todate outputParameters: - type: object mapping: $. - path: /v1/stats/outbound/opens/readtimes name: stats-outbound-opens-readtimes description: REST surface for stats-outbound-opens-readtimes. operations: - method: GET name: get description: Postmark Get email read times call: postmark-statistics.get with: tag: rest.tag fromdate: rest.fromdate todate: rest.todate outputParameters: - type: object mapping: $. - path: /v1/stats/outbound/sends name: stats-outbound-sends description: REST surface for stats-outbound-sends. operations: - method: GET name: get description: Postmark Get sent counts call: postmark-statistics.get with: tag: rest.tag fromdate: rest.fromdate todate: rest.todate outputParameters: - type: object mapping: $. - path: /v1/stats/outbound/spam name: stats-outbound-spam description: REST surface for stats-outbound-spam. operations: - method: GET name: get description: Postmark Get spam complaints call: postmark-statistics.get with: tag: rest.tag fromdate: rest.fromdate todate: rest.todate outputParameters: - type: object mapping: $. - path: /v1/stats/outbound/tracked name: stats-outbound-tracked description: REST surface for stats-outbound-tracked. operations: - method: GET name: get description: Postmark Get tracked email counts call: postmark-statistics.get with: tag: rest.tag fromdate: rest.fromdate todate: rest.todate outputParameters: - type: object mapping: $. - type: mcp namespace: postmark-statistics-mcp port: 9090 transport: http description: MCP adapter for Postmark API — Statistics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: postmark-get-outbound-overview description: Postmark Get outbound overview hints: readOnly: true destructive: false idempotent: true call: postmark-statistics.get with: tag: tools.tag fromdate: tools.fromdate todate: tools.todate outputParameters: - type: object mapping: $. - name: postmark-get-bounce-counts description: Postmark Get bounce counts hints: readOnly: true destructive: false idempotent: true call: postmark-statistics.get with: tag: tools.tag fromdate: tools.fromdate todate: tools.todate outputParameters: - type: object mapping: $. - name: postmark-get-click-counts description: Postmark Get click counts hints: readOnly: true destructive: false idempotent: true call: postmark-statistics.get with: tag: tools.tag fromdate: tools.fromdate todate: tools.todate outputParameters: - type: object mapping: $. - name: postmark-get-browser-usage-family description: Postmark Get browser usage by family hints: readOnly: true destructive: false idempotent: true call: postmark-statistics.get with: tag: tools.tag fromdate: tools.fromdate todate: tools.todate outputParameters: - type: object mapping: $. - name: postmark-get-clicks-body-location description: Postmark Get clicks by body location hints: readOnly: true destructive: false idempotent: true call: postmark-statistics.get with: tag: tools.tag fromdate: tools.fromdate todate: tools.todate outputParameters: - type: object mapping: $. - name: postmark-get-browser-plaform-usage description: Postmark Get browser plaform usage hints: readOnly: true destructive: false idempotent: true call: postmark-statistics.get with: tag: tools.tag fromdate: tools.fromdate todate: tools.todate outputParameters: - type: object mapping: $. - name: postmark-get-email-open-counts description: Postmark Get email open counts hints: readOnly: true destructive: false idempotent: true call: postmark-statistics.get with: tag: tools.tag fromdate: tools.fromdate todate: tools.todate outputParameters: - type: object mapping: $. - name: postmark-get-email-client-usage description: Postmark Get email client usage hints: readOnly: true destructive: false idempotent: true call: postmark-statistics.get with: tag: tools.tag fromdate: tools.fromdate todate: tools.todate outputParameters: - type: object mapping: $. - name: postmark-get-email-platform-usage description: Postmark Get email platform usage hints: readOnly: true destructive: false idempotent: true call: postmark-statistics.get with: tag: tools.tag fromdate: tools.fromdate todate: tools.todate outputParameters: - type: object mapping: $. - name: postmark-get-email-read-times description: Postmark Get email read times hints: readOnly: true destructive: false idempotent: true call: postmark-statistics.get with: tag: tools.tag fromdate: tools.fromdate todate: tools.todate outputParameters: - type: object mapping: $. - name: postmark-get-sent-counts description: Postmark Get sent counts hints: readOnly: true destructive: false idempotent: true call: postmark-statistics.get with: tag: tools.tag fromdate: tools.fromdate todate: tools.todate outputParameters: - type: object mapping: $. - name: postmark-get-spam-complaints description: Postmark Get spam complaints hints: readOnly: true destructive: false idempotent: true call: postmark-statistics.get with: tag: tools.tag fromdate: tools.fromdate todate: tools.todate outputParameters: - type: object mapping: $. - name: postmark-get-tracked-email-counts description: Postmark Get tracked email counts hints: readOnly: true destructive: false idempotent: true call: postmark-statistics.get with: tag: tools.tag fromdate: tools.fromdate todate: tools.todate outputParameters: - type: object mapping: $.