| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
The Snapshot API endpoint allows third-party developers to retrieve camera snapshots at a specific timestamp.
The following workflow outlines the necessary steps to authenticate, list available devices and cameras, and fetch snapshots.
Snapshot Retrieval Workflow
-
Authenticate
Obtain an access token. -
List Devices
Identify the available devices and their deviceId. -
List Cameras
Fetch cameras associated with a specific deviceId. -
Retrieve a Snapshot
Request a snapshot using the cameraId and desired timestamp as outlined below.
Sample Request
curl --request GET \
--url 'https://api-prod-us-west-2.solinkcloud.com/v2/cameras/{cameraId}/snapshot?timestamp={timestamp}' \
--header 'Authorization: Bearer {ACCESS_TOKEN}' \
--header 'x-api-key: {API_KEY}'Sample Response
A successful request returns the binary data of a JPEG image, which represents the snapshot taken at the specified timestamp.
Handle a 429 Response
The endpoint returns 429 Too Many Requests when the device for the camera is busy with too many snapshot requests. The response does not contain an image. The response body is JSON:
{"message": "Too Many Requests", "requestId": "..."}
Wait a short time, then send the request again. If the endpoint returns 429 again, wait longer before each new attempt (exponential backoff).
The API also returns 429 when your API key is over its rate limit. For the limits, see Rate Limiting.
200