IMAP Guide

Learn how to implement a custom IMAP authentication form into your application.

Step 1: Authenticate to IMAP

Make a POST request to this Unipile API endpoint or use the appropriate SDK Method.

curl --request POST \
     --url https://{YOUR_DSN}/api/v1/accounts \
     --header 'X-API-KEY: {YOUR_ACCESS_TOKEN}' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "provider": "MAIL",
  "imap_user": "[email protected]",
  "smtp_user": "[email protected]",
  "imap_password": "***",
  "smtp_password": "***",
  "imap_host": "your imap server provider",
  "smtp_host": "your smtp server provider",
  "imap_port": 993,
  "smtp_port": 465,
  "imap_encryption": "SSL"
}
'