---
title: "Generate account export"
method: POST
path: "/accounts/{id}/exports/generate"
tags: ["Accounts"]
---

# Generate account export

`POST /accounts/{id}/exports/generate`

Generate a particular account export.

## Request body

- AccountExportGenerateRequest
  - `exportExtensionType` 'PDF' | 'CSV', required — The type of the export

## Response `200`

OK

- AccountExportGenerateResponse
  - `code` 'OK' | 'CREATED' | 'INVALID_CREDENTIALS' | 'INVALID_PARAMETERS' | 'INVALID_TOKEN' | 'UNAUTHORIZED_ACCESS' | 'MISSING_RESOURCE' | 'REQUEST_LIMIT_EXCEEDED' | 'SERVER_ERROR' | 'UNSUPPORTED_METHOD' | 'SERVER_UNAVAILABLE' | 'TIME_LIMIT_EXCEEDED' — Request status code
  - `message` string — Message response to the request
  - `requestId` string — Unique ID that is added to the body of every response for easy traceability of the request in our logs.
  - `data` AccountExport
    - `accountId` string, required — The particular account ID
    - `id` string, required — The unique ID of this export
    - `downloadUrl` string, required — The url which can download the export. This url will become invalid after account revoked or more than 60 days ago.
    - `exportExtensionType` 'PDF' | 'CSV', required — The type of the export
    - `md5` string, required — You can use this value to check whether the file is modified. Smile use Md5 algorithm to generate the value
    - `createdAt` string, date-time, required — Date and time

---

[API](https://skmtc.net/smileapi/apis/smile-api.md) · [All operations](https://skmtc.net/smileapi/apis/smile-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smileapi/smile-api/revisions/d1e0cb5dc33c/schema)
