Coppica Generation API

Run bots and poll results.

GitHub OpenAPI

Operations 13

GET /clients/{clientId}/outputs List bot outputs #
GET /clients/{clientId}/outputs/{outputId} Output detail #
PATCH /clients/{clientId}/outputs/{outputId} Update an output (review stage / deployment status) #
POST /clients/{clientId}/outputs/{outputId}/append Append a dated addendum to a strategic doc #
POST /clients/{clientId}/outputs/{outputId}/diagnose Diagnose which techniques an output used #
POST /clients/{clientId}/rank-outputs Rank candidate outputs head-to-head #
GET /clients/{clientId}/drafts List drafts #
GET /clients/{clientId}/drafts/{draftId} Draft content #
PATCH /clients/{clientId}/drafts/{draftId} Update a draft #
POST /clients/{clientId}/workflows Run a multi-stage workflow (ad-set, iterate-on-winner) #
GET /clients/{clientId}/workflows/{workflowId} Poll workflow status #
POST /clients/{clientId}/bots/{botType}/run Run a bot (async) #
GET /jobs/{outputId} Poll a bot run #

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/coppica-com:coppica-com-generation-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

coppica-com-generation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Coppica Com Generation API
  version: v1-alpha
  description: 'Operations tagged Generation across 2 of this provider''s published API definitions: coppica-com-openapi.json, coppica-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://coppica.com/api/v1
security:
- bearerAuth: []
tags:
- name: Generation
  description: Run bots and poll results.
