Skip to main content
POST
/
api
/
validate_snippet_stream
Validate Text Snippet
curl --request POST \
  --url https://api.example.com/api/validate_snippet_stream/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "text_snippet": "<string>",
  "document_category": "<string>",
  "document_metadata": {}
}
'
{
  "job_id": "snippet_789xyz",
  "status": "accepted"
}
Submit a plain text snippet for asynchronous compliance validation.

Request Body

text_snippet
string
required
Plain text content to validate
document_category
string
Optional document category. If omitted, all rule packs will run.
document_metadata
object
Optional detailed metadata for precise rule matching.

Response

job_id
string
Unique identifier for the validation job
status
string
Job status: accepted
{
  "job_id": "snippet_789xyz",
  "status": "accepted"
}

Example

curl -X POST "https://zhshgjat2b.execute-api.us-east-1.amazonaws.com/dev/v1/api/validate_snippet_stream/" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text_snippet": "Our fund guarantees 20% returns with zero risk!",
    "document_category": "retail_investor_letter"
  }'