civai-co Publisher Publishing API

The publisher-publishing API from civai-co — 7 operation(s) for publisher-publishing.

Operations 7

GET /api/publisher/projects/{project_id}/publishing/history Publisher List History #
GET /api/publisher/projects/{project_id}/publishing/history/{history_id} Publisher Get History Item #
POST /api/publisher/projects/{project_id}/publishing/history/{history_id}/cancel Publisher Cancel History #
POST /api/publisher/projects/{project_id}/assets/{asset_id}/publish Publisher Publish Asset #
POST /api/publisher/projects/{project_id}/assets/{asset_id}/publish/cancel Publisher Cancel Asset Publish #
GET /api/publisher/projects/{project_id}/assets/{asset_id}/publish/status Publisher Publish Status #
PATCH /api/publisher/projects/{project_id}/publishing/history/{history_id}/status Publisher Patch History Status #

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/civai-co:civai-co-publisher-publishing-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

civai-co-publisher-publishing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Civai Co Publisher Publishing API
  version: 1.0.0
  description: 'Operations tagged publisher-publishing across 2 of this provider''s published API definitions: audience-resolver-api.civai.co-openapi.json, audience-resolver-api.civai.co-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: publisher-publishing
paths:
  /api/publisher/projects/{project_id}/publishing/history:
    get:
      tags:
      - publisher-publishing
      summary: Publisher List History
      operationId: publisher_list_history_api_publisher_projects__project_id__publishing_history_get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/publisher/projects/{project_id}/publishing/history/{history_id}:
    get:
      tags:
      - publisher-publishing
      summary: Publisher Get History Item
      operationId: publisher_get_history_item_api_publisher_projects__project_id__publishing_history__history_id__get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: history_id
        in: path
        required: true
        schema:
          type: string
          title: History Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/publisher/projects/{project_id}/publishing/history/{history_id}/cancel:
    post:
      tags:
      - publisher-publishing
      summary: Publisher Cancel History
      operationId: publisher_cancel_history_api_publisher_projects__project_id__publishing_history__history_id__cancel_post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: history_id
        in: path
        required: true
        schema:
          type: string
          title: History Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/publisher/projects/{project_id}/assets/{asset_id}/publish:
    post:
      tags:
      - publisher-publishing
      summary: Publisher Publish Asset
      operationId: publisher_publish_asset_api_publisher_projects__project_id__assets__asset_id__publish_post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          title: Asset Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublishRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/publisher/projects/{project_id}/assets/{asset_id}/publish/cancel:
    post:
      tags:
      - publisher-publishing
      summary: Publisher Cancel Asset Publish
      operationId: publisher_cancel_asset_publish_api_publisher_projects__project_id__assets__asset_id__publish_cancel_post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          title: Asset Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/publisher/projects/{project_id}/assets/{asset_id}/publish/status:
    get:
      tags:
      - publisher-publishing
      summary: Publisher Publish Status
      operationId: publisher_publish_status_api_publisher_projects__project_id__assets__asset_id__publish_status_get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          title: Asset Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/publisher/projects/{project_id}/publishing/history/{history_id}/status:
    patch:
      tags:
      - publisher-publishing
      summary: Publisher Patch History Status
      operationId: publisher_patch_history_status_api_publisher_projects__project_id__publishing_history__history_id__status_patch
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: history_id
        in: path
        required: true
        schema:
          type: string
          title: History Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePublishingStatusRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PublishRequest:
      properties:
        platform:
          anyOf:
          - type: string
          - type: 'null'
          title: Platform
        account_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Account Id
        post_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Post Type
          default: reel
        caption:
          anyOf:
          - type: string
          - type: 'null'
          title: Caption
        scheduled_time:
          anyOf:
          - type: string
          - type: 'null'
          title: Scheduled Time
        photo:
          type: boolean
          title: Photo
          default: false
        duration:
          type: integer
          title: Duration
          default: 5
        link_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Link Url
        targets:
          anyOf:
          - items:
              $ref: '#/components/schemas/PublishTarget'
            type: array
          - type: 'null'
          title: Targets
      type: object
      title: PublishRequest
      description: 'Request model for publishing.


        A single platform/account_id still works. Send `targets` instead to publish

        the same asset to several accounts (e.g. TikTok and Instagram) in one call.'
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    UpdatePublishingStatusRequest:
      properties:
        status:
          type: string
          title: Status
        error_message:
          anyOf:
          - type: string
          - type: 'null'
          title: Error Message
      type: object
      required:
      - status
      title: UpdatePublishingStatusRequest
      description: Request model for updating publishing history status.
    PublishTarget:
      properties:
        platform:
          type: string
          title: Platform
        account_id:
          type: string
          title: Account Id
        post_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Post Type
        caption:
          anyOf:
          - type: string
          - type: 'null'
          title: Caption
        photo:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Photo
        duration:
          anyOf:
          - type: integer
          - type: 'null'
          title: Duration
      type: object
      required:
      - platform
      - account_id
      title: PublishTarget
      description: One platform/account pair an asset should be published to.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
x-refined-from:
- audience-resolver-api.civai.co-openapi.json
- audience-resolver-api.civai.co-openapi.json