Developer Portal

Integrate OKDriver's powerful APIs into your applications. Build amazing driver management and assistant features.

Powerful API Features

Everything you need to build comprehensive driver management solutions

API Key Authentication

Secure API key-based authentication with subscription validation

Real-time WebSocket

WebSocket support for continuous real-time drowsiness detection with state tracking

RESTful API

Standard REST endpoints for image upload and base64 detection

AI Assistant

OkDriver Assistant with Hinglish support and text-to-speech audio responses

API Documentation

Explore our comprehensive API endpoints and integration guides

DMS API Endpoints

POST/api/detect-image

Upload an image file for drowsiness detection. Supports JPG, PNG, WebP formats.

Parameters:

file (multipart/form-data)

Example Request:

{
  "file": "[Image file via FormData]"
}
POST/api/detect-base64

Send base64 encoded image for drowsiness detection

Parameters:

image (base64 string)

Example Request:

{
  "image": "data:image/jpeg;base64,/9j/4AAQSkZJRg..."
}
WebSocket/ws

Real-time continuous frame detection with state tracking. Send frames for continuous monitoring.

Parameters:

api_key (query param or header)

Example Request:

{
  "connection": "ws://localhost:8001/ws?api_key=YOUR_API_KEY",
  "messageTypes": [
    "frame",
    "ping",
    "reset"
  ]
}
GET/health

Check API health and model availability (no authentication required)

Parameters:

Example Request:

{}

Ready to Get Started?

Join thousands of developers building amazing driver management solutions with OKDriver APIs