---
title: "Create New Data Export"
method: POST
path: "/v1/data_exports"
tags: ["Data Exports"]
---

# Create New Data Export

`POST /v1/data_exports`

Creates a new data export for the provided department, if it's accessible via the used API_KEY.

## Request body

- object
  - `entity` string, required — The resource to be exported, it can only one of these values (organizations, credentials, credential_analytics, groups, designs).
  - `department_id` number, required — The department ID where resources are exported from, it should be accessible via the given API_KEY.

## Response `201`

Created

- object
  - `department_id` number — The department ID where resources are exported from, it should be accessible via the given API_KEY.
  - `status` string — It can be: - scheduled: Data export is not yet started - processing: Data is being exported - completed: Data has been exported - errored: Something went wrong while exporting the data.
  - `urls` object[] — List of urls to the exported files. It'll be available only if the data_export is "completed", otherwise, it will be empty.
    - `status` string — It is always completed
    - `year` number — the year at which the data in the file is created
    - `url` string — the url to the file

---

[API](https://skmtc.net/accredible/apis/accredible-credential-api.md) · [All operations](https://skmtc.net/accredible/apis/accredible-credential-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/accredible/accredible-credential-api/versions/56b317c13686/schema)
