cURL
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 text snippet for validation
accepted
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" }'