Authentication & Idempotency
Every integration with Kota requires server-side API calls to sync employer and employee data. This guide covers authentication and best practices for working with the Kota API.
Authentication
The Kota API uses API keys to authenticate requests. Test mode secret keys have the prefix pk_test_ and live mode secret keys have the prefix pk_live_.
Your API keys carry many privileges. Keep them secure and never share them in publicly accessible areas such as GitHub or client-side code.
Example API call:
Read more about authentication
Idempotent Requests
Kota recommends adding an idempotency key to all POST requests. Use a unique key, such as a universally unique identifier (UUID), to safely retry requests if you encounter network errors.
Example idempotent API call:
Read more about idempotent requests

