Authentication
You'll need to authenticate your requests to access any of the endpoints in the Kayle API. In this guide, we'll look at how authentication works.
Using API keys
To authenticate your requests, you need to include an API key in the header of your request.
You can find your API keys in Developer Portal » API Keys.
cURL
curl -X POST https://api.kayle.ai/v1/moderate \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"text": "I am a good person", "type": "text"}'
Using an SDK
SDKs are not yet available—documentation for authenticating with SDKs will be available when SDKs are ready.