paths:
  /clients/{clientId}/outputs:
    get:
      tags:
      - Generation
      summary: List bot outputs
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: limit
        in: query
        description: Max rows to return (1–50, default 50).
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 50
          default: 50
      - name: since
        in: query
        description: ISO-8601 timestamp — return only rows after it (incremental polling).
        required: false
        schema:
          type: string
          format: date-time
      - name: finalized
        in: query
        required: false
        schema:
          type: boolean
        description: Only approved-to-deploy copy (orders by finalized_at).
      - name: bot_type
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Bot outputs, newest first.
          content:
            application/json:
              schema:
                type: object
                properties:
                  outputs:
                    type: array
                    items:
                      $ref: '#/components/schemas/Output'
                required:
                - outputs
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: getClientsByClientIdOutputs
      x-operation-id-source: derived
    servers:
    - url: https://coppica.com/api/v1
  /clients/{clientId}/outputs/{outputId}:
    get:
      tags:
      - Generation
      summary: Output detail
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: outputId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The output.
          content:
            application/json:
              schema:
                type: object
                properties:
                  output:
                    $ref: '#/components/schemas/Output'
                required:
                - output
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: getClientsByClientIdOutputsByOutputId
      x-operation-id-source: derived
    patch:
      tags:
      - Generation
      summary: Update an output (review stage / deployment status)
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: outputId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Generic'
      responses:
        '200':
          description: Updated output.
          content:
            application/json:
              schema:
                type: object
                properties:
                  output:
                    $ref: '#/components/schemas/Output'
                required:
                - output
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: patchClientsByClientIdOutputsByOutputId
      x-operation-id-source: derived
    servers:
    - url: https://coppica.com/api/v1
  /clients/{clientId}/outputs/{outputId}/append:
    post:
      tags:
      - Generation
      summary: Append a dated addendum to a strategic doc
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: outputId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Generic'
      responses:
        '200':
          description: Addendum appended.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Generic'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: postClientsByClientIdOutputsByOutputIdAppend
      x-operation-id-source: derived
    servers:
    - url: https://coppica.com/api/v1
  /clients/{clientId}/outputs/{outputId}/diagnose:
    post:
      tags:
      - Generation
      summary: Diagnose which techniques an output used
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: outputId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Diagnosis.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Generic'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: postClientsByClientIdOutputsByOutputIdDiagnose
      x-operation-id-source: derived
    servers:
    - url: https://coppica.com/api/v1
  /clients/{clientId}/rank-outputs:
    post:
      tags:
      - Generation
      summary: Rank candidate outputs head-to-head
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Generic'
      responses:
        '200':
          description: Ranking.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Generic'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: postClientsByClientIdRankOutputs
      x-operation-id-source: derived
    servers:
    - url: https://coppica.com/api/v1
  /clients/{clientId}/drafts:
    get:
      tags:
      - Generation
      summary: List drafts
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Drafts for the client.
          content:
            application/json:
              schema:
                type: object
                properties:
                  drafts:
                    type: array
                    items:
                      $ref: '#/components/schemas/Generic'
                required:
                - drafts
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: getClientsByClientIdDrafts
      x-operation-id-source: derived
    servers:
    - url: https://coppica.com/api/v1
  /clients/{clientId}/drafts/{draftId}:
    get:
      tags:
      - Generation
      summary: Draft content
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: draftId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The draft.
          content:
            application/json:
              schema:
                type: object
                properties:
                  draft:
                    $ref: '#/components/schemas/Generic'
                required:
                - draft
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: getClientsByClientIdDraftsByDraftId
      x-operation-id-source: derived
    patch:
      tags:
      - Generation
      summary: Update a draft
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: draftId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Generic'
      responses:
        '200':
          description: Updated draft.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Generic'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: patchClientsByClientIdDraftsByDraftId
      x-operation-id-source: derived
    servers:
    - url: https://coppica.com/api/v1
  /clients/{clientId}/workflows:
    post:
      tags:
      - Generation
      summary: Run a multi-stage workflow (ad-set, iterate-on-winner)
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Generic'
      responses:
        '202':
          description: Workflow started; poll the returned workflow_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Generic'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: postClientsByClientIdWorkflows
      x-operation-id-source: derived
    servers:
    - url: https://coppica.com/api/v1
  /clients/{clientId}/workflows/{workflowId}:
    get:
      tags:
      - Generation
      summary: Poll workflow status
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: workflowId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The workflow.
          content:
            application/json:
              schema:
                type: object
                properties:
                  workflow:
                    $ref: '#/components/schemas/Generic'
                required:
                - workflow
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: getClientsByClientIdWorkflowsByWorkflowId
      x-operation-id-source: derived
    servers:
    - url: https://coppica.com/api/v1
  /clients/{clientId}/bots/{botType}/run:
    post:
      tags:
      - Generation
      summary: Run a bot (async)
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: botType
        in: path
        required: true
        schema:
          type: string
        description: e.g. PERSUASION_MAP, MIMIR.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                user_message:
                  type: string
                  description: Optional steer for the run.
                channel:
                  type: string
                  description: Asset channel hint (any in-app channel slug). Legacy aliases (meta_ads/google_ads/tiktok_ads/email) also accepted.
                  enum:
                  - facebook_ad
                  - tiktok_ad
                  - google_search_ad
                  - google_display_ad
                  - email_single
                  - email_sequence
                  - landing_page
                  - sales_page
                  - vsl
                  - advertorial
                  - organic_social
                  - blog_post
                  - sms
                  - direct_mail
                  - linkedin_ad
                  - linkedin_organic
                  - amazon_listing
                  - podcast_ad
                  - webinar_registration
                  - other
                  - meta_ads
                  - google_ads
                  - tiktok_ads
                  - email
                funnel_stage:
                  type: string
                  enum:
                  - cold_traffic
                  - retargeting
                  - warm
                  - reactivation
                format:
                  type: string
                  description: Creative-format hint (any in-app creative-format slug). Legacy aliases also accepted.
                  enum:
                  - ugly_ad
                  - bold_typography
                  - native_social_post
                  - breaking_news
                  - screenshot_format
                  - meme_template
                  - comment_review
                  - handwritten_note
                  - native_ad_style
                  - hero_layout
                  - carousel
                  - split_screen
                  - infographic
                  - talking_head
                  - screen_recording
                  - simple_animation
                  - faceless
                  - ugc_style
                  - founder_style
                  - podcast_clip
                  - street_interview
                  - cartoon_animation
                  - ugly_video
                  - text_on_broll
                  - production_heavy
                  - reaction_video
                  - green_screen
                  - presentation
                  - whiteboard
                  - meta_ad
                  - google_responsive_search
                  - email
                  - landing_page
                  - sms
                  - primary_text
                  - headline
                  - description
                  - full_ad_set
                iteration_context:
                  type: string
                  maxLength: 4000
                  description: Free text explaining why new copy is needed.
                reference_output_id:
                  type: string
                  format: uuid
                  description: Output to iterate on.
                idempotency_key:
                  type: string
                  maxLength: 255
                  description: Retry-safety key; a repeat with the same (client, bot, key) returns the original run.
                label:
                  type: string
                  maxLength: 200
                  description: 'Human-readable label for this run. Becomes the title of the auto-promoted draft; without it, drafts fall back to "<Bot> · <short id>". Alias: session_label.'
                session_label:
                  type: string
                  maxLength: 200
                  description: Alias for label.
      responses:
        '202':
          description: Accepted — poll poll_url until status is complete.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunAccepted'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: postClientsByClientIdBotsByBotTypeRun
      x-operation-id-source: derived
    servers:
    - url: https://coppica.com/api/v1
  /jobs/{outputId}:
    get:
      tags:
      - Generation
      summary: Poll a bot run
      parameters:
      - name: outputId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Job status; output_text is populated once status is complete.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobStatus'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: getJobsByOutputId
      x-operation-id-source: derived
    servers:
    - url: https://coppica.com/api/v1
