Mangools/API

Add prompts to a monitor

Add one or more new prompts to an existing monitor.

Request body:

  • prompts — non-empty array of prompt strings to add

The monitor starts collecting responses for the new prompts across its configured AI models on the next scheduled run. The response returns added_count.

POST
/aiwatcher/monitor/{id}/prompts

Authorization

ApiKeyAuth
x-access-token<token>

API token issued for your Mangools account, sent as an API key in the x-access-token HTTP header. This is NOT a standard RFC 6750 Authorization: Bearer <token> header. Auto-generated clients should be configured to send the token in x-access-token accordingly.

In: header

Path Parameters

id*string

Monitor ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://api.mangools.com/v3/aiwatcher/monitor/string/prompts" \  -H "Content-Type: application/json" \  -d '{    "prompts": [      "string"    ]  }'
{
  "added_count": 0
}
{
  "error": {
    "type": "AuthError",
    "message": "Invalid API Key"
  }
}
{
  "error": {
    "type": "Error",
    "message": "Monitor not found"
  }
}