ChikaD Consultation

Developers

Embed video consultations on any website and manage sessions via the REST API.

Embed widget

Add the consultation widget to your website with a single script tag. Clients see a "Start consultation" button and join the queue or book a slot.

<script src="https://chikad.chat/embed.js" data-host="YOUR_HOST_ID"></script>

Configuration

AttributeDescription
data-hostYour unique host identifier (required)
data-themeWidget theme: dark or light. Default: dark
data-langLanguage: en, ru, fr, es, de, ja
data-positionButton position: bottom-right, bottom-left

REST API

Base URL: https://chikad.chat/api/consultation

Authentication via Authorization: Bearer YOUR_API_KEY header.

Endpoints

GET /queue

Get current queue state — positions, estimated wait time, active sessions.

POST /queue/join

Add a client to the walk-in queue. Returns queue position and session token.

POST /session/accept

Accept the next client in queue. Returns WebRTC connection details.

POST /session/reject

Reject a queued client with an optional message.

GET /availability

Get host availability schedule for calendar booking.

POST /availability

Update host availability windows.

POST /booking

Create a calendar booking for a specific time slot.

DELETE /booking/:id

Cancel an existing booking.

Example

// Get current queue fetch('https://chikad.chat/api/consultation/queue', { headers: { 'Authorization': 'Bearer YOUR_API_KEY' } }) .then(res => res.json()) .then(data => { console.log(data.queue_size); console.log(data.estimated_wait); });

Support

Full API documentation available upon request during early access. Contact support@chikad.chat for API keys and integration support.