# Export tasks

Configure export targets, create export tasks, and obtain exported files. This page covers export-task creation, status, and reruns; it does not cover imports or connector-file management.

## Prerequisites

Prepare credentials that can access the target workspace, the data objects to export, and resources required by the export target. For service endpoints, authentication, and general request formats, see [Make your first AI Studio API call](https://omnifabric.cloudsigma.com/docs/developer/quickstart/index.html.md).

Before creating a task, confirm available files or data objects to export and configure an export target as needed.

## Call sequence

1. List exportable files to identify the object to export.
2. Configure the export target and create an export task. Retain the task ID.
3. Query task status and details to confirm its current state. When it completes, list export files and obtain the required file.
4. Rerun the task when it needs to run again. Delete the task only after confirming it is no longer needed.

## API operations

### Prepare and create an export task

| Task | Use it when |
| --- | --- |
| [Query exportable files](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/data-connections/export-tasks/list-exportable-files.html.md) | Confirm available export objects before creating a task. |
| [Configure an export target](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/data-connections/export-tasks/configure-export-target.html.md) | Prepare or confirm an export target before creating a task. |
| [Create a task](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/data-connections/export-tasks/create-export-task.html.md) | You identified the object and target and need to create an export task. |

### Track tasks and obtain files

| Task | Use it when |
| --- | --- |
| [Query tasks](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/data-connections/export-tasks/list-export-tasks.html.md) | Find a task or confirm that it remains in the list. |
| [Query task details](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/data-connections/export-tasks/get-export-task.html.md) | View configuration and current information for one task. |
| [Query task status](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/data-connections/export-tasks/get-export-task-state.html.md) | Track task status. |
| [Query export files](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/data-connections/export-tasks/list-export-task-files.html.md) | Confirm and obtain files produced by a task. |
| [Rerun a task](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/data-connections/export-tasks/rerun-export-task.html.md) | Run an existing task again. |

### Delete a task

| Task | Use it when |
| --- | --- |
| [Delete a task](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/data-connections/export-tasks/delete-export-task.html.md) | You confirmed that the task is no longer needed. |

## Confirm the result

After creating or rerunning, use [Get export task status](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/data-connections/export-tasks/get-export-task-state.html.md) and [Get export task details](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/data-connections/export-tasks/get-export-task.html.md) to inspect the task. After the task produces available files, use [List export task files](https://omnifabric.cloudsigma.com/docs/reference/api/ai-studio/data-connections/export-tasks/list-export-task-files.html.md) to confirm output.

## Limitations and notes

- Creating or rerunning a task does not mean an export file is available. Use task status and export-file query results to confirm.
- Before deletion, confirm that you no longer need to query or obtain export files through the task.

## Next steps

- [Import tasks](https://omnifabric.cloudsigma.com/docs/developer/api/ai-studio/data-connections/import-data.html.md)
