---
title: "Returns import tasks"
method: GET
path: "/v1/recipient_blacklist/import/tasks"
tags: ["blacklist"]
---

# Returns import tasks

`GET /v1/recipient_blacklist/import/tasks`

## Query parameters

- `page` integer
- `size` integer

## Response `200`

OK

- ImportContactsResponse[]
  - `importFileId` integer — import file id
  - `fieldMapping` object — fields to import file column mapping
  - `contactGroupIds` integer[] — contact groups to assign
  - `charset` string — override detected charset
  - `delimiter` string — override detected delimiter
  - `skipFirstRow` boolean — skip first row
  - `continueOnError` boolean — continue on error
  - `ignoreExistingContacts` boolean — don't touch existing contacts
  - `ignoreEmptyContacts` boolean — don't import empty contacts (containing no recipients)
  - `mergeContactGroupIds` boolean — whether to merge or delete existing group membership
  - `dryRun` boolean — dry run
  - `duplicateCheckField` string — whether to check for mobile or whatsapp duplicates
  - `diallingCodeId` integer
  - `id` integer, required — id
  - `processed` integer — total of processed contacts
  - `added` integer — newly added contacts
  - `updated` integer — updated contacts
  - `updatedCsv` integer — updated csv contacts
  - `ignored` integer — ignored contacts
  - `failed` integer — failed contacts
  - `blacklisted` integer — blacklisted recipients
  - `recipientsPerCountries` object — map of recipients per countries
  - `empty` integer — empty contacts
  - `nonEnabledWhatsapp` integer — non enabled whatsapp recipients
  - `resultedContactIds` integer[] — set of tracked contacts
  - `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)
