Endpoints
    POST/desearch/monitors/{monitor_id}/trigger

    Run a monitor now

    Queues a run at once, whatever the schedule and also when the monitor is paused. It searches from where the last completed run ended. Billed like a scheduled run.

    Base URL

    https://api.desearch.ai

    Implementation guidance

    Use Run a monitor now when your application needs search-grounded AI results without maintaining its own crawler, social-data pipeline, or retrieval infrastructure. The endpoint returns structured data that can be consumed by agents, research tools, dashboards, and retrieval-augmented generation workflows. Keep the request focused on the minimum fields your workflow needs so responses remain fast and easy to validate.

    Send requests to POST /desearch/monitors/{monitor_id}/trigger with your Desearch API key in the authorization header. Treat the key as a server-side secret, validate all required parameters before sending the request, and handle non-2xx responses explicitly. Production integrations should use sensible timeouts, retry only transient failures with backoff, and record the response status and request identifier for troubleshooting.

    Test the example request below before integrating it into a larger workflow. Confirm that the returned fields, links, and timestamps meet your freshness requirements, then add schema validation at the application boundary. For agentic systems, preserve source URLs with the generated answer so users can inspect evidence and your application can avoid presenting unsupported claims.

    Path Parameters

    monitor_idstringrequired

    The `monitor_id` returned when the monitor was created.

    Responses

    202Successful Response
    400Invalid JSON body
    401Unauthorized
    402Your balance cannot cover one run
    404Monitor not found
    409A run is already queued or running
    422Validation Error
    500Internal Server Error
    Authorization

    Your API key is sent in the Authorization header.

    Request
    curl -X POST "https://api.desearch.ai/desearch/monitors/YOUR_MONITOR_ID/trigger" \
      -H "Authorization: YOUR_API_KEY" \
      -H "Content-Type: application/json"
    ResponseSchema
    {
      "run_id": "Run Id",
      "monitor_id": "Monitor Id",
      "trigger": "schedule",
      "status": "queued",
      "fail_reason": "string",
      "window_start": "string",
      "window_end": "string",
      "item_count": 0,
      "stats": {},
      "summary": "string",
      "reserved_usd": 0,
      "cost_usd": 0,
      "created_at": "Created At",
      "started_at": "string",
      "finished_at": "string"
    }

    Possible status codes:

    200401422429500