Covatic Campaigns API

The Campaigns API from Covatic — 16 operation(s) for campaigns.

Operations 20

GET /api/v1/campaigns/ Get Campaigns #
POST /api/v1/campaigns/ Create New Campaign #
GET /api/v1/campaigns/created-by Get Campaign Created By #
GET /api/v1/campaigns/tracking-url Get Tracking Url #
GET /api/v1/campaigns/{campaignId}/insights/summary Get Campaign Insights Summary #
GET /api/v1/campaigns/{campaignId}/insights/timeseries Get Campaign Insights Timeseries #
GET /api/v1/campaigns/{campaignId}/insights/targeting-changes Get Campaign Insights Targeting Changes #
GET /api/v1/campaigns/{campaignId}/insights/attribution Get Campaign Attribution Insights #
POST /api/v1/campaigns/{campaignId}/suggestions/{suggestionId}/dismiss Dismiss Suggestion #
POST /api/v1/campaigns/{campaignId}/suggestions/{suggestionId}/accept Accept Suggestion #
GET /api/v1/campaigns/{campaignId}/history Get Campaign History #
GET /api/v1/campaigns/{campaignId}/suggestions Get Campaign Suggestions #
POST /api/v1/campaigns/{campaignId}/suggestions Add Campaign Suggestions #
PATCH /api/v1/campaigns/{campaignId}/audiences/performance Update Audience Performance #
POST /api/v1/campaigns/{campaignId}/audiences Bulk Add Audiences #
DELETE /api/v1/campaigns/{campaignId}/audiences/{audienceCode} Remove Audience #
GET /api/v1/campaigns/{campaignId} Get Campaign Detail #
PATCH /api/v1/campaigns/{campaignId} Update Existing Campaign #
DELETE /api/v1/campaigns/{campaignId} Delete Existing Campaign #
PATCH /api/v1/campaigns/{campaignId}/status Update Campaign Status Endpoint #

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/covatic-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 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

covatic-campaigns-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Audience builder Campaigns API
  summary: Audience builder is an app for clients to create their campaigns.
  version: 0.0.1
servers:
- url: https://prodaudiencebuilderapi.covatic.io
  description: Production (Covatic Audience Builder)
