ARIS API
The ARIS API lets a planning app send a target to a user’s ARIS rig: the rig slews to it, centers it by plate solve and, with a rotator, turns the camera to the framing angle. The app calls one HTTPS address with an API key the user makes in ARIS. The rig’s own safety checks and the owner’s approval apply to every request.
Base URL: https://mcp.arisastro.com/v1
The user makes a key at mcp.arisastro.com/keys: they sign in with their ARIS account, pick one rig, and copy the key (it starts ark_). A key reaches one rig. Making a new key for a rig replaces that rig’s old key.
Send the key as a bearer token:
Authorization: Bearer ark_…A new key starts at Watch only on the rig: it can test the connection but cannot slew. The owner opens ARIS, Settings → GUPPI → Telescopius (relay), and chooses Ask before motion (each slew waits for their approval in the ARIS app) or Full autopilot.
A key unused for 30 days stops working; the user makes a new one.
Browsers may call the API from any origin (CORS); the key is the only credential.
Test connection
Section titled “Test connection”GET /v1/rig
{ "status": "ok", "rig": { "id": "…", "name": "ARIS Pi" }, "online": true, "trust": "ask", "can_slew": true, "message": "Connected to ARIS Pi. Each slew waits for your approval in the ARIS app."}trust is watch, ask or autopilot. A good key whose rig is off answers 200 with online: false. A bad key answers 401.
Slew, center and rotate
Section titled “Slew, center and rotate”POST /v1/slew
{ "ra_deg": 314.75, "dec_deg": 44.33, "name": "NGC 7000", "rotation_deg": 12.5 }| Field | Required | Meaning |
|---|---|---|
ra_deg, dec_deg | yes | Frame center, J2000, in degrees |
rotation_deg | no | The camera’s angle on the sky, in degrees from north through east (0 to 360). Turns the camera after centering, on a rig with a connected rotator |
center | no | Center by plate solve; default true. Turning the camera needs it |
name | no | Your name for the target; the owner sees it on the approval card |
| Status | status | Meaning |
|---|---|---|
| 202 | pending | Waiting for the owner’s approval in the ARIS app; follow request_id |
| 200 | centering, slewing, … | Started (Full autopilot) |
| 403 | refused | The rig did not take it: the key is at Watch only (trust says so), or one of the limits below applies (message says which) |
| 409 | rejected | The rig refused it: below the horizon or the altitude floor, a sequence running |
| 503 | unavailable | The rig could not check it |
With rotation_deg, the answer carries rotation: { "deg": 12.5, "turns": true, "reason": null }. turns is true only when the rig said it will turn the camera; otherwise reason says why it will not, for example a rig whose ARIS needs an update first.
A centered slew needs the rig’s flat panel cover open. At Ask before motion, when the cover is closed, the request’s message and the owner’s approval card say the cover opens first, and approving opens it before the mount moves. On Full autopilot the rig refuses a centered slew while the cover is closed, and message says so. Rigs do this from their next ARIS update; before it, a rig refuses an approved slew while the cover is closed.
Follow a request
Section titled “Follow a request”GET /v1/requests/{request_id}: pending, approved, refused (approved, but the rig could not do it), failed, denied, expired (nobody answered in 10 minutes) or withdrawn.
approved means the owner approved and the rig started the slew. The API does not report whether the centering then succeeded: the plate solve needs stars in the frame.
Limits
Section titled “Limits”- A request waits 10 minutes for the owner, then expires.
- After the owner denies a request, the rig refuses new slews from that key for 5 minutes.
- A key can start up to 10 slews an hour.
- One request waits at a time: while one is pending, a different slew is refused, and the same slew again answers the waiting request.
Every answer carries message, a sentence written for your user.
Errors
Section titled “Errors”Every error answers { "status": "error", "error": "<code>", "message": "<a sentence for your user>" }:
bad_request(400): a field is missing or out of range.invalid_keyorkey_ended(401): the key is unknown, was replaced, or was disconnected in ARIS; the user makes a new one.not_found(404): the rig holds no request with that id (it forgets them when it restarts).rig_error(502): the rig answered something the API could not read.rig_unreachable(503): the rig did not answer.rig_learning_key(503): the rig has not heard of a new key yet; retry after theRetry-Afterseconds.