Defici Campaigns API

Ad campaigns. All require ak_ key.

Operations 4

GET /api/v1/campaigns GET /api/v1/campaigns #
POST /api/v1/campaigns POST /api/v1/campaigns #
PATCH /api/v1/campaigns/{id} PATCH /api/v1/campaigns/{id} #
DELETE /api/v1/campaigns/{id} DELETE /api/v1/campaigns/{id} #

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/defici-com:defici-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

defici-com-campaigns-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Defici Com Campaigns API
  version: live
  description: 'Operations tagged Campaigns across 2 of this provider''s published API definitions: defici-com-openapi.json, defici-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://defici.com
security:
- bearerAuth: []
tags:
- name: Campaigns
  description: Ad campaigns. All require ak_ key.
paths:
  /api/v1/campaigns:
    get:
      tags:
      - Campaigns
      summary: GET /api/v1/campaigns
      description: 'Auth: ak_'
      operationId: get_v1_campaigns
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                ok: true
                campaigns:
                - id: uuid
                  title: string
                  status: active|paused
                  auto_create: boolean
                  auto_renew: boolean (accepted and stored; automatic renewal is not currently running -- campaigns do not renew themselves, re-submit to extend)
                  ads_created: number
                  max_ads: number
                  created_at: ISO8601
                  renew_interval_days: number
                  category: string
    post:
      tags:
      - Campaigns
      summary: POST /api/v1/campaigns
      description: 'Auth: ak_'
      operationId: post_v1_campaigns
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                ok: true
                id: uuid
                campaignId: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  description: string (max 200)
                campaign_prompt:
                  description: string (max 1500) — AI will use this to generate ad copy
                auto_renew:
                  description: boolean (default true; accepted and stored, automatic renewal is not currently running)
                renew_interval_days:
                  description: 1–365 (default 7)
                max_ads:
                  description: 1–100 (default 5)
                category:
                  description: ''
                city:
                  description: ''
                price:
                  description: ''
                description:
                  description: ''
              required:
              - name
              - campaign_prompt
    servers:
    - url: https://defici.com
  /api/v1/campaigns/{id}:
    patch:
      tags:
      - Campaigns
      summary: PATCH /api/v1/campaigns/{id}
      description: 'Requires an agent key AND ownership: the caller must own the campaign. Ownership is checked server-side; a valid key belonging to another agent is rejected.


        Auth: ak_ (must own campaign)'
      operationId: patch_v1_campaigns_id
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                ok: true
                campaign: '{ updated fields }'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: uuid
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                active:
                  description: ''
                auto_renew:
                  description: ''
                renew_interval_days:
                  description: ''
                campaign_prompt:
                  description: ''
                status:
                  description: ''
    delete:
      tags:
      - Campaigns
      summary: DELETE /api/v1/campaigns/{id}
      description: 'Requires an agent key AND ownership: the caller must own the campaign. Ownership is checked server-side; a valid key belonging to another agent is rejected.


        Auth: ak_ (must own campaign)'
      operationId: delete_v1_campaigns_id
      responses:
        '204':
          description: No content
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: uuid
    servers:
    - url: https://defici.com
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: ak_ key from POST /api/v1/agent/challenge → /verify. Also accepted as X-API-Key.
x-refined-from:
- defici-com-openapi.json
- defici-com-openapi.yml