Cygnal Monitor
Changed onMonitors content for policy violations.
This endpoint is used to check if the provided text contains harmful content or violates a given set of policies.
Docs: Guide | API Reference
Request
- Base URLhttps://api.grayswan.ai
- Auth
- HTTP bearer
- or API key in header x-grayswan-api-key
- or API key in header grayswan-api-key
- or API key in header x-gs-api-key
- or API key in header gs-api-key
- or API key in query parameter gs_api_key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
Changes
- breaking
the
//request property type changed fromobjectto no type - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
/// - info
the endpoint scheme security
GraySwanBearerwas added to the API - info
the endpoint scheme security
grayswan-api-keywas added to the API - info
the endpoint scheme security
gs-api-keywas added to the API - info
the endpoint scheme security
gs_api_keywas added to the API - info
the endpoint scheme security
x-grayswan-api-keywas added to the API - info
the endpoint scheme security
x-gs-api-keywas added to the API - info
added the new optional request property
/// - info
added the new optional request property
- info
added
subschema #2: MonitorResponsesItemto the//request propertyanyOflist - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status
- breaking
- breaking
the
response property const valuetext_moderation_onlywas removed for the status - breaking
the
response property const valuemediawas removed for the status - warning
added the new
mediaenum value to the//response property for the response status - warning
added the new
text_moderation_onlyenum value to the//response property for the response status - warning
added the new
transcriptenum value to the//response property for the response status - warning
added the new
unsupported_transcript_shapeenum value to the//response property for the response status
- breaking