PTZ command

Execute a single PTZ (Pan-Tilt-Zoom) command on an camera that belongs to the organization
associated with the API key. One endpoint drives every action: set action to the numeric PTZ
command and pass the matching parameters under meta.

The command is dispatched asynchronously to the edge device; the response is held open until the
edge replies (up to 15 seconds). Successful responses return {} for ack-only actions, or PTZ
fields (status, presets, preset, test) for actions that produce payload data.

Axis ranges: pan/tilt are normalized to [-1, 1]; zoom velocity/delta are signed [-1, 1]; zoom
absolute position is [0, 1]. PresetToken is HOME or a numbered token 1..10.

action → required meta (a mismatch returns HTTP 400 with a per-action reason):

actionnamemeta
0PtzMove{ speed:{x,y,z}, timeout, zoomTimeout? }
1GotoHomePosition
2SetHomePosition
3GetStatus— (returns status)
4PtzStop
5ContinuousMove{ Velocity:{x,y,z}, Timeout }
6AbsoluteMove{ Position:{x,y,z}, Speed:{x,y,z} }
7RelativeMove{ Translation:{x,y,z}, Speed:{x,y,z} }
8StopMove{ PanTilt:boolean, Zoom:boolean }
9SetPreset{ PresetToken, PresetName }
10GetPresets— (returns presets)
11GotoPreset{ PresetToken, Speed?:{x,y,z} }
12RemovePreset{ PresetToken }
13PtzTest— (non-destructive probe, returns test)

driver is an optional override (Onvif=0, Vivotek=1, Uniview=2, Vivotek2=3, Axis=4, Hanwha=5).
Omit it to let the edge resolve the driver automatically. Not every brand supports every action —
HTTP 501 is the expected response for unsupported operations (e.g. absolute move on Hanwha); run
PtzTest first to discover per-camera capabilities.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Camera ID to control. Must belong to the organization associated with the API key.

Body Params
number
enum
required

PTZ action to execute. The required meta shape depends on this value (see the endpoint description).

meta

Action-specific parameters. Omit for actions that take no parameters (GotoHomePosition, SetHomePosition, GetStatus, PtzStop, GetPresets, PtzTest). A 400 is returned when the shape does not match the action.

number
enum

Optional PTZ driver override. Values are NOT alphabetical: Onvif=0, Vivotek=1, Uniview=2, Vivotek2=3, Axis=4, Hanwha=5. Omit to let the edge resolve the driver automatically.

Allowed:
Responses

400

Invalid request. The meta does not match the action.

401

Missing or invalid API key.

403

Organization not allowed by this token.

404

Camera not found in the organization.

408

Request timed out waiting for the edge device response.

500

Internal server error.

501

PTZ command not supported by the camera.

502

Camera unreachable from the edge device.

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json