Create a metric watch
POST
/v1/metric-watch
const url = 'https://shareout.site/v1/metric-watch';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"artifact_id":"example","table":"example","kind":"count","column":"example","threshold_pct":20}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://shareout.site/v1/metric-watch \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "artifact_id": "example", "table": "example", "kind": "count", "column": "example", "threshold_pct": 20 }'One-click table watch — bell-only anomaly alerts (±threshold_pct vs baseline).
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
artifact_id
required
string
table
required
string
kind
required
string
column
Required for sum and last.
string
threshold_pct
Alert when value moves ±this percent from baseline.
number
Responses
Section titled “ Responses ”Watch created
Media type application/json
object
watch
object
artifact_id
required
string
table
required
string
kind
required
string
column
Required for sum and last.
string
threshold_pct
Alert when value moves ±this percent from baseline.
number
id
string
workspace_id
string
table_name
string
metric_kind
string
column_name
string
last_value
number
enabled
boolean
created_at
integer
Example
{ "watch": { "kind": "count", "threshold_pct": 20 }}Invalid request
Media type application/json
object
success
required
boolean
error
required
Human-readable message.
string
code
required
Machine-readable error code.
string
Example
{ "success": false}Authentication required
Media type application/json
object
success
required
boolean
error
required
Human-readable message.
string
code
required
Machine-readable error code.
string
Example
{ "success": false}