> ## Documentation Index
> Fetch the complete documentation index at: https://help.cloudtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Restore a call flow version

> Makes the version the live flow, through the same checks as [Replace a number's call flow](/api-reference/call-flows/replace-a-numbers-call-flow). **It answers the next call**, so a mistake reaches callers at once. The new version has `source: restore`, and `restoredFromVersionId` names the version you restored. Send `If-Match` with the `ETag` of the live flow.

- Steps whose `id` the live flow still has, with the same type, keep their `id`. Every other step of the version comes back as a new step with a new `id`, and the references to it follow it.
- HTTP Request header values come back from the version. A version older than 7 days that is not among the number's 5 newest versions (drafts not counted) may keep only `valueSet: true` for a header, without its value: the next save of the flow after that removes the values. Drafts always keep theirs. For such a header, the restore takes the value of the live step with the same `id`, from its header with the same `name`. When the live flow has none, because that step or header is gone or its value is empty, the restore is `422 CALL_FLOWS.HEADER_VALUE_REQUIRED` and changes nothing.
- Jump to steps in other numbers that were deleted when the version was replaced do not come back; the answer warns about each one with `JUMP_TO_NOT_RESTORED`.



## API Specification

The full API specification for this endpoint is available in the [documentation index](https://help.cloudtalk.io/llms.txt).


## Related topics

- [Delete a number's call flow](https://help.cloudtalk.io/api-reference/call-flows/delete-a-numbers-call-flow.md)
- [Build call flows with the API](https://help.cloudtalk.io/guides/call-flows/build-with-api.md)
- [Replace a number's call flow](https://help.cloudtalk.io/api-reference/call-flows/replace-a-numbers-call-flow.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.