AdminDelete RTSP camera aggregate

Delete RTSP camera aggregate

Admin-only cleanup for a RTSP camera. Optionally archives + deletes the R2 event stream, removes the DO instance, and asks the spk-vms worker to stop the live stream. Requires dual auth (X-Admin-API-Key + JWT with @smartphonekey.com domain).

curl -X DELETE "https://api.spkey.co/admin/cleanup/rtsp-cameras/example_string?mode=DELETE_DO_ONLY" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -H "X-API-Key: YOUR_API_KEY"
{
  "success": true,
  "cameraId": "example_string",
  "mode": "example_string",
  "operations": [
    "null"
  ],
  "deletionSummary": "example_string",
  "auditLogPath": "example_string",
  "duration": 3.14,
  "errors": [
    "example_string"
  ]
}
DELETE
/admin/cleanup/rtsp-cameras/{cameraId}
DELETE
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.
query
modestring
Required

Deletion mode: DELETE_DO_ONLY preserves R2 events, DELETE_DO_AND_EVENTS archives and removes everything

Options: DELETE_DO_ONLY, DELETE_DO_AND_EVENTS
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

cameraIdstring
Required

RTSP camera UUID

Query Parameters

modestring
Required

Deletion mode: DELETE_DO_ONLY preserves R2 events, DELETE_DO_AND_EVENTS archives and removes everything

Allowed values:DELETE_DO_ONLYDELETE_DO_AND_EVENTS

Responses

successboolean
Required
cameraIdstring
Required
modestring
Required
operationsstring[]
Required
deletionSummarystring
auditLogPathstring
Required
durationnumber
Required
errorsstring[]
Required