Topics
Get a Topic
Property | Description |
---|---|
Method | GET |
Path | /open/v1/spaces/$me/topics/{topicId} |
Accept | - |
Content-Type | application/json |
Description | Retrieves a topic by its ID. |
- Request
- Query
(empty) - Body
// (empty)
- Query
- Response
type TopicView = { topic: Topic }
Batch Get a Topic
Property | Description |
---|---|
Method | GET |
Path | /open/v1/spaces/$me/topics/batch |
Accept | - |
Content-Type | application/json |
Description | Retrieves multiple topics by IDs. Can fetch up to 25 topics at once. |
-
Request
-
Query
Param Required? Default Type Description Example ids[] O - string[] IDs of topics to fetch. ?ids[]=42&ids[]=37 -
Body
// (empty)
-
-
Response
type TopicsView = { topics: Topic[] }
List Topics of a Space
Property | Description |
---|---|
Method | GET |
Path | /open/v1/spaces/$me/topics |
Accept | - |
Content-Type | application/json |
Description | Retrieves a paginated list of topics, ordered by update timestamp. |
-
Request
-
Query
Param Required? Default Type Description Example limit X 25 number Used for pagination 25 since X string Used for pagination 1707017182188 order X asc ‘asc’ | 'desc' Sort order asc -
Body
// (empty)
-
-
Response
type TopicsListView = { topics: Topic[] next?: string }
Search Topics of a Space
Property | Description |
---|---|
Method | GET |
Path | /open/v1/spaces/$me/topics/search |
Accept | - |
Content-Type | application/json |
Description | Search for a topic within a space. - You must provide a search term (query). - The search will cover all topics in the space, and any matching Topic.name in any language will be included in the search results. - Can fetch up to 10 topics. |
-
Request
-
Query
Param Required? Default Type Description Example query O string Search term apple -
Body
// (empty)
-
-
Response
type TopicsSearchView = { topics: Topic[] }
Updated 22 days ago