Authentication

Secure your API requests.

SafeComms uses API keys to authenticate requests. You can view and manage your API keys in the Dashboard.

Warning: Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.

Using your API Key

Pass your API key in the Authorization header using the Bearer scheme for direct HTTP requests, or configure it in the SDK client.

curl -X POST https://api.safecomms.dev/moderation/text \
  -H "Authorization: Bearer your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{"content": "text to check", "language": "en"}'