curl --location 'http://revapi.reverieinc.com/api/v2/text-analyse?translate=false&summary=false&sentiment=true&detect_entities=true&content_safety=true&pii_redaction=true' \
--header 'Content-Type: application/json' \
--header 'REV-API-KEY: <YOUR_REV_API_KEY>' \
--header 'REV-APP-ID: <YOUR_REV_APP_ID>' \
--header 'REV-APPNAME: text-analysis' \
--data-raw '{
"text": "Today is a special day. I sent you an email earlier and shared my website link. Please use #ForBetterReach and feel free to contact me around 10 AM.",
"language": "en",
"translation": {
"target_language": "en",
"translation_domain": "generic"
},
"pii_redaction": {
"redact_pii_sub": "entity_name",
"redact_pii_types": []
},
"summary": {
"summary_model": "gemma2:2b",
"summary_type": "headline"
},
"entity_recognition": {
"entity_types": []
},
"sentiment": {
"level": "whole"
},
"content_moderation": {
"moderation_types": [
"hate_speech",
"profanity"
]
}
}'