Create topic
Creates a new non-monitored topic with associated prompts. If a topic with the same name and location already exists for this brand, the prompts will be added to the existing topic instead.
Deprecated: Returns a 410 Gone error once Topics are disabled for your account due to deprecation — if so, use POST /api/v1/brands/{brand}/prompts instead.
Authorization
BearerAuth API token authentication. Use format: Bearer ot_your-token-here
In: header
Path Parameters
Unique identifier for the brand
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://app.useomnia.com/api/v1/brands/550e8400-e29b-41d4-a716-446655440000/topics" \ -H "Content-Type: application/json" \ -d '{ "country": "us", "name": "best software", "prompts": [ "What is the best software for small businesses?", "Which tools do you recommend?" ] }'{
"data": {
"topicId": "550e8400-e29b-41d4-a716-446655440000",
"promptIds": [
"550e8400-e29b-41d4-a716-446655440001"
]
}
}{
"error": {
"code": 1002,
"description": "Invalid input parameters"
}
}{
"error": {
"code": 1004,
"description": "Invalid or expired API token"
}
}{
"error": {
"code": 1006,
"description": "Item not found"
}
}{
"error": {
"code": 1001,
"description": "Internal error"
}
}