[GH-ISSUE #2987] [API DOCS]: threadUuid instead of threadSlug #1909

Closed
opened 2026-02-22 18:27:11 -05:00 by yindo · 2 comments
Owner

Originally created by @JOduMonT on GitHub (Jan 19, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2987

Description

in AnythingLLM Developer API, it is mentionned to Get Workspace Threads** with the threadSlug:
/v1/workspace/{slug}/thread/{threadSlug}/chats

but I was only able to GET via the threadUuid:
/v1/workspace/{slug}/thread/{threadUuid}/chats

I would do a PR, but I didn't figure where

Originally created by @JOduMonT on GitHub (Jan 19, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2987 ### Description in AnythingLLM Developer API, it is mentionned to **Get** Workspace Threads** with the **threadSlug**: `/v1/workspace/{slug}/thread/{threadSlug}/chats` but I was only able to **GET** via the **threadUuid**: `/v1/workspace/{slug}/thread/{threadUuid}/chats` I would do a PR, but I didn't figure where
yindo added the documentation label 2026-02-22 18:27:11 -05:00
yindo closed this issue 2026-02-22 18:27:11 -05:00
Author
Owner

@JOduMonT commented on GitHub (Jan 19, 2025):

After reading your code: https://github.com/search?q=org%3AMintplex-Labs+threadSlug&type=code

path="/workspace/:slug/t/:threadSlug"

maybe it's just the name which make me confuse
since t/threadSlug is what I consider t/threadUuid

While I was considering the Slug being like the Workspace Slug; a name instead of a unique id.
Image

@JOduMonT commented on GitHub (Jan 19, 2025): After reading your code: https://github.com/search?q=org%3AMintplex-Labs+threadSlug&type=code path="/workspace/:slug/t/:threadSlug" maybe it's just the name which make me confuse since t/threadSlug is what I consider t/threadUuid While I was considering the Slug being like the Workspace Slug; a name instead of a unique id. ![Image](https://github.com/user-attachments/assets/2717e053-5cf4-4090-9d14-35208047bd17)
Author
Owner

@timothycarambat commented on GitHub (Jan 20, 2025):

The nomenclature comes from its database field, which is why
https://github.com/Mintplex-Labs/anything-llm/blob/f8c72786dfa84e60150e99750306c038cf542b59/server/prisma/schema.prisma#L152

It is also what is injected into the URL for the path, so we called it a slug to have it named similarly to workspace - that is all. Functionally it is the same as a uuid, because it is one. IIRC, our intention was to have them be named like workspaces but that was abandoned during implementation a long time ago.

@timothycarambat commented on GitHub (Jan 20, 2025): The nomenclature comes from its database field, which is why https://github.com/Mintplex-Labs/anything-llm/blob/f8c72786dfa84e60150e99750306c038cf542b59/server/prisma/schema.prisma#L152 It is also what is injected into the URL for the path, so we called it a slug to have it named similarly to workspace - that is all. Functionally it is the same as a `uuid`, because it is one. IIRC, our intention was to have them be named like workspaces but that was abandoned during implementation a long time ago.
yindo changed title from [API DOCS]: threadUuid instead of threadSlug to [GH-ISSUE #2987] [API DOCS]: threadUuid instead of threadSlug 2026-06-05 14:43:24 -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#1909