categories
Get all categories with their topics
Fetches all categories along with their associated topics, providing a hierarchical view of your taxonomy structure for easier management and navigation
GET
/
categories
/
all
Copy
curl --request GET \
--url https://sdk.senso.ai/api/v1/categories/all \
--header 'X-API-Key: <api-key>'
Copy
[
{
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"topics": [
{
"topic_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
}
]
}
]
Authorizations
API key authorization
Response
200
application/json
All categories with their topics successfully retrieved
The response is of type object[]
.
Copy
curl --request GET \
--url https://sdk.senso.ai/api/v1/categories/all \
--header 'X-API-Key: <api-key>'
Copy
[
{
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"topics": [
{
"topic_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
}
]
}
]
Assistant
Responses are generated using AI and may contain mistakes.