---
title: "Creates and executes export task"
method: POST
path: "/v1/phone_book/contacts/export/tasks"
tags: ["phone_book"]
---

# Creates and executes export task

`POST /v1/phone_book/contacts/export/tasks`

## Query parameters

- `async` boolean

## Request body

- ExportResponseDto
  - `query` string — FIQL/RSQL query string
  - `sort` string — Sorts response by given fields
  - `page` integer — Request a specific page
  - `size` integer — Sets size of a page
  - `format` string — Export format (pdf, csv, xsl)
  - `id` integer, required — id
  - `state` AsyncState
    - `done` boolean — task done?
    - `progress` integer — progress in percentage
    - `error` boolean — task error?
  - `links` Link[] — links
    - `rel` string
    - `href` string

## Response `200`

OK

- ExportResponseDto
  - `query` string — FIQL/RSQL query string
  - `sort` string — Sorts response by given fields
  - `page` integer — Request a specific page
  - `size` integer — Sets size of a page
  - `format` string — Export format (pdf, csv, xsl)
  - `id` integer, required — id
  - `state` AsyncState
    - `done` boolean — task done?
    - `progress` integer — progress in percentage
    - `error` boolean — task error?
  - `links` Link[] — links
    - `rel` string
    - `href` string

## Other responses

- `400` — Bad request
- `500` — Internal server error

---

[API](https://skmtc.dev/linkmobility/apis/untitled-api.md) · [All operations](https://skmtc.dev/linkmobility/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/linkmobility/untitled-api/revisions/db84f79799b9/schema)
