Skip to main content
Initialize cloud sync with credentials
curl --request POST \
  --url https://api.example.com/sync/init \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>",
  "password": "<string>",
  "machine_id": "<string>",
  "sync_interval_secs": 123
}
'
{
  "success": true,
  "is_new_user": true,
  "machine_id": "<string>"
}

Body

application/json
token
string
required

API token for cloud authentication

password
string
required

Password for encryption key derivation

machine_id
string | null

Machine ID for this device (optional, will be generated if not provided)

sync_interval_secs
integer | null

Sync interval in seconds (optional, defaults to 300)

Response

Sync initialized

success
boolean
required
is_new_user
boolean
required
machine_id
string
required