Skip to content

Research REST endpoints

Use https://api.noticedbysenp.ai as the hosted API origin and verify the current connection details in Connection. Private resources accept Authorization: Bearer with a scoped account key or supported authenticated session token. Discovery is public and does not issue paid generation or search. Public cost-estimate endpoints are not available.

Method and path Scope Behavior
GET /api/v1/research/targets Public Discover adapters/presets; optional provider, model_query, limit (1–50, default 20).
POST /api/v1/research/runs write Return {run, created}; 201 plus Location for creation, 200 for identical replay.
GET /api/v1/research/runs read Return {runs, next_cursor}; optional project, limit (1–100, default 25), opaque cursor, or legacy before timestamp.
GET /api/v1/research/runs/:id read Return the run directly; optional wait_ms (0–10000, default 0).
GET /api/v1/research/runs/:id/observations read Return {observations, next_cursor}; filters and options below.
PATCH /api/v1/research/runs/:id write Body { "cancel_requested": true }; return the updated run.

Encode run IDs as single path segments. POST/PATCH bodies require one JSON object, Content-Type: application/json, and at most 1 MiB. Research query parameters are resource-specific; unknown or repeated parameters are rejected. Account identity comes from verified authentication, not caller-supplied identity fields.

Run creation accepts prompts, targets, and idempotency_key; optional fields are project, repetitions, locale, and max_estimated_cost_usd. See the complete REST example.

Field Limits and defaults
prompts 1–25; unique IDs (1–80 characters); trimmed text of 1–8000 characters.
Prompt queries Optional 1–3 trimmed queries, each 1–500 characters, for controlled retrieval.
targets 1–10 unique inline targets or available configured preset IDs.
Inline target id (1–80 letters/digits/underscore/hyphen), provider, model, search. Serving endpoints are managed automatically.
repetitions 1–5; default 1. Total prompts × targets × repetitions ≤100.
locale 2–40 characters; default en-US.
project Optional grouping string, at most 120 characters.
idempotency_key Required 1–160 characters; identical replay returns the same run, changed input conflicts.
max_estimated_cost_usd Positive, at most 1000; rejects unpriced/over-budget starts and does not guarantee final charges.

Inline target limits include max_output_tokens (32–4096, default 512), timeout_ms (1000–120000, default 120000), and optional temperature (0–2). Optional reasoning_effort is none, minimal, low, medium, high, xhigh, or max, subject to adapter/model support. Callers cannot provide credentials, prices, or arbitrary provider configuration. See search modes for the discriminated search object.

Observation queries accept target_id, prompt_id, status, nonnegative integer cursor, limit (1–100, default 25), and include_raw=true|false (default false). Follow next_cursor until null. Run cursors are opaque; observation cursors are ordinal numbers.

Run statuses are queued, running, succeeded, partial, failed, and cancelled. Observation statuses are pending, running, succeeded, failed, cancelled, and unknown_outcome. Inspect individual errors even after a terminal run. Raw results add captured source text, provider payloads, and metadata.

Failures use {error: {code, message}}; research-domain errors can also include retryable. Common statuses include 400, 401, 402, 403, 404, 405, 409, 413, 415, 429, and 503. A method rejection can include Allow, and rate limiting includes Retry-After. See troubleshooting before retrying paid operations.

An unauthenticated start can return a 402 payment challenge for a supported Stripe card/Link SPT client. That flow requires an unpredictable idempotency key of at least 16 characters and retention of the exact input. A funded response adds guest_access with api_key, account_id, and mcp_url; preserve the private credential for reads and cancellation. Replaying the accepted payment/quote recovers the original run rather than funding or dispatching it twice. Standard account-key integrations can use the account/credit workflow instead.