Upload Bodycam Recording

Upload a bodycam recording clip to Sonoran CAD.

circle-info

This API endpoint is available on Free and higher Sonoran CAD plans. The rolling 24 hour upload allowance depends on your plan. For more information, see our pricing.

Use this endpoint to upload a single bodycam clip into Sonoran CAD's bodycam recordings system.

Upload Bodycam Recording

POST https://api.sonorancad.com/upload

Request Type

multipart/form-data

Form Fields

Name
Type
Required
Description

file

file

yes

A single .webm clip to upload.

community

string

yes

Your community ID.

account

string

yes

The user's account UUID.

sessionId

string

yes

The user's active session UUID.

username

string

yes

The user's Sonoran CAD username.

type

string

yes

Must be bodycam.

durationMs

number

yes

Clip duration in milliseconds. Must be between 1 and 120000.

identId

string

no

Identifier ID associated with the clip.

unitNumber

string

no

Unit number to store with the recording metadata.

unitLocation

string

no

Unit location to store with the recording metadata.

Upload Limits

Limit
Value

Max files per request

1

Allowed file type

.webm

Max file size

6000000 bytes (6 MB)

Max clip duration

120000 ms (120 seconds)

Bodycam uploads are also limited by your community's rolling 24 hour plan allowance:

Plan
Max uploaded bodycam minutes per 24 hours

Free

10

Standard

100

Pro

1000

Frontend Video Target

The backend validates the file type, file size, and duration. It does not directly reject uploads by resolution or frame rate.

To match the built-in Sonoran CAD frontend bodycam flow and stay within the 6 MB upload limit, send clips using these target settings:

Setting
Target

Resolution

960x540

Frame rate

10 FPS

Format

webm

The built-in frontend bodycam capture requests 960x540 at 10 FPS, and the recording uploader encodes clips as WebM with a 300000 bps video bitrate and 64000 bps audio bitrate. Third-party integrations should match those settings as closely as possible.

Last updated

Was this helpful?