Developer Docs

Authentication

All API requests require authentication via an API key. Include your key in the Authorization header.

API Key Authentication

All API requests must include an API key in the Authorization header. You can create and manage API keys from your dashboard under Settings > API Keys.

Request Header

Authorization: Bearer sk_live_your_api_key_here

Example: Sending a Request

cURL

curl -X GET https://chatloka.net/api/v1/conversations \
  -H "Authorization: Bearer sk_live_your_api_key_here" \
  -H "Accept: application/json"

JavaScript (fetch)

const response = await fetch('https://chatloka.net/api/v1/conversations', {
  headers: {
    'Authorization': 'Bearer sk_live_your_api_key_here',
    'Accept': 'application/json',
  },
});

const data = await response.json();

Python (requests)

import requests

response = requests.get(
    'https://chatloka.net/api/v1/conversations',
    headers={
        'Authorization': 'Bearer sk_live_your_api_key_here',
        'Accept': 'application/json',
    }
)

data = response.json()

API Key Types

Type Description
full Full access to all API endpoints based on assigned scopes.
limited Restricted access. Only the abilities you explicitly assign.
webhook For webhook integrations. Limited to webhook-related scopes.
bot For bot flow integrations. Limited to bot-related scopes.

Error Responses

If you send a request without a valid API key, you'll receive a 401 Unauthorized response:

{
  "message": "Unauthenticated."
}
Start Today

Stop Losing Customers
to Slow Responses

Every minute you wait is revenue walking out the door. Join hundreds of businesses who transformed their customer communication with ChatOn.

50%
Faster Response
24/7
AI Support
40%
Higher Conversion
No credit card required
Setup in 5 minutes
Cancel anytime

βœ“ 30-day money-back guarantee

πŸͺ We use cookies

We use cookies and similar technologies to improve your experience, analyze traffic, and personalize content. By clicking "Accept All", you consent to our use of cookies. Privacy Policy & Cookie Policy.

Cookie Preferences

Choose which cookies you want to allow. Essential cookies are always required for the website to function.

Essential Cookies

Required for the website to function. Cannot be disabled.

Always On

Analytics Cookies

Help us understand how visitors interact with our website by collecting anonymous data.

Marketing Cookies

Used to track visitors across websites to display relevant advertisements.

βœ… Preferences saved!