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

# Go back to a version

> Put back the steps of an older published version.

> [!NOTE]
>
> This endpoint is for the VIP plan only. Other plans get a `403`. See [Plan access](https://docs.nedzo.ai/api-reference/introduction.md#plan-access).

Put back the steps of an older version. This saves a new version and unpublishes the workflow. Check it and [publish](https://docs.nedzo.ai/api-reference/workflows/publish.md) it again.

The API cannot bring back a step that turns DND off. If the old version has such a step, we answer `400`: "This workflow has a step that turns DND off. Remove that step in the dashboard first." Pick another version.

To see the version numbers, [list the versions](https://docs.nedzo.ai/api-reference/workflows/versions.md).

## Path Parameters

**id** `string` *required*

The workflow's id.

## Body

**version** `integer` *required*

The version number to go back to.

```bash cURL theme={null}
curl -X POST "https://api.nedzo.ai/v1/workflows/123e4567-e89b-12d3-a456-426614174000/revert" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "version": 2 }'
```

It answers with the workflow, the same as [Get a workflow](https://docs.nedzo.ai/api-reference/workflows/get.md).

```json Response theme={null}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "workspaceId": "223e4567-e89b-12d3-a456-426614174000",
  "name": "Welcome text",
  "isPublished": false,
  "isActive": true,
  "version": 4,
  "publishedAt": "2026-10-11T09:00:00Z",
  "createdAt": "2026-10-01T09:00:00Z",
  "updatedAt": "2026-10-12T09:00:00Z",
  "nodes": [
    { "id": "start", "type": "contactCreated", "parentId": null, "pathId": null, "config": {}, "position": { "x": 0, "y": 0 } },
    { "id": "text", "type": "sendSms", "parentId": "start", "pathId": null, "config": { "phoneNumberId": "323e4567-e89b-12d3-a456-426614174000", "message": "Hi {{firstName}}!" }, "position": { "x": 0, "y": 120 } }
  ]
}
```

## Errors

| Status | When |
| - | - |
| `400` | The workflow id is not a valid UUID, `version` is missing or below 1, or the version has a step that turns DND off. |
| `402` | The account has no plan, or its subscription is not active. |
| `403` | Your plan is not VIP, or workflows are not on your plan. |
| `404` | No workflow has this id, it is not in this key's scope, or the version does not exist. |
| `502` | We could not check your plan. Nothing changed. Try again. |


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