Skip to main content
POST
/
api
/
cameras
/
{cameraId}
/
sd-card
/
slot
/
{slotNumber}
/
files
/
{contentId}
/
{fileId}
/
download
Download file from SD card
curl --request POST \
  --url http://{host}:{port}/api/cameras/{cameraId}/sd-card/slot/{slotNumber}/files/{contentId}/{fileId}/download \
  --header 'Content-Type: application/json' \
  --data '
{
  "save_path": "/Users/me/Pictures/captures"
}
'
{
  "success": true,
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://crsdk.app/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

cameraId
string
required

Camera identifier (e.g. D10F60149B0C)

slotNumber
enum<integer>
required

SD card slot number (1 or 2)

Available options:
1,
2
contentId
integer
required

SDK content identifier from listSDCardFiles response

fileId
integer
required

SDK file identifier from listSDCardFiles response (always 0 in contents-transfer mode)

Body

application/json

Optional save path override. If omitted, uses the connection-time SetSaveInfo path.

save_path
string

Directory path on host PC to save the file

Example:

"/Users/me/Pictures/captures"

Response

Download accepted (async)

Generic envelope for async operations that have been accepted but not yet completed. Watch for the corresponding SSE event (downloadComplete, transferProgress) to learn when the operation finishes.

success
boolean
required
message
string
required