---
title: "Post Imap Connection"
method: POST
path: "/v1/mail-sync/connections/imap"
tags: ["mail-sync"]
---

# Post Imap Connection

`POST /v1/mail-sync/connections/imap`

## Request

- Base URL: `https://api.fatheron.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fatheron.dev/v1/mail-sync/connections/imap`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Headers

- `Authorization` string, nullable
- `X-API-Key` string, nullable

## Cookies

- `fh_access_token` string, nullable

## Request body

- ImapConnectBody
  - `host` string, required
  - `username` string, required
  - `password` string, required
  - `port` integer
  - `use_ssl` boolean
  - `preset_id` string, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fatheron/apis/fat-heron-builders-api.md) · [All operations](https://skmtc.dev/fatheron/apis/fat-heron-builders-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fatheron/apis/fat-heron-builders-api/revisions/82bc021b1102?raw)
