Documentation Index
Fetch the complete documentation index at: https://slatehq.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Creates a new topic in your workspace. Topics group related prompts together for organized tracking and analytics.
Parameters
Bearer token. Format: Bearer slat_<your-token>.
Name of the topic. Maximum 255 characters.
Description of the topic. Maximum 1000 characters.
Brand ID to associate with the topic.
Response
Returns 201 Created with the new topic.
Unique identifier for the topic.
Workspace the topic belongs to.
Associated brand ID. null if not set.
Topic description. null if not set.
Example
curl -s -X POST "https://api.slatehq.ai/ai-analytics-service/api/public/v1/topics" \
-H "Authorization: Bearer slat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
--data-raw '{
"topicName": "Project Management Tools",
"description": "Track AI mentions of project management software"
}'
Response
{
"id": 42,
"workspaceId": 1,
"brandId": null,
"topicName": "Project Management Tools",
"description": "Track AI mentions of project management software"
}
Status codes
| Status | Description |
|---|
201 | Topic created. |
400 | Invalid request. topicName is missing or exceeds 255 characters. |
401 | Missing or invalid Bearer token. See Authentication. |
500 | Internal server error. |
What’s next