AdminHow many days of recordings this camera actually has in storage (admin)

How many days of recordings this camera actually has in storage (admin)

curl -X GET "https://api.spkey.co/admin/rtsp-cameras/example_string/recordings/coverage" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -H "X-API-Key: YOUR_API_KEY"
{
  "cameraId": "example_string",
  "storageConfigured": true,
  "hasRecordings": true,
  "oldestStartedAt": "null",
  "coverageDays": 25,
  "retentionDays": 42,
  "recordingEnabled": true,
  "lifecycleDays": "null",
  "checkedAt": "example_string"
}
GET
/admin/rtsp-cameras/{id}/recordings/coverage
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.

JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.
API Key (header: X-API-Key)
X-API-Keystring
Required

API key for B2B organization access. Provided during organization onboarding.

API key for B2B organization access. Provided during organization onboarding.
path
idstring
Required

RTSP camera UUID

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.

header
X-API-Keystring
Required

API Key for authentication. API key for B2B organization access. Provided during organization onboarding.

Path Parameters

idstring
Required

RTSP camera UUID

Responses

cameraIdstring
Required
storageConfiguredboolean
Required
hasRecordingsboolean
Required
oldestStartedAtstring,null
Required
coverageDaysinteger
Required
retentionDaysinteger
Required
recordingEnabledboolean
Required
lifecycleDaysinteger,null
Required
checkedAtstring
Required