Skip to main content
POST
Upload Script Points Chunk

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

Request body for uploading script points to the device.

script_id
integer<int64>
required

Unique identifier for the script on the current device.

Example:

12345

upload_id
integer<uint32>
required

Unique identifier for this upload session.

Example:

1

chunk_id
integer<uint32>
required

Sequence number of this chunk (starting from 0 or 1).

Example:

0

points
object[]
required

Array of script points to upload.

total_chunks
integer<uint32>
required

Total number of chunks in this upload session.

Example:

1

total_points
integer<uint32>
required

Total number of points in the script.

Example:

100

Response

OK

Standard success response.

message
string

Response message.

Example:

"ok"