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

# List data migration flows

> List the automation flows that can be migrated from one of your users

This endpoint returns the automation flows of one user, for `flow_ids` in [Preview data migration](https://docs.autocalls.ai/api-reference/white-label/preview-data-migration.md) and [Start data migration](https://docs.autocalls.ai/api-reference/white-label/start-data-migration.md). It is the **Automate Flows** list of the Data Migration page of your administration panel, once a source user is selected. A user without an automation workspace has no flows: the list is empty and `complete` is `true`.

> [!NOTE]
>
> This endpoint is available to the **account owner** (with an active plan) and to team members with **Platform Admin**. Other users receive a 403 Forbidden error. The owner's own account can be read only by the owner and by team members with **Allow impersonate owner**. Any other user, and a user outside your platform, returns 404.

### Long lists

The list stops at 1000 flows, or after 20 seconds. `complete` is then `false`, and `reason` says why:

* `max_pages`: the user has more than 1000 flows;
* `budget`: the 20 seconds ran out;
* `stalled` or `failed`: the workspace could not be read to the end. Try again later.

A flow does not have to be in this list to be migrated: `flow_ids` accepts any flow of the source user's workspace, and each one is checked when you preview or start the migration.

Flows behind the assistants' webhooks are copied with their assistants (see `automate_flows` in [Get data migration items](https://docs.autocalls.ai/api-reference/white-label/get-data-migration-items.md)), so you do not need to list them in `flow_ids`.

### Path Parameters

**id** `integer` *required*

The ID of the source user, from [List data migration users](https://docs.autocalls.ai/api-reference/white-label/list-data-migration-users.md).

### Response

**data** `object`

The user's flows

**data properties**

**flows** `object[]`

The flows, newest first: `id`, `name`, and `status` (`enabled` or `disabled`)

**complete** `boolean`

`false` when the list stopped early

**reason** `string | null`

Why the list stopped early, as described above, or `null` when it is complete

```json 200 Response theme={null}
{
  "data": {
    "flows": [
      { "id": "Ab3xK9pQ2mZ7", "name": "Lead follow-up", "status": "enabled" },
      { "id": "Qw8eR4tY6uI1", "name": "Old intake", "status": "disabled" }
    ],
    "complete": true,
    "reason": null
  }
}
```

```json 200 No Workspace theme={null}
{
  "data": {
    "flows": [],
    "complete": true,
    "reason": null
  }
}
```

```json 200 Stopped Early theme={null}
{
  "data": {
    "flows": [
      { "id": "Ab3xK9pQ2mZ7", "name": "Lead follow-up", "status": "enabled" }
    ],
    "complete": false,
    "reason": "max_pages"
  }
}
```

```json 401 Unauthenticated theme={null}
{
  "message": "Unauthenticated."
}
```

```json 403 Not Administrator theme={null}
{
  "message": "You are not an administrator."
}
```

```json 403 No Data Migration Access theme={null}
{
  "message": "You do not have access to data migration."
}
```

```json 404 User Not Found theme={null}
{
  "message": "User not found."
}
```

```json 429 Too Many Requests theme={null}
{
  "message": "Too Many Attempts."
}
```

```json 429 Platform Limit theme={null}
{
  "message": "Too many data migration requests on your platform. Try again in 42 seconds."
}
```

### Rate limit

The data migration endpoints count toward the limit of 60 requests per minute for each account that the administration endpoints share. Listing flows also has its own limit: 10 per minute for each account, and 10 per minute for your whole platform, counted together for the API, the AI connector and the Data Migration page. Above a limit it returns `429`, and the `Retry-After` response header tells you how many seconds to wait.

### Example

```bash theme={null}
curl -X GET https://app.autocalls.ai/api/white-label/data-migration/users/12/flows \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
```


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