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 minutes | Hour | Day | |
|---|---|---|---|
| Without a key | 30 | 300 | 2,000 |
| With a key | 150 | 1,500 | 10,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.
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.
macRequests
| Request | What it does |
|---|---|
GET ?mac=SERIAL | The device, its current settings, the values its firmware accepts for each, and any change still waiting for it |
GET ?mac=SERIAL&action=status | applied, 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=discard | Drop 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.
| Name | Setting | Values |
|---|---|---|
sealevel_hpa | Sea level pressure | 870 to 1085 hPa |
launch_detect_m | Launch detect height | Metres, from the list |
sample_speed_hz | Sensor speed | Hz, from the list |
sample_ratio | Sample ratio | 1, 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_rate | Sample rate (older firmware) | 32, 16, 11 per second; 15 hybrid |
max_samples | Max samples | In steps of 1000 |
recording_stop | Recording stop | 1 auto, 9 seconds stable; 2 auto, 18 seconds stable; 3 manual, press the button |
oversampling, iir_filter, pressure_filter | The pressure sensor's filters | As on the settings page |
lockout_time, lockout_change | Lockout time and change | Milliseconds and metres on current firmware |
sync_sensors | Sync sensors | 1 off; 2 on |
orientation | Orientation | 0 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_filter | IMU filter (older firmware) | 0 Mahony; 1 Madgwick |
launch_protection | Accidental launch protection | 0 off; 1400 1.4 G; 3000 3 G |
startup_lock_s | Launch lock after power on | 0 to 999 seconds |
fixed_temp_c, use_temp | Static temperature, and the MT1 sensor | -50 to 60 °C; 0 off, 1 log only, 2 log and use |
tag | Device tag | Up to 16 letters, digits, spaces and _ - . |
led_dimmer, battery_display | LED brightness and the battery bar | As on the settings page |
uart | UART output on the GP pads | 0 off; 1 on |
post_flight_power | After the flight | 1 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_save | The older firmware's after-flight settings | As on the settings page |
mini_chart, enow_ping_us, enow_at_start | eNOW mini chart, ping interval and startup broadcast | As on the settings page |
emode | Smart power mode | 1 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
{
"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
| Code | Meaning |
|---|---|
401 | No key was sent, or it is not recognised |
404 | That serial is not a device on the account that owns the key |
405 | set and discard must be sent as a POST |
409 | The device is offline, so nothing was queued |
412 | Not 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.



















