Skip to main content
POST
Upload Haptic Script

Authorizations

Authorization
string
header
required

Short-lived session token obtained from POST /api/sessions/v2. Send it as Authorization: Bearer <session_token> together with the X-Device-Key: <device-key> header identifying the target device.

Headers

X-Device-Key
string
required

Device Key (4 BIP39 words) identifying the target device. Obtain it from POST /device/otp/confirm/v2.

Pattern: ^[a-z]+-[a-z]+-[a-z]+-[a-z]+$
Example:

"alpha-bravo-charlie-delta"

Body

application/json
name
string
required

The name of the funscript

Example:

"My Haptic Script"

content
string
required

The funscript content as a JSON string

Example:

"{\"version\":\"1.0\",\"inverted\":false,\"range\":100,\"actions\":[{\"pos\":0,\"at\":0},{\"pos\":100,\"at\":1000}]}"

Response

OK