---
title: "Publish a connector to the hosted registry"
method: POST
path: "/v1/connectors"
tags: ["public", "registry"]
---

# Publish a connector to the hosted registry

`POST /v1/connectors`

## Request

- Base URL: `https://api.runx.ai`
- URL: `https://api.runx.ai/v1/connectors`
- Auth: HTTP bearer

Publishes the files `runx registry package` emits under the owner of the connector name's namespace, for whom the signed-in principal must be authorized. The registry reads them with the native runtime and refuses any other files; a version is immutable.

## Request body

- PublicConnectorPublishRequest
  - `version` string
  - `files` PublicPackageFile[], required
    - `path` string, required
    - `content` string, required

## Response `200`

These files were already published under this version.

- PublicConnectorPublishResponse
  - `status` 'success', required
  - `publish` PublicConnectorPublishResult, required
    - `status` 'published' | 'unchanged', required
    - `ref` string, required
    - `version` string, required
    - `content_digest` string, required
    - `manifest_digest` string, required
    - `connector_digest` string, required
    - `trust_tier` 'first_party' | 'verified' | 'community', required
    - `install_command` CopyableCommand, required
      - `shell` 'posix', required
      - `argv` string[], required
      - `copy_text` string, required
    - `public_url` string, required

## Other responses

- `201`: Published connector version.
- `400`: Invalid connector package.
- `401`: Unauthorized.
- `403`: Missing connectors:write, a namespace the principal may not publish in, or a name that does not fit its namespace.
- `409`: The version exists with other files.
- `413`: The package is too large.
- `503`: Hosted registry unavailable.

---

[API](https://skmtc.dev/runx/apis/runx-hosted-api.md) · [All operations](https://skmtc.dev/runx/apis/runx-hosted-api/llms.txt) · [OpenAPI document](https://skmtc.dev/runx/apis/runx-hosted-api/revisions/6c940d8edacc?raw)
