Skip to main content
POST
/
api
/
cameras
/
{cameraId}
/
connection
Connect to camera
curl --request POST \
  --url http://{host}:{port}/api/cameras/{cameraId}/connection \
  --header 'Content-Type: application/json' \
  --data '
{
  "mode": "remote",
  "username": "<string>",
  "password": "<string>",
  "reconnecting": "on"
}
'
{
  "success": true,
  "message": "<string>",
  "camera": {
    "connected": false,
    "model": "ILCE-7M4",
    "id": "D06CE05E3323"
  },
  "data": {}
}

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)

Body

application/json
mode
enum<string>
  • remote — Full control + auto-transfer of captured images to host PC
  • remote-transfer — Full control + explicit SD card file access
  • contents — SD card file access only (no shooting or settings control)
Available options:
remote,
remote-transfer,
contents
username
string

For network cameras

password
string

For network cameras

reconnecting
enum<string>

Auto-reconnect on disconnection

Available options:
on,
off

Response

Camera connected

Generic envelope returned by most camera operations. The shape of data varies per endpoint — most operations return an empty or null data; operations that return structured data document a specific shape. SDK-generated types can treat data as an opaque map for generic endpoints.

success
boolean
required
message
string
camera
object

Camera info embedded in API responses

data
object