*** id: b275d644-99bb-4a22-a2ea-d485dc866392 title: Relay.Calling.RecordAction slug: /python/reference/calling/actions/record description: The Record Action is used to record a call. max-toc-depth: 3 ---------------- [record-async]: /docs/server-sdk/v2/python/reference/calling/call#record_async [relay-calling-recordresult]: /docs/server-sdk/v2/python/reference/calling/results/record [relay-calling-stopresult]: /docs/server-sdk/v2/python/reference/calling/results/stop ## Relay.Calling.RecordAction This object returned from [`record_async`][record-async] method that represents a recording currently active on a call. ### Properties | Property | Type | Description | | ------------ | ---------------------------------------------------------- | ----------------------------------------- | | `result` | [`Relay.Calling.RecordResult`][relay-calling-recordresult] | Final result of recording. | | `state` | `string` | Current state of recording. | | `completed` | `boolean` | Whether the recording has finished. | | `payload` | `dict` | Payload sent to Relay to start recording. | | `control_id` | `string` | UUID to identify the recording. | ### Methods #### stop Stop the action immediately. **Parameters** *None* **Returns** `coroutine` - Coroutine that will return a [`Relay.Calling.StopResult`][relay-calling-stopresult] object. **Examples** Start recording the call and stop it after 10 seconds: ```python import asyncio # to use sleep action = await call.record_async(stereo=True) await asyncio.sleep(10) await action.stop() ```