Documentation Index
Fetch the complete documentation index at: https://docs.getmelody.io/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
Welcome to the Haptics Docs API! You can use our API to access Haptics SDK endpoints for controlling compatible haptic devices. All API requests must include the header:Base URL
All requests are sent to a single production endpoint:| Environment | Base URL | Description |
|---|---|---|
| Production | https://api.getmelody.io | Live Haptics SDK API |
Authentication & Security
The Haptics SDK API uses JWT bearer authentication. Authenticate your requests using:Authorizationmust use theBearerscheme.- Requests with missing or invalid tokens will return
401 Unauthorizedfor protected endpoints.
Making Requests
The API supports standard REST semantics:| Method | Purpose |
|---|---|
| GET | Query device or session state |
| POST | Send real‑time motion commands, start/stop modes, upload scripts, generate OTP |
| PUT/PATCH | Update device or session configuration |
| DELETE | Stop playback, clear sessions, or disconnect |
Example request
DeviceInfo, HapticPoint, etc.
Core API Domains
Device Information
- Inspect device details
- Query active session state
- Update device configuration
- Set communication mode (BLE or WiFi)
Haptic Direct Control
- Send time‑based motion commands
- Move device to a target position within a defined time
- Suitable for custom timeline-driven engines
Haptic Points Stream (HPS)
- Stream timestamped motion points
- Automatic velocity smoothing
- Ideal for real‑time high‑frequency control
Haptic Script Control (Melody Playback)
- Built for video‑to‑sensation scripting
- Upload/assign motion scripts
- Controls: start, stop, pause, seek
- Server orchestrates timeline playback
Haptic Loop Control
- Define motion min/max range
- Movement loops automatically
- Lightweight continuous patterns
One‑Time Password (OTP)
- Secure short‑lived pairing secrets
- Generate and confirm OTP during device binding
Maintenance & Debug
- Remote maintenance commands
- Diagnostics and device status inspection
- Debug or log retrieval if implemented and permitted by device
For full endpoint, schema, and parameter details, jump into the Melody API Reference — each tab includes deeper context, practical examples, and detailed request/response insights.