PixieBrix Campaigns API

The campaigns API from PixieBrix — 4 operation(s) for campaigns.

Operations 4

GET /api/campaigns/{campaign_pk}/jobs/{id}/ #
GET /api/campaigns/{campaign_pk}/databases/ #
POST /api/campaigns/{campaign_pk}/jobs/ #
POST /api/campaigns/{campaign_pk}/emails/jobs/ #

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/pixiebrix-campaigns-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 email required.

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

OpenAPI Specification

pixiebrix-campaigns-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PixieBrix Campaigns API
  version: 1.0.0
  description: PixieBrix admin and package registry API
  contact:
    name: PixieBrix Support
    email: support@pixiebrix.com
servers:
- url: https://app.pixiebrix.com
tags:
- name: campaigns
paths:
  /api/campaigns/{campaign_pk}/jobs/{id}/:
    get:
      operationId: retrieveCampaignEngagementJob
      description: Return the status and result of a campaign engagement report job by its id.
      parameters:
      - name: campaign_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: id
        in: path
        required: true
        description: ''
        schema:
          type: string
      responses:
        '200':
          content:
            application/json; version=1.0:
              schema:
                $ref: '#/components/schemas/Job'
            application/vnd.pixiebrix.api+json; version=1.0:
              schema:
                $ref: '#/components/schemas/Job'
          description: ''
      tags:
      - campaigns
  /api/campaigns/{campaign_pk}/databases/:
    get:
      operationId: listCampaignDatabases
      description: Return the databases accessible to the members of a campaign, along with the campaign group permissions on each.
      parameters:
      - name: campaign_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: page
        required: false
        in: query
        description: A page number within the paginated result set.
        schema:
          type: integer
      - name: page_size
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json; version=2.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CampaignDatabase'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CampaignDatabase'
          description: ''
          headers:
            Link:
              schema:
                type: string
              example: '<https://app.pixiebrix.com/campaigns/{campaign_pk}/databases/>; rel="first", <https://app.pixiebrix.com/campaigns/{campaign_pk}/databases/?page=3>; rel="prev", <https://app.pixiebrix.com/campaigns/{campaign_pk}/databases/?page=5>; rel="next", <https://app.pixiebrix.com/campaigns/{campaign_pk}/databases/?page=11>; rel="last"'
              description: See https://datatracker.ietf.org/doc/html/rfc8288 for more information.
      tags:
      - campaigns
  /api/campaigns/{campaign_pk}/jobs/:
    post:
      operationId: createCampaignEngagementJob
      description: Start a new campaign engagement report job, or redirect to the existing job if one is already in progress for the campaign.
      parameters:
      - name: campaign_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Job'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Job'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Job'
      responses:
        '201':
          content:
            application/json; version=1.0:
              schema:
                $ref: '#/components/schemas/Job'
            application/vnd.pixiebrix.api+json; version=1.0:
              schema:
                $ref: '#/components/schemas/Job'
          description: ''
      tags:
      - campaigns
  /api/campaigns/{campaign_pk}/emails/jobs/:
    post:
      operationId: createCampaignEmailJob
      description: Queue a batch email job for a campaign, sending either registration invitations or activation reminders to its members based on the requested type.
      parameters:
      - name: campaign_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema: {}
          application/x-www-form-urlencoded:
            schema: {}
          multipart/form-data:
            schema: {}
      responses:
        '201':
          content:
            application/json; version=1.0:
              schema: {}
            application/vnd.pixiebrix.api+json; version=1.0:
              schema: {}
          description: ''
      tags:
      - campaigns
components:
  schemas:
    Job:
      type: object
      properties:
        id:
          type: string
        status:
          enum:
          - UNKNOWN
          - PENDING
          - STARTED
          - SUCCESS
          - FAILURE
          type: string
      required:
      - id
    CampaignDatabase:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          maxLength: 256
        organization_id:
          type: string
        created_at:
          type: string
          format: date-time
          readOnly: true
        enforce_schema:
          type: boolean
          description: Enforce the JSON Schema for database records
        owner_field:
          type:
          - string
          - 'null'
          description: Field indicating the record owner
          maxLength: 256
        user:
          type: string
          writeOnly: true
        type:
          enum:
          - Key-Value
          - Asset
          type: string
          default: Key-Value
        last_write_at:
          type: string
          format: date-time
          readOnly: true
        num_records:
          type: integer
          readOnly: true
        groups:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
              name:
                type: string
                maxLength: 256
            required:
            - id
            - name
          readOnly: true
      required:
      - name