curl -X POST https://win.oneshotagent.com/v1/tools/watch \
-H "Content-Type: application/json" \
-H "X-Agent-ID: 0x..." \
-H "X-Agent-Proof: <signed proof>" \
-d '{
"entity_type": "company",
"attribute": "sanctions",
"key": "12345",
"max_spend": 1
}'
{
"success": true,
"data": {
"id": "6f1c2a94-0d1e-4b53-9d0e-2f6f0c1f7a11",
"entity_type": "company",
"attribute": "sanctions",
"key": "12345",
"max_spend": 1,
"spent": 0,
"changes_delivered": 0,
"status": "running",
"pause_reason": null,
"webhook_url": null,
"price_per_change": 0.02,
"last_delivery_at": null,
"created_at": "2026-10-14T09:00:00.000Z",
"updated_at": "2026-10-14T09:00:00.000Z"
}
}
Monitoring
Watch
Be told when one attribute of an entity changes, and pay for each change you are told about
POST
/
v1
/
tools
/
watch
curl -X POST https://win.oneshotagent.com/v1/tools/watch \
-H "Content-Type: application/json" \
-H "X-Agent-ID: 0x..." \
-H "X-Agent-Proof: <signed proof>" \
-d '{
"entity_type": "company",
"attribute": "sanctions",
"key": "12345",
"max_spend": 1
}'
{
"success": true,
"data": {
"id": "6f1c2a94-0d1e-4b53-9d0e-2f6f0c1f7a11",
"entity_type": "company",
"attribute": "sanctions",
"key": "12345",
"max_spend": 1,
"spent": 0,
"changes_delivered": 0,
"status": "running",
"pause_reason": null,
"webhook_url": null,
"price_per_change": 0.02,
"last_delivery_at": null,
"created_at": "2026-10-14T09:00:00.000Z",
"updated_at": "2026-10-14T09:00:00.000Z"
}
}
A watch tells you when one attribute of one entity changes and charges your prepaid credits per change delivered (Pricing). Creating, listing, changing and deleting are free.
An attribute can be watched while a validated scheduled dataset covers it. Anything else is refused; the refusal’s Create:
List:
Change:
Delete:
A deleted watch delivers and charges nothing more.
watchable field and GET /v1/org/watchable list watchable attributes, for example solicitations, sanctions and motor carrier authority and insurance.
A watch starts at creation (earlier changes are for Changes), and the entity must be on the source’s current list.
A watch survives a source outage: nothing is delivered or charged until the dataset is validated again; then each genuine change is delivered and charged once.
A delivered change has changed_on, field, before, after, source and as_of. An entity that stops being listed is a change with field $entity; several fields changing at once are one delivery with field $ and the whole earlier and later value.
Spending cap
max_spend is at least the price of one change, at most the maximum on Pricing. When the next change would pass it, or your credits cannot pay, the watch is paused with pause_reason cap or credits and you are told once. Changes meanwhile are delivered when the watch runs again: by itself once your credits can pay, or when you raise max_spend.
Delivery
Each change is delivered once and charged once, as awatch_change notification (GET /v1/tools/notifications) and, with a webhook_url, as a signed webhook after the charge. A failing webhook is retried, then given up on; the notification, charge and watch stand. Every charge has a signed receipt.
Regulated webhooks omit content. Unregulated: type watch.change, delivery_id, watch_id, entity_type, attribute, key, change, charged and receipt_id, signed in X-OneShot-Signature with the secret returned at setup.
At most 100 undeleted watches.
Create: POST /v1/tools/watch
List: GET /v1/tools/watch
status (running or paused), pause_reason (cap, credits or agent), spent, changes_delivered, last_delivery_at.
Change: PATCH /v1/tools/watch/:id
max_spend, webhook_url (a new URL gets a new secret; null stops sending), paused (true pauses; false resumes a watch you paused).
Delete: DELETE /v1/tools/watch/:id
A deleted watch delivers and charges nothing more.
Authentication
A signed agent proof (X-Agent-ID, X-Agent-Proof): write scope for create, change and delete, read for list. An access token cannot change watches unless it comes from signing in with your OneShot account.
curl -X POST https://win.oneshotagent.com/v1/tools/watch \
-H "Content-Type: application/json" \
-H "X-Agent-ID: 0x..." \
-H "X-Agent-Proof: <signed proof>" \
-d '{
"entity_type": "company",
"attribute": "sanctions",
"key": "12345",
"max_spend": 1
}'
{
"success": true,
"data": {
"id": "6f1c2a94-0d1e-4b53-9d0e-2f6f0c1f7a11",
"entity_type": "company",
"attribute": "sanctions",
"key": "12345",
"max_spend": 1,
"spent": 0,
"changes_delivered": 0,
"status": "running",
"pause_reason": null,
"webhook_url": null,
"price_per_change": 0.02,
"last_delivery_at": null,
"created_at": "2026-10-14T09:00:00.000Z",
"updated_at": "2026-10-14T09:00:00.000Z"
}
}