components:
  schemas:
    RunAccepted:
      type: object
      properties:
        output_id:
          type: string
          format: uuid
        status:
          type: string
          enum:
          - processing
          - complete
        poll_url:
          type: string
          description: GET this to poll the run, e.g. /api/v1/jobs/{outputId}.
      required:
      - output_id
      - status
      - poll_url
    JobStatus:
      type: object
      properties:
        output_id:
          type: string
          format: uuid
        bot_type:
          type: string
        status:
          type: string
          enum:
          - processing
          - complete
          - needs_revision
          - failed
          - error
        output_text:
          type:
          - string
          - 'null'
          description: Null until status is complete.
        tokens_input:
          type: integer
        tokens_output:
          type: integer
        credits_spent:
          type:
          - number
          - 'null'
          description: Credits consumed by this run. Null until status is complete.
        intake_completeness:
          type:
          - number
          - 'null'
          description: Fraction (0–1) of the 15 intake fields populated.
        warnings:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
              message:
                type: string
      required:
      - output_id
      - bot_type
      - status
    Output:
      type: object
      properties:
        id:
          type: string
          format: uuid
        client_id:
          type: string
          format: uuid
        bot_type:
          type: string
        status:
          type: string
          enum:
          - processing
          - complete
          - needs_revision
        session_label:
          type:
          - string
          - 'null'
        created_at:
          type: string
          format: date-time
      required:
      - id
      - bot_type
      - status
      - created_at
      additionalProperties: true
    Error:
      type: object
      description: Standard error envelope. Branch on `code`, never the human `error` string.
      properties:
        error:
          type: string
          description: Human-readable, sanitized message.
        code:
          type: string
          description: Stable machine-readable code.
          examples:
          - invalid_request
          - invalid_client_id
          - missing_authorization
          - invalid_api_key
          - missing_scope
          - client_access_denied
          - spending_cap_exceeded
          - not_found
          - rate_limited
          - server_error
      required:
      - error
      - code
    Generic:
      type: object
      additionalProperties: true
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found (also returned when access is denied).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Rate limit exceeded.
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds to wait before retrying.
        RateLimit-Limit:
          schema:
            type: integer
          description: Max requests in the window.
        RateLimit-Remaining:
          schema:
            type: integer
          description: Requests left in the window.
        RateLimit-Reset:
          schema:
            type: integer
          description: Seconds until the window resets.
      content:
        application/json:
          schema:
            type: object
            description: The 429 body carries code plus a message and retryAfterMs.
            properties:
              error:
                type: string
              code:
                type: string
                const: rate_limited
              message:
                type: string
              retryAfterMs:
                type: integer
            required:
            - error
            - code
    Forbidden:
      description: Wrong scope, client access denied, or spending cap exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'A Coppica API key, e.g. `Authorization: Bearer cpk_...`. Keys carry read/write/execute scopes.'
x-refined-from:
- coppica-com-openapi.json
- coppica-com-openapi.yml