[GH-ISSUE #4750] [BUG]: Bug Report: Document creation endpoint returns 404 on Desktop App, despite being in API docs #3000

Closed
opened 2026-02-22 18:32:12 -05:00 by yindo · 1 comment
Owner

Originally created by @mwell3761-boop on GitHub (Dec 9, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4750

Originally assigned to: @shatfield4 on GitHub.

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

Environment

  • AnythingLLM Version: Latest Windows Desktop Application (Downloaded in early 2025)
  • OS: Windows
  • Deployment: Desktop Application

Problem Description

There is a critical discrepancy between the official API documentation provided at http://localhost:3001/api/docs and the actual behavior of the running application.

The API documentation correctly lists the endpoint POST /api/v1/workspace/{workspaceId}/document/add-texts for adding new text documents to a workspace. However, any attempt to send a request to this endpoint results in a 404 Not Found error.

This issue makes it impossible to programmatically add documents to the desktop application via the API.

Steps to Reproduce

  1. Install and run the latest AnythingLLM Desktop application on Windows.
  2. Create a workspace and generate a valid API key.
  3. Confirm basic API connectivity by successfully sending a GET request to /api/v1/workspaces. This works correctly and returns a 200 OK.
  4. Using the same API key, attempt to send a POST request to the documented endpoint /api/v1/workspace/{workspaceId}/document/add-texts.

Expected Behavior

  • The POST request to /api/v1/workspace/{workspaceId}/document/add-texts should return a 200 OK status, indicating the document has been successfully created.

Actual Behavior

  • The POST request to /api/v1/workspace/{workspaceId}/document/add-texts consistently returns a 404 Not Found error.

Diagnostic Log

To confirm this issue, I ran a sanity check script to test multiple endpoints. The results definitively prove the problem:
--- API Sanity Check Start ---
This will test multiple API endpoints to find out which ones are "live".

[Test 1] GET /api/v1/workspaces (Known to be working)
-> Result: Status Code 200

[Test 2] POST /api/v1/workspace/{id}/document/add-texts (From API docs, but failing)
-> Result: Status Code 404

[Test 3] POST /api/v1/document/create-text (An older, deprecated endpoint)
-> Result: Status Code 404

--- Check End ---

Are there known steps to reproduce?

No response

Originally created by @mwell3761-boop on GitHub (Dec 9, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4750 Originally assigned to: @shatfield4 on GitHub. ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? ### Environment - **AnythingLLM Version:** Latest Windows Desktop Application (Downloaded in early 2025) - **OS:** Windows - **Deployment:** Desktop Application ### Problem Description There is a critical discrepancy between the official API documentation provided at `http://localhost:3001/api/docs` and the actual behavior of the running application. The API documentation correctly lists the endpoint `POST /api/v1/workspace/{workspaceId}/document/add-texts` for adding new text documents to a workspace. However, any attempt to send a request to this endpoint results in a `404 Not Found` error. This issue makes it impossible to programmatically add documents to the desktop application via the API. ### Steps to Reproduce 1. Install and run the latest AnythingLLM Desktop application on Windows. 2. Create a workspace and generate a valid API key. 3. Confirm basic API connectivity by successfully sending a `GET` request to `/api/v1/workspaces`. This works correctly and returns a `200 OK`. 4. Using the same API key, attempt to send a `POST` request to the documented endpoint `/api/v1/workspace/{workspaceId}/document/add-texts`. ### Expected Behavior - The `POST` request to `/api/v1/workspace/{workspaceId}/document/add-texts` should return a `200 OK` status, indicating the document has been successfully created. ### Actual Behavior - The `POST` request to `/api/v1/workspace/{workspaceId}/document/add-texts` consistently returns a `404 Not Found` error. ### Diagnostic Log To confirm this issue, I ran a sanity check script to test multiple endpoints. The results definitively prove the problem: --- API Sanity Check Start --- This will test multiple API endpoints to find out which ones are "live". [Test 1] GET /api/v1/workspaces (Known to be working) -> Result: Status Code 200 [Test 2] POST /api/v1/workspace/{id}/document/add-texts (From API docs, but failing) -> Result: Status Code 404 [Test 3] POST /api/v1/document/create-text (An older, deprecated endpoint) -> Result: Status Code 404 --- Check End --- ### Are there known steps to reproduce? _No response_
yindo added the possible bugneeds info / can't replicateDesktopinvestigating labels 2026-02-22 18:32:12 -05:00
yindo closed this issue 2026-02-22 18:32:12 -05:00
Author
Owner

@shatfield4 commented on GitHub (Dec 11, 2025):

I have downloaded the latest desktop version of AnythingLLM and was unable to replicate the problem you are having here.

I don't know where you are seeing the documentation for this endpoint at /api/v1/workspace/{id}/document/add-texts. Looking at our backend I do not see that endpoint declared anywhere.

Closing for now but if you can provide a screenshot of the /api/docs page showing this endpoint we can reopen and revisit your issue.

@shatfield4 commented on GitHub (Dec 11, 2025): I have downloaded the latest desktop version of AnythingLLM and was unable to replicate the problem you are having here. I don't know where you are seeing the documentation for this endpoint at `/api/v1/workspace/{id}/document/add-texts`. Looking at our backend I do not see that endpoint declared anywhere. Closing for now but if you can provide a screenshot of the `/api/docs` page showing this endpoint we can reopen and revisit your issue.
yindo changed title from [BUG]: Bug Report: Document creation endpoint returns 404 on Desktop App, despite being in API docs to [GH-ISSUE #4750] [BUG]: Bug Report: Document creation endpoint returns 404 on Desktop App, despite being in API docs 2026-06-05 14:49:44 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3000