post/api/v2/prompt-suggestions/{id}/accept

Accept a prompt suggestion.

Creates a prompt from a pending suggestion, records the accepted prompt and monitor IDs, and can optionally run the monitor immediately.

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

id

path / required

No description provided.

Schema: string

Request Body

{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "monitorId": {
      "type": "string"
    },
    "runNow": {
      "type": "boolean"
    }
  }
}

Responses

200

Accepted prompt suggestion.

application/json
{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "projectId": {
      "type": "string"
    },
    "promptId": {
      "type": "string"
    },
    "monitorId": {
      "type": "string"
    },
    "alreadyAccepted": {
      "type": "boolean"
    },
    "runId": {
      "type": "string"
    },
    "createdResponses": {
      "type": "integer"
    },
    "createdCitations": {
      "type": "integer"
    },
    "firstResponseId": {
      "type": "string",
      "nullable": true
    }
  },
  "required": [
    "projectId",
    "promptId",
    "monitorId",
    "alreadyAccepted"
  ]
}
404

Suggestion or monitor not found.

application/json
{
  "type": "object",
  "additionalProperties": true
}
409

Suggestion is no longer pending.

application/json
{
  "type": "object",
  "additionalProperties": true
}

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.