Skip to main content

Authentication

All requests to the Kaya AI Developer API must be authenticated using your personal API key and an organization slug.

Required Headers

Include the following headers in your HTTP requests:

HeaderDescription
X-Api-KeyYour personal API key (created in the Kaya dashboard).
X-Org-SlugThe slug of the organization you are acting upon.

Example Request

curl -X GET "https://api.withkaya.com/api/dev/workspace" \
-H "X-Api-Key: your_api_key_here" \
-H "X-Org-Slug: your_organization_slug"

Security Best Practices

  • Keep your API key secret: Never share your API key or commit it to version control.
  • Rotate keys regularly: If you suspect a key has been compromised, revoke it and create a new one in the dashboard.
  • Use HTTPS: Always use the secure https:// endpoint to communicate with the API.