Documentation Index
Fetch the complete documentation index at: https://sedataai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
safetyCheck.
You usually don’t need to call this directly — wrap your handler with
safetyCheck instead. Use checkSafety when you want fine-grained control
(e.g. checking content from outside an MCP tool path).
Parameters
The content to validate.
Returns
Behavior
POST https://api.sedata-ai.tech/security/safety-check- Body:
{ "content": "<your content>" } - Header:
Content-Type: application/json - If
setTelemetryApiKey(...)was called (typically byinstrumentServer), also sendsx-api-key: <key>.
Failure modes
| Scenario | Result |
|---|---|
| Network error | { flagged: false, content, latency, success: false } and a console.warn. |
| Non-2xx response | Same as above. |
2xx but result.success !== true | { flagged: false, ... success: true }. |
2xx with result.success === true && result.data.flagged | { flagged: true, ... success: true }. |
Example
Authentication
Set the key once at startup:instrumentServer(...) with exporterAuth, the key is set for
you.
See also
safetyCheck
The high-level wrapper — what most users want.