Publish with AI Upload API

The Upload API from Publish with AI — 1 operation(s) for upload.

GitHub OpenAPI

Operations 1

POST /api/v1/upload/{token} Upload a binary file using an upload token #

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/publishwith-ai:publishwith-ai-upload-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

publishwith-ai-upload-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: publishwith.ai Upload API
  description: 'REST API for publishing governed AI-generated reports and dashboards.

    Designed for ChatGPT Custom Actions and any HTTP client.


    **Base URL:** `https://publishwith.ai`


    **Auth:** Bearer token — generate a personal API key from Connect.

    API keys are for ChatGPT Actions and clients that cannot complete OAuth;

    Enterprise workspaces may restrict or disable key creation.'
  version: '1.0'
  contact:
    url: https://publishwith.ai
servers:
- url: https://publishwith.ai
security:
- bearerAuth: []
tags:
- name: Upload
paths:
  /api/v1/upload/{token}:
    post:
      operationId: uploadFile
      summary: Upload a binary file using an upload token
      description: 'Upload raw file bytes to an artifact using a token from requestUpload or

        publishArtifact. This endpoint is token-authenticated — no Bearer header

        required. The token is multi-use within its 5-minute TTL. Files undergo

        the same extension and magic-byte checks as inline publish.'
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
        description: Upload token from requestUpload or publishArtifact response.
      - name: name
        in: query
        required: true
        schema:
          type: string
        description: Filename for the uploaded file (e.g. logo.png).
      requestBody:
        required: true
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
      security: []
      responses:
        '200':
          description: File uploaded successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  file:
                    type: string
                    description: Filename as stored.
                  version:
                    type: integer
                    description: Artifact version the file was added to.
                  bytes:
                    type: integer
                    description: Number of bytes written.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '410':
          description: Upload token has expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: File exceeds the per-asset size limit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Upload
components:
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: No tenant associated with this API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Personal API key from Connect