# Source Wiki (External APIs) ## Docs - Source Items [ProseMirror JSON Schema Reference](https://docs.thesource.wiki/prosemirror-json-schema-reference-2032558m0.md): ## API Docs - Categories [List categories (paginated)](https://docs.thesource.wiki/list-categories-paginated-30931923e0.md): - Categories [Create a category](https://docs.thesource.wiki/create-a-category-30931924e0.md): - Categories [Get a single category](https://docs.thesource.wiki/get-a-single-category-30931925e0.md): - Categories [Update a category](https://docs.thesource.wiki/update-a-category-30931926e0.md): - Categories [Delete a category](https://docs.thesource.wiki/delete-a-category-30931927e0.md): Soft-deletes the category along with all its projects and their source items. - Spaces [List spaces in a category (paginated)](https://docs.thesource.wiki/list-spaces-in-a-category-paginated-30931928e0.md): - Spaces [Create a space](https://docs.thesource.wiki/create-a-space-30931929e0.md): - Spaces [Get a single space](https://docs.thesource.wiki/get-a-single-space-30931930e0.md): - Spaces [Update a space](https://docs.thesource.wiki/update-a-space-30931931e0.md): - Spaces [Delete a space](https://docs.thesource.wiki/delete-a-space-30931932e0.md): Soft-deletes the space along with all its source items. - Source Items [List source items in a space (paginated)](https://docs.thesource.wiki/list-source-items-in-a-space-paginated-30932090e0.md): - Source Items [Create a source item](https://docs.thesource.wiki/create-a-source-item-30932091e0.md): Creates a source item inside the given space. For types `document` or `handbook`, an optional `contents` body can be provided to immediately create the initial source document. The `content_type` field controls how the content is interpreted: - Source Items [Get a single source item](https://docs.thesource.wiki/get-a-single-source-item-30932092e0.md): - Source Items [Update a source item](https://docs.thesource.wiki/update-a-source-item-30932093e0.md): All fields are optional — only send what you want to change. Providing `contents` will create or update the current source document. Use `content_type` to control how `contents` is interpreted (`html`, `markdown`, or `json`); defaults to `html`. - Source Items [Delete a source item](https://docs.thesource.wiki/delete-a-source-item-30932094e0.md): Soft-deletes the source item. Descendant items are also soft-deleted recursively. To permanently delete or restore, use the dedicated trash management endpoints on the internal API. ## Schemas - [User](https://docs.thesource.wiki/user-13521579d0.md): - [SourceDocument](https://docs.thesource.wiki/sourcedocument-13549762d0.md): - [Category](https://docs.thesource.wiki/category-13521580d0.md): - [Space](https://docs.thesource.wiki/space-13521643d0.md): - [SourceItem](https://docs.thesource.wiki/sourceitem-13549763d0.md): - [PublishedCategory](https://docs.thesource.wiki/publishedcategory-13521581d0.md): - [SuccessEnvelope](https://docs.thesource.wiki/successenvelope-13521582d0.md): - [PaginationMeta](https://docs.thesource.wiki/paginationmeta-13521583d0.md): - [PaginationLinks](https://docs.thesource.wiki/paginationlinks-13521584d0.md): - [ValidationErrorResponse](https://docs.thesource.wiki/validationerrorresponse-13521585d0.md): - [UnauthenticatedResponse](https://docs.thesource.wiki/unauthenticatedresponse-13521586d0.md): - [NotFoundResponse](https://docs.thesource.wiki/notfoundresponse-13521587d0.md): - [ConflictResponse](https://docs.thesource.wiki/conflictresponse-13549764d0.md):