post
/api/v2/prompts/bulkCreate prompts in bulk.
Create prompts in bulk.
Requires bearer API key
Parameters
X-Project-Id
header
Required for organization-wide API keys on project-scoped endpoints. Project-scoped keys infer the project automatically.
Schema: string
Request Body
{
"type": "object",
"additionalProperties": false,
"properties": {
"monitorId": {
"type": "string"
},
"llmMonitorId": {
"type": "string"
},
"prompts": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"monitorId": {
"type": "string"
},
"llmMonitorId": {
"type": "string"
},
"prompt": {
"type": "string"
},
"text": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"ORGANIC",
"BRAND_SPECIFIC",
"COMPETITOR_COMPARISON"
]
},
"intent": {
"type": "string",
"enum": [
"BRANDED",
"INFORMATIONAL",
"COMMERCIAL",
"TRANSACTIONAL",
"NAVIGATIONAL"
]
},
"languageCode": {
"type": "string"
},
"keywords": {
"type": "array",
"items": {
"type": "string"
}
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"isActive": {
"type": "boolean"
}
}
}
}
},
"required": [
"prompts"
]
}Responses
201
Prompts created.
application/json{
"type": "object",
"additionalProperties": true,
"properties": {
"prompts": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"id": {
"type": "string"
},
"monitorId": {
"type": "string"
},
"text": {
"type": "string"
},
"prompt": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"ORGANIC",
"BRAND_SPECIFIC",
"COMPETITOR_COMPARISON"
]
},
"intent": {
"type": "string",
"enum": [
"BRANDED",
"INFORMATIONAL",
"COMMERCIAL",
"TRANSACTIONAL",
"NAVIGATIONAL"
]
},
"storageType": {
"type": "string"
},
"storageIntent": {
"type": "string"
},
"languageCode": {
"type": "string",
"nullable": true
},
"keywords": {
"type": "array",
"items": {
"type": "string"
}
},
"tags": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
},
"isActive": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id",
"monitorId",
"text",
"type",
"intent",
"isActive"
]
}
},
"created": {
"type": "integer"
},
"skipped": {
"type": "integer"
}
}
}Try it
Send this request to the local WatchLLM REST handler. Use a key from `/workspace/api`; organization keys can include `X-Project-Id` only when the endpoint documents that header.