---
id: neko-api
title: "Neko API Reference"
description: "Neko uses WebRTC and WebSocket besides REST API to provide real-time video streaming, interactive collaboration, and remote desktop functionality."
sidebar_label: Introduction
sidebar_position: 0
hide_title: true
custom_edit_url: null
---
import ApiLogo from "@theme/ApiLogo";
import Heading from "@theme/Heading";
import SchemaTabs from "@theme/SchemaTabs";
import TabItem from "@theme/TabItem";
import Export from "@theme/ApiExplorer/Export";
Neko uses WebRTC and WebSocket besides REST API to provide real-time video streaming, interactive collaboration, and remote desktop functionality.
### Core Technologies
- **Video Streaming over WebRTC**
- Neko leverages **WebRTC** for real-time, low-latency, high-quality video and audio streaming.
- Keyboard and mouse events are transmitted over the same WebRTC connection for seamless interaction.
- **Real-Time Signaling and Communication over WebSocket**
- **WebSocket** is used for sSignaling in WebRTC (e.g., session establishment, ICE candidate exchange).
- Live chat, session updates, and keyboard/mouse fallback are handled over WebSocket.
- **REST API for Everything Else**
- **Authentication & Session Management** - Secure user authentication and session handling.
- **Room and User Management** - Creating, modifying, and controlling user access to rooms.
- **Desktop Controls** - Adjusting screen configurations, managing keyboard and mouse events.
- **System Health & Metrics** - Retrieving system health checks and operational insights.
### How It All Works Together
1. **WebRTC** handles media streaming for **real-time video, audio and data**.
2. **WebSocket** ensures a **persistent, bidirectional** connection for low-latency interactions.
3. **REST API** provides **fine-grained control** over user access, and room configuration.
For more details, refer to the full API documentation.
Authentication using a session cookie.
Security Scheme Type:
|
apiKey
|
Header parameter name:
|
NEKO_SESSION
|
Authentication using a Bearer token.
Security Scheme Type:
|
http
|
HTTP Authorization Scheme:
|
bearer
|
Authentication using a token passed as a query parameter.
Security Scheme Type:
|
apiKey
|
Header parameter name:
|
token
|