REST APIPrompt
Create prompt
Creates a new non-monitored prompt that depends on the selected topic.
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. It does not require a topic ID.
Authorization
BearerAuth AuthorizationBearer <token>
API token authentication. Use format: Bearer ot_your-token-here
In: header
Path Parameters
topic*string
Unique identifier for the topic
Format
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
application/json
curl -X POST "https://app.useomnia.com/api/v1/topics/550e8400-e29b-41d4-a716-446655440000/prompts" \ -H "Content-Type: application/json" \ -d '{ "query": "What is the best software for small businesses?" }'{
"data": {
"promptId": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"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": 1008,
"description": "Duplicated item"
}
}{
"error": {
"code": 1001,
"description": "Internal error"
}
}