tags:
- name: Campaigns
paths:
  /api/v1/campaigns/:
    get:
      tags:
      - Campaigns
      summary: Get Campaigns
      description: 'Retrieve a paginated list of campaigns with optional filtering and sorting.


        Supports:

        - Pagination (page, size)

        - Status filtering

        - Search by name, orderId, and audienceCode

        - Filter by tags, platforms, type, creator

        - Date range filtering (by creation date)

        - Multiple sort options'
      operationId: get_campaigns_api_v1_campaigns__get
      security:
      - HTTPBearer: []
      parameters:
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Page number (1-indexed)
          default: 1
          title: Page
        description: Page number (1-indexed)
      - name: size
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Items per page (max 100)
          default: 20
          title: Size
        description: Items per page (max 100)
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by status
          title: Status
        description: Filter by status
      - name: sort
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: 'Sort option: latest, oldest, name-ascending, name-descending'
          title: Sort
        description: 'Sort option: latest, oldest, name-ascending, name-descending'
      - name: search
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Search in name, orderId, and audienceCode
          title: Search
        description: Search in name, orderId, and audienceCode
      - name: tag
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: Filter by tags
          title: Tag
        description: Filter by tags
      - name: platform
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: Filter by platforms
          title: Platform
        description: Filter by platforms
      - name: type
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: Filter by campaign type
          title: Type
        description: Filter by campaign type
      - name: createdBy
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: Filter by creator
          title: Createdby
        description: Filter by creator
      - name: startDate
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by start date
          title: Startdate
        description: Filter by start date
      - name: endDate
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by end date
          title: Enddate
        description: Filter by end date
      - name: parent_type
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Type
        examples:
          Octave:
            value: company
          Bauer UK:
            value: sub-company
          News UK:
            value: sub-company
      - name: parent_id
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Name
        examples:
          Octave:
            value: Octave
          Bauer UK:
            value: Bauer UK
          News UK:
            value: News UK
      responses:
        '200':
          description: Get paginated list of campaigns
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Campaigns
      summary: Create New Campaign
      description: "Create a new campaign.\n\nArgs:\n    campaign_data: Campaign creation request body\n\nReturns:\n    Created campaign with generated unique audienceCode and optional orderId\n\nRaises:\n    400: Invalid request body or validation errors\n    409: Campaign with same name already exists"
      operationId: create_new_campaign_api_v1_campaigns__post
      security:
      - HTTPBearer: []
      parameters:
      - name: parent_type
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Type
        examples:
          Octave:
            value: company
          Bauer UK:
            value: sub-company
          News UK:
            value: sub-company
      - name: parent_id
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Name
        examples:
          Octave:
            value: Octave
          Bauer UK:
            value: Bauer UK
          News UK:
            value: News UK
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CampaignCreateRequest'
      responses:
        '201':
          description: Create a new campaign
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models__profile__Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/campaigns/created-by:
    get:
      tags:
      - Campaigns
      summary: Get Campaign Created By
      description: "Retrieve unique list of createdBy values from campaigns.\n\nQuery Parameters:\n- parent_id: Filter by company/sub-company ID (from CompanyInfoQueryParams)\n- page: Page number for pagination\n- size: Items per page\n\nReturns:\n    Paginated list of unique createdBy values"
      operationId: get_campaign_created_by_api_v1_campaigns_created_by_get
      security:
      - HTTPBearer: []
      parameters:
      - name: parent_type
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Type
        examples:
          Octave:
            value: company
          Bauer UK:
            value: sub-company
          News UK:
            value: sub-company
      - name: parent_id
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Name
        examples:
          Octave:
            value: Octave
          Bauer UK:
            value: Bauer UK
          News UK:
            value: News UK
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Page number
          default: 1
          title: Page
        description: Page number
      - name: size
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Page size
          default: 50
          title: Size
        description: Page size
      responses:
        '200':
          description: Get list of campaign creators
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page_str_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/campaigns/tracking-url:
    get:
      tags:
      - Campaigns
      summary: Get Tracking Url
      description: "Get the tracking URL based on the parent_id (company or sub-company).\n\nQuery Parameters:\n    parent_id: Company or sub-company name (from CompanyInfoQueryParams)\n\nReturns:\n    Tracking URL for the specified parent with is_default flag\n\nExample Response (specific mapping):\n    {\n        \"status_code\": 200,\n        \"response_type\": \"success\",\n        \"description\": \"Tracking URL retrieved successfully\",\n        \"data\": {\n            \"tracking_url\": \"https://sca-cvc-prod.covatic.io/mobile/api/v1.0\",\n            \"is_default\": false\n        }\n    }\n\nExample Response (default/fallback):\n    {\n        \"status_code\": 200,\n        \"response_type\": \"success\",\n        \"description\": \"Tracking URL retrieved successfully\",\n        \"data\": {\n            \"tracking_url\": \"https://mobile-cvc-fra-cvc-dev.covatic.io/mobile/api/v1.0\",\n            \"is_default\": true\n        }\n    }"
      operationId: get_tracking_url_api_v1_campaigns_tracking_url_get
      security:
      - HTTPBearer: []
      parameters:
      - name: parent_type
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Type
        examples:
          Octave:
            value: company
          Bauer UK:
            value: sub-company
          News UK:
            value: sub-company
      - name: parent_id
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Name
        examples:
          Octave:
            value: Octave
          Bauer UK:
            value: Bauer UK
          News UK:
            value: News UK
      responses:
        '200':
          description: Get tracking URL for the parent company
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models__profile__Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/campaigns/{campaignId}/insights/summary:
    get:
      tags:
      - Campaigns
      summary: Get Campaign Insights Summary
      operationId: get_campaign_insights_summary_api_v1_campaigns__campaignId__insights_summary_get
      security:
      - HTTPBearer: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          example: 5eb7cf5a86d9755df3a6c593
          title: Campaignid
      - name: parent_type
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Type
        examples:
          Octave:
            value: company
          Bauer UK:
            value: sub-company
          News UK:
            value: sub-company
      - name: parent_id
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Name
        examples:
          Octave:
            value: Octave
          Bauer UK:
            value: Bauer UK
          News UK:
            value: News UK
      responses:
        '200':
          description: Get campaign insights summary statistics
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models__profile__Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/campaigns/{campaignId}/insights/timeseries:
    get:
      tags:
      - Campaigns
      summary: Get Campaign Insights Timeseries
      operationId: get_campaign_insights_timeseries_api_v1_campaigns__campaignId__insights_timeseries_get
      security:
      - HTTPBearer: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          example: 5eb7cf5a86d9755df3a6c593
          title: Campaignid
      - name: parent_type
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Type
        examples:
          Octave:
            value: company
          Bauer UK:
            value: sub-company
          News UK:
            value: sub-company
      - name: parent_id
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Name
        examples:
          Octave:
            value: Octave
          Bauer UK:
            value: Bauer UK
          News UK:
            value: News UK
      responses:
        '200':
          description: Get campaign insights time series data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models__profile__Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/campaigns/{campaignId}/insights/targeting-changes:
    get:
      tags:
      - Campaigns
      summary: Get Campaign Insights Targeting Changes
      operationId: get_campaign_insights_targeting_changes_api_v1_campaigns__campaignId__insights_targeting_changes_get
      security:
      - HTTPBearer: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          example: 5eb7cf5a86d9755df3a6c593
          title: Campaignid
      - name: parent_type
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Type
        examples:
          Octave:
            value: company
          Bauer UK:
            value: sub-company
          News UK:
            value: sub-company
      - name: parent_id
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Name
        examples:
          Octave:
            value: Octave
          Bauer UK:
            value: Bauer UK
          News UK:
            value: News UK
      responses:
        '200':
          description: Get campaign insights targeting changes log
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models__profile__Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/campaigns/{campaignId}/insights/attribution:
    get:
      tags:
      - Campaigns
      summary: Get Campaign Attribution Insights
      description: 'Retrieve the full pre-computed Attribution insights payload for a campaign.


        Returns a single document containing `events`, `totals`, `chart`,

        `performance_summary`, `sec_summary`, and `audience_summary`. Top-N

        ranking, scope filtering, and conversion-rate rollups are all performed

        on the frontend per PRO-138 / DATA-874.


        Returns 404 if the campaign does not exist, no insights document exists,

        or the stored insights document is not of type Attribution.'
      operationId: get_campaign_attribution_insights_api_v1_campaigns__campaignId__insights_attribution_get
      security:
      - HTTPBearer: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          example: 5eb7cf5a86d9755df3a6c593
          title: Campaignid
      - name: parent_type
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Type
        examples:
          Octave:
            value: company
          Bauer UK:
            value: sub-company
          News UK:
            value: sub-company
      - name: parent_id
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Name
        examples:
          Octave:
            value: Octave
          Bauer UK:
            value: Bauer UK
          News UK:
            value: News UK
      responses:
        '200':
          description: Get full Attribution insights document for a campaign
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models__profile__Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/campaigns/{campaignId}/suggestions/{suggestionId}/dismiss:
    post:
      tags:
      - Campaigns
      summary: Dismiss Suggestion
      description: "Dismiss a suggested audience for a smart campaign.\n\n- Moves suggestion to DISMISSED status\n- Creates record in campaign_history collection\n- Removes from suggestions array in campaign\n\nArgs:\n    campaignId: Campaign ID\n    suggestionId: Audience code of the suggestion\n    dismissal_data: Optional reason for dismissal\n\nReturns:\n    Updated campaign without the dismissed suggestion\n\nRaises:\n    400: Not a Smart campaign\n    404: Campaign or suggestion not found"
      operationId: dismiss_suggestion_api_v1_campaigns__campaignId__suggestions__suggestionId__dismiss_post
      security:
      - HTTPBearer: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          example: 5eb7cf5a86d9755df3a6c593
          title: Campaignid
      - name: suggestionId
        in: path
        required: true
        schema:
          type: string
          title: Suggestionid
      - name: parent_type
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Type
        examples:
          Octave:
            value: company
          Bauer UK:
            value: sub-company
          News UK:
            value: sub-company
      - name: parent_id
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Name
        examples:
          Octave:
            value: Octave
          Bauer UK:
            value: Bauer UK
          News UK:
            value: News UK
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SuggestionDismissalRequest'
              default: {}
      responses:
        '200':
          description: Dismiss a suggested audience
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models__profile__Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/campaigns/{campaignId}/suggestions/{suggestionId}/accept:
    post:
      tags:
      - Campaigns
      summary: Accept Suggestion
      description: "Accept a suggested audience and add it to the campaign audiences.\n\n- Moves suggestion to ACCEPTED status\n- Adds audience to audiences array\n- Removes from suggestions array\n- Re-estimates reach, duration, and updates nested_traits from all audiences\n\nArgs:\n    campaignId: Campaign ID\n    suggestionId: Audience code of the suggestion\n\nReturns:\n    Updated campaign with new audience added\n\nRaises:\n    400: Not a Smart campaign\n    404: Campaign or suggestion not found\n    409: Audience code already exists in campaign"
      operationId: accept_suggestion_api_v1_campaigns__campaignId__suggestions__suggestionId__accept_post
      security:
      - HTTPBearer: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          example: 5eb7cf5a86d9755df3a6c593
          title: Campaignid
      - name: suggestionId
        in: path
        required: true
        schema:
          type: string
          title: Suggestionid
      - name: parent_type
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Type
        examples:
          Octave:
            value: company
          Bauer UK:
            value: sub-company
          News UK:
            value: sub-company
      - name: parent_id
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Name
        examples:
          Octave:
            value: Octave
          Bauer UK:
            value: Bauer UK
          News UK:
            value: News UK
      responses:
        '200':
          description: Accept and add suggested audience to campaign
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models__profile__Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/campaigns/{campaignId}/history:
    get:
      tags:
      - Campaigns
      summary: Get Campaign History
      description: "Retrieve change history for a specific campaign.\n\nUseful for:\n- Data team to review what was dismissed (filter by suggestion_dismissed)\n- Users to see full audit trail\n- Analytics on suggestion quality\n- Compliance and reporting\n\nQuery Parameters:\n- change_type: Filter by specific type (suggestion_dismissed, suggestion_accepted,\n               performance_updated, audience_added, audience_removed, etc.)\n- page: Page number (1-indexed)\n- size: Items per page (max 100)\n\nArgs:\n    campaignId: Campaign ID\n    change_type: Optional filter for change type\n    page: Page number\n    size: Items per page\n\nReturns:\n    Paginated list of campaign history records"
      operationId: get_campaign_history_api_v1_campaigns__campaignId__history_get
      security:
      - HTTPBearer: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          example: 5eb7cf5a86d9755df3a6c593
          title: Campaignid
      - name: change_type
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by change type
          title: Change Type
        description: Filter by change type
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Page number (1-indexed)
          default: 1
          title: Page
        description: Page number (1-indexed)
      - name: size
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Items per page (max 100)
          default: 20
          title: Size
        description: Items per page (max 100)
      - name: parent_type
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Type
        examples:
          Octave:
            value: company
          Bauer UK:
            value: sub-company
          News UK:
            value: sub-company
      - name: parent_id
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Name
        examples:
          Octave:
            value: Octave
          Bauer UK:
            value: Bauer UK
          News UK:
            value: News UK
      responses:
        '200':
          description: Get change history for a campaign
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/campaigns/{campaignId}/suggestions:
    get:
      tags:
      - Campaigns
      summary: Get Campaign Suggestions
      description: "Get all suggestions for a smart campaign.\n\nReturns the list of pending, accepted, and dismissed suggestions.\nFor full campaign details including audiences, use GET /campaigns/{campaignId}\n\nArgs:\n    campaignId: Campaign ID\n\nReturns:\n    List of suggestions with their status\n\nRaises:\n    400: Not a Smart campaign\n    404: Campaign not found"
      operationId: get_campaign_suggestions_api_v1_campaigns__campaignId__suggestions_get
      security:
      - HTTPBearer: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          example: 5eb7cf5a86d9755df3a6c593
          title: Campaignid
      - name: parent_type
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Type
        examples:
          Octave:
            value: company
          Bauer UK:
            value: sub-company
          News UK:
            value: sub-company
      - name: parent_id
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Name
        examples:
          Octave:
            value: Octave
          Bauer UK:
            value: Bauer UK
          News UK:
            value: News UK
      responses:
        '200':
          description: Get suggestions for a smart campaign
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models__profile__Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Campaigns
      summary: Add Campaign Suggestions
      description: "Add new suggestions to a smart campaign (typically used by data team).\n\nThe system automatically:\n- Checks dismissal history to prevent re-suggesting dismissed audiences\n- Filters out suggestions with audience codes that already exist\n- Creates history records for each added suggestion\n\nArgs:\n    campaignId: Campaign ID\n    suggestions_data: Array of suggestions to add (max 20)\n\nReturns:\n    Summary with added and skipped suggestions\n\nRaises:\n    400: Not a Smart campaign or invalid data\n    404: Campaign not found"
      operationId: add_campaign_suggestions_api_v1_campaigns__campaignId__suggestions_post
      security:
      - HTTPBearer: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          example: 5eb7cf5a86d9755df3a6c593
          title: Campaignid
      - name: parent_type
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Type
        examples:
          Octave:
            value: company
          Bauer UK:
            value: sub-company
          News UK:
            value: sub-company
      - name: parent_id
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Name
        examples:
          Octave:
            value: Octave
          Bauer UK:
            value: Bauer UK
          News UK:
            value: News UK
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddSuggestionsRequest'
      responses:
        '200':
          description: Add suggestions to a smart campaign
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models__profile__Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/campaigns/{campaignId}/audiences/performance:
    patch:
      tags:
      - Campaigns
      summary: Update Audience Performance
      description: "Update performance metrics for existing audiences in a smart campaign.\n\nTypically used by the data team to update performance ratings based on analytics.\nCreates history records for each performance update.\n\nArgs:\n    campaignId: Campaign ID\n    performance_data: Array of performance updates\n\nReturns:\n    Updated campaign with new performance ratings\n\nRaises:\n    400: Not a Smart campaign or invalid performance rating\n    404: Campaign or audience not found"
      operationId: update_audience_performance_api_v1_campaigns__campaignId__audiences_performance_patch
      security:
      - HTTPBearer: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          example: 5eb7cf5a86d9755df3a6c593
          title: Campaignid
      - name: parent_type
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Type
        examples:
          Octave:
            value: company
          Bauer UK:
            value: sub-company
          News UK:
            value: sub-company
      - name: parent_id
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Name
        examples:
          Octave:
            value: Octave
          Bauer UK:
            value: Bauer UK
          News UK:
            value: News UK
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePerformanceRequest'
      responses:
        '200':
          description: Update audience performance metrics
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models__profile__Response'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/campaigns/{campaignId}/audiences:
    post:
      tags:
      - Campaigns
      summary: Bulk Add Audiences
      description: "Bulk add audiences to a smart campaign.\n\n- Adds each audience to the smart campaign audiences array\n- Skips audience codes that already exist in the campaign\n- Creates campaign_history records (change_type=\"audience_added\") for each\n- Re-estimates reach, duration, and nested_traits from all audiences\n\nArgs:\n    campaignId: Campaign ID\n    audiences_data: Array of audiences to add (max 50)\n\nReturns:\n    Summary with added/skipped audiences and updated campaign\n\nRaises:\n    400: Not a Smart campaign\n    404: Campaign not found"
      operationId: bulk_add_audiences_api_v1_campaigns__campaignId__audiences_post
      security:
      - HTTPBearer: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          example: 5eb7cf5a86d9755df3a6c593
          title: Campaignid
      - name: parent_type
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          title: Parent Type
        examples:
   

# --- truncated at 32 KB (61 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/covatic/refs/heads/main/openapi/covatic-campaigns-api-openapi.yml