ReferenceREST API
REST API: Images and Motion JPEG. Generated from the OpenAPI document.
List the cameras
GET /v1/cameras
Token: required · Lease: not needed
| Status | Meaning | Body |
|---|---|---|
| 200 | The cameras | array of CameraInfo |
| 401 | Missing or wrong token | ErrorBody |
Take a picture
GET /v1/cameras/{camera}/image
Waits up to 3 s for a fresh JPEG. X-Image-Time is the robot time it was taken.
Token: required · Lease: not needed
| Parameter | In | Type | Required | Meaning |
|---|---|---|---|---|
camera | path | CameraName | yes | top or bottom |
| Status | Meaning | Body |
|---|---|---|
| 200 | A fresh JPEG; X-Image-Time is the robot time it was taken | image/jpeg |
| 401 | Missing or wrong token | ErrorBody |
| 404 | Unknown camera | ErrorBody |
| 503 | No image within 3 s (vision not running?) | ErrorBody |
Stream a camera
GET /v1/cameras/{camera}/stream
Motion JPEG; works as the src of an <img> with ?access_token=.
Token: required · Lease: not needed
| Parameter | In | Type | Required | Meaning |
|---|---|---|---|---|
camera | path | CameraName | yes | top or bottom |
fps | query | number | no | Frames per second, 0.5 to 15 (default 5). (0.5 to 15) |