---
title: "Import contacts from CSV"
method: POST
path: "/contacts/import"
tags: ["contacts"]
---

# Import contacts from CSV

`POST /contacts/import`

## Request

- Base URL: `https://api.mailly.site` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mailly.site/contacts/import`
- Auth: HTTP bearer

Content-Type must be text/csv or application/csv, and the body is raw CSV.

## Response `200`

All succeeded

- object
  - `success` boolean, required
  - `received` number, required
  - `succeeded` number, required
  - `failed` number, required
  - `results` object[], required

## Other responses

- `207`: Partially failed
- `400`: Invalid Content-Type or CSV
- `401`: Missing or invalid API key

---

[API](https://skmtc.dev/mailly/apis/mailly-api.md) · [All operations](https://skmtc.dev/mailly/apis/mailly-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mailly/apis/mailly-api/revisions/1ceb29637301?raw)
