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",
  "email": "[email protected]",
  "password": "********"
  "connection_params": 
  	{
      imap_host: "your imap server provider",
      imap_port: "your imap server port  provider",
      smtp_host: "your smtp server provider",
      smtp_port: "your smtp server port  provider",
    }
}
'