Device Settings API

Access & limitsAPI key needed · Light▾

This API answers with your own account data, so it needs your API key. Send it in an X-API-Key header, or as api_key= in the address. The limits below are the with-key ones.

5 minutesHourDay
Without a key303002,000
With a key1501,50010,000

Log in to create a free key on your profile page.

Every answer carries X-RateLimit-Remaining and X-RateLimit-Reset. Over a limit, the answer is error 429 with retry_after in seconds. Refused requests do not count.

GET POST Needs your API key JSON

Read and change the general settings of a Mercury V1 or Mercury Plus on your account, the same settings as the General page of the device's settings on the website. A change reaches the device exactly as one saved on the website does: it is queued and the device takes it on its next check in, which is within a few seconds while it is online. Only the general settings are offered; outputs, rules, the air brake, servos, WiFi and calibration are not.

GEThttps://www.altimetercloud.com/api/settings/mac

Requests

RequestWhat it does
GET ?mac=SERIALThe device, its current settings, the values its firmware accepts for each, and any change still waiting for it
GET ?mac=SERIAL&action=statusapplied, pending or offline
POST mac=SERIAL action=set name=value ...Change one or more settings. Add wait= (up to 30 seconds) to wait for the device to take it.
POST mac=SERIAL action=discardDrop a change still waiting

Send your key in an X-API-Key header. A change needs the device online: an offline device is refused and nothing is queued. Every value is checked against what that device's firmware accepts before anything is queued, and if any one is wrong nothing is changed.

The settings

Which ones a device offers depends on its type and firmware; the options in the read answer list exactly the values yours accepts.

NameSettingValues
sealevel_hpaSea level pressure870 to 1085 hPa
launch_detect_mLaunch detect heightMetres, from the list
sample_speed_hzSensor speedHz, from the list
sample_ratioSample ratio1, 2, 3, 4, 5, 10, 25, 50 (record every Nth sample); 10000, 10005, 10007, 10008, 10010 are the hybrid modes, every sample until after apogee then 1 in 3, 5, 7, 8 or 10
sample_rateSample rate (older firmware)32, 16, 11 per second; 15 hybrid
max_samplesMax samplesIn steps of 1000
recording_stopRecording stop1 auto, 9 seconds stable; 2 auto, 18 seconds stable; 3 manual, press the button
oversampling, iir_filter, pressure_filterThe pressure sensor's filtersAs on the settings page
lockout_time, lockout_changeLockout time and changeMilliseconds and metres on current firmware
sync_sensorsSync sensors1 off; 2 on
orientationOrientation0 text up; 1 text down; 2 side, I2C up; 3 side, I2C down; 4 on its back; 5 on its front; 9 automatic, where the firmware has it
angle_filterIMU filter (older firmware)0 Mahony; 1 Madgwick
launch_protectionAccidental launch protection0 off; 1400 1.4 G; 3000 3 G
startup_lock_sLaunch lock after power on0 to 999 seconds
fixed_temp_c, use_tempStatic temperature, and the MT1 sensor-50 to 60 °C; 0 off, 1 log only, 2 log and use
tagDevice tagUp to 16 letters, digits, spaces and _ - .
led_dimmer, battery_displayLED brightness and the battery barAs on the settings page
uartUART output on the GP pads0 off; 1 on
post_flight_powerAfter the flight1 sleep; 2, 3, 4 blink and eNOW for 10 minutes, 30 minutes or until the battery is empty; 5, 6, 7 eNOW only for the same; 8 eNOW for 5 minutes
maintain_power, enow_after_saveThe older firmware's after-flight settingsAs on the settings page
mini_chart, enow_ping_us, enow_at_starteNOW mini chart, ping interval and startup broadcastAs on the settings page
emodeSmart power mode1 eMode 1; 2 eMode 2

Example: change the tag and wait for it

curl -X POST https://www.altimetercloud.com/api/settings/ \
  -H "X-API-Key: YOUR_API_KEY" \
  -d mac=1051-DBEC-747C -d action=set -d tag=PAD3 -d launch_detect_m=10 -d wait=10
Response
{
  "success": true,
  "device": { "serial": "1051-DBEC-747C", "model": "mercuryv1", "firmware": "2.51",
              "tag": "PAD2", "online": true, "last_seen": "2026-11-26T14:02:11Z", "ping_age_s": 2 },
  "state": "applied",
  "queued": true,
  "changed": { "tag": { "from": "PAD2", "to": "PAD3" }, "launch_detect_m": { "from": 5, "to": 10 } },
  "settings": { ... },
  "note": "The device has taken the change"
}

Errors

CodeMeaning
401No key was sent, or it is not recognised
404That serial is not a device on the account that owns the key
405set and discard must be sent as a POST
409The device is offline, so nothing was queued
412Not a Mercury, or a setting or value is not accepted; the answer lists each one and why

Crediting AltimeterCloud

Free to use. If you use this API, or anything made from the answers, in a commercial product or service, credit AltimeterCloud with a link to www.altimetercloud.com at the point of use: on the screen, page or printout where the data appears, for example “Data from AltimeterCloud.com”. Any credits the data's own sources ask for, listed on this page, apply as well.