---
title: "POST /share/upload/{namespace}"
method: POST
path: "/share/upload/{namespace}"
tags: ["share"]
---

# POST /share/upload/{namespace}

`POST /share/upload/{namespace}`

Upload a document to the reserved share namespace

## Path parameters

- `namespace` 'apis' | 'schemas', required

## Query parameters

- `source` 'agent'

## Request body

- object
  - `document` string, required

## Response `200`

Default Response

- object
  - `url` string, required
  - `namespace` string, required
  - `slug` string, required

## Other responses

- `400` — Bad request
- `401` — No auth
- `403` — Forbidden
- `404` — Not found
- `422` — Invalid payload
- `500` — Uncaught error

---

[API](https://skmtc.net/scalar/apis/core.md) · [All operations](https://skmtc.net/scalar/apis/core/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scalar/core/versions/f2eb95a82c72/schema)
