Wenmar Pro Campaigns API

The Campaigns API from Wenmar Pro — 5 operation(s) for campaigns.

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 7

GET /campaigns Campaigns list #
POST /campaigns Campaigns create #
GET /campaigns/{id} Campaigns show #
PATCH /campaigns/{id} Campaigns update #
POST /campaigns/{id}/cancel Campaigns cancel #
GET /campaigns/{id}/preview Campaigns preview #
POST /campaigns/{id}/send Campaigns send #

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/wenmarpro-com:wenmarpro-com-campaigns-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

wenmarpro-com-campaigns-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: ''
  license:
    name: ''
  title: Wenmar Campaigns API
  version: 0.1.0
tags:
- name: Campaigns
paths:
  /campaigns:
    get:
      operationId: campaigns_list
      parameters:
      - in: query
        name: status
        required: false
        schema:
          type:
          - string
          - 'null'
      - in: query
        name: limit
        required: false
        schema:
          format: int64
          type:
          - integer
          - 'null'
      - in: query
        name: offset
        required: false
        schema:
          format: int64
          type:
          - integer
          - 'null'
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: 'campaigns newest first: `{data, total, next_offset}`'
        '403':
          description: needs customers.read
      security:
      - bearer: []
      tags:
      - Campaigns
      summary: Campaigns list
      x-summary-source: derived
    post:
      operationId: campaigns_create
      parameters:
      - description: replays the first draft
        in: header
        name: Idempotency-Key
        required: false
        schema:
          type:
          - string
          - 'null'
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                audience:
                  description: '{"source": "due_for", "kind": "service", "within_days": 30} or

                    {"source": "customers", "customer_ids": [1, 2]}'
                body:
                  description: 'The message. {first_name}, {name}, {vehicle}, {due_on}, {code}, {shop} are filled per

                    customer.'
                  type: string
                channel:
                  description: sms or email
                  type: string
                kind:
                  default: null
                  description: reminder or broadcast (default broadcast)
                  type:
                  - string
                  - 'null'
                location_id:
                  default: null
                  description: The location whose name is {shop}
                  format: int64
                  type:
                  - integer
                  - 'null'
                name:
                  description: A name for the shop's own list ("Fall oil change")
                  type: string
                subject:
                  default: null
                  description: E-mail subject (e-mail only)
                  type:
                  - string
                  - 'null'
              required:
              - name
              - channel
              - body
              - audience
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the draft campaign
        '403':
          description: needs campaigns.send and messages.send
        '422':
          description: validation_failed or idempotency_key_reused
      security:
      - bearer: []
      tags:
      - Campaigns
      summary: Campaigns create
      x-summary-source: derived
  /campaigns/{id}:
    get:
      operationId: campaigns_show
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the campaign, and its recipients once sent
        '404':
          description: no such campaign
      security:
      - bearer: []
      tags:
      - Campaigns
      summary: Campaigns show
      x-summary-source: derived
    patch:
      operationId: campaigns_update
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                audience:
                  default: null
                  description: The audience document
                body:
                  default: null
                  description: The message, with {first_name}, {name}, {vehicle}, {due_on}, {code}, {shop}
                  type:
                  - string
                  - 'null'
                channel:
                  default: null
                  description: sms or email
                  type:
                  - string
                  - 'null'
                kind:
                  default: null
                  description: reminder or broadcast
                  type:
                  - string
                  - 'null'
                location_id:
                  default: null
                  description: The location whose name is {shop}
                  format: int64
                  type:
                  - integer
                  - 'null'
                name:
                  default: null
                  description: A new name
                  type:
                  - string
                  - 'null'
                subject:
                  default: null
                  description: E-mail subject (e-mail only)
                  type:
                  - string
                  - 'null'
              required: []
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the changed draft
        '409':
          description: 'conflict: it is no longer a draft'
        '422':
          description: validation_failed
      security:
      - bearer: []
      tags:
      - Campaigns
      summary: Campaigns update
      x-summary-source: derived
  /campaigns/{id}/cancel:
    post:
      operationId: campaigns_cancel
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the cancelled campaign
        '409':
          description: 'conflict: it is no longer a draft'
      security:
      - bearer: []
      tags:
      - Campaigns
      summary: Campaigns cancel
      x-summary-source: derived
  /campaigns/{id}/preview:
    get:
      operationId: campaigns_preview
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: who would receive it, who is skipped and why, and samples
        '404':
          description: no such campaign
      security:
      - bearer: []
      tags:
      - Campaigns
      summary: Campaigns preview
      x-summary-source: derived
  /campaigns/{id}/send:
    post:
      operationId: campaigns_send
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the sent campaign
        '409':
          description: 'conflict: it is cancelled'
      security:
      - bearer: []
      tags:
      - Campaigns
      summary: Campaigns send
      x-summary-source: derived
components:
  securitySchemes:
    bearer:
      scheme: bearer
      type: http