Skip to main content
Version: v8.2

Start, stop, pause or resume recording of a call

PUT

/org/{tenant_code}/v2/calls/{uid}/recording

Platform support: MT and CC

Sets the recording state of the live call identified by uid. This is the write side of the record_status field returned by the list and fetch endpoints, and it uses the same vocabulary, so the four recording operations are expressed as a target state rather than as separate actions:

statusEffect
RecordingActiveStarts recording, or resumes it if paused
RecordingPausedPauses an active recording
NotRecordingStops recording

The request is idempotent: setting the state the call is already in succeeds and does nothing. Pausing a call that is not being recorded (NotRecordingRecordingPaused) yields 422 Unprocessable Entity.

202 Accepted means the change was requested on the PBX, not that it has taken effect — the recording state flips when Asterisk confirms it. Re-read the call, or watch the event_call_* event stream, to observe the resulting record_status.

Scope rules match the other single-call endpoints: a user token may only control recording on its own extension's call; an API key / service may control any call in the tenant. A user token is additionally subject to the Instant Recording enhanced service check (see 403); an API key / service is not.

Request

Responses

Recording state change accepted