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.

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

Was this page helpful?