# Read Email Verification Link API

> Connect to an IMAP mailbox and extract a link from the BODY of a recent email. Decodes quoted-printable/base64 bodies before matching, so URLs split across lines are returned whole. Polls with retries. Use this for verification mail whose token is a one-time URL rather than a code in the subject.

Category: [Utility APIs](https://upapi.io/apis/utility) · Last updated 2026-11-02

## How to call it

- Endpoint: `POST https://api.upapi.io/email-read-verification-link.post`, key in the `X-Api-Key` header, JSON body.
- Cost: 1 weighted unit per call.
- Timeout: 120 seconds.
- Cache: none; every call runs the operation.
- Try it without writing code: https://app.upapi.io/try/email-read-verification-link.post

```bash
curl -X POST https://api.upapi.io/email-read-verification-link.post \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "imapHost": "imap.gmail.com", "imapPass": "example", "imapPort": 993, "imapUser": "example", "maxRetries": 5, "linkPattern": "https?://[^\\s\"'\''<>)\\]]+", "retryDelayMs": 10000, "senderFilter": "noreply@reddit.com", "maxAgeMinutes": 15 }'
```

## Request parameters

- `imapHost` (string) — IMAP server hostname
- `imapPass` (string, required) — IMAP password or app password
- `imapPort` (integer) — IMAP server port
- `imapUser` (string, required) — IMAP username (email address)
- `mailboxes` (array) — Mailboxes to search, in order. Omit to search INBOX plus whatever the server flags \All and \Junk (Gmail: All Mail and Spam) — providers routinely file one-time verification links as junk, and searching INBOX alone reports them as never sent.
- `maxRetries` (integer) — Number of polling attempts
- `linkPattern` (string) — Regex matched against the DECODED body. The first capture group is returned when present, otherwise the whole match. Default matches any http(s) URL.
- `retryDelayMs` (integer) — Milliseconds between retry attempts
- `senderFilter` (string, required) — Filter emails by sender (e.g. noreply@reddit.com)
- `maxAgeMinutes` (integer) — Only look at emails received within this many minutes
- `subjectPattern` (string) — Regex matched against the subject, to pick one of several mails from the same sender
- `recipientFilter` (string) — Filter by recipient address (useful with catch-all domains)

## Response fields

- `to` (string, required) — Recipient address
- `from` (string, required) — Sender address
- `link` (string, required) — First body match — the link to follow
- `mailbox` (string, required) — Which mailbox the hit came from. A link found in Spam is still a valid link, but it tells the caller the provider is filtering this sender.
- `subject` (string, required) — Email subject line
- `allLinks` (array, required) — Every distinct match in the body, in document order
- `elapsedMs` (integer, required)
- `fetchedAt` (string, required)
- `receivedAt` (string, required) — When the email was received

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "imapHost": "imap.gmail.com",
  "imapPass": "example",
  "imapPort": 993,
  "imapUser": "example",
  "maxRetries": 5,
  "linkPattern": "https?://[^\\s\"'<>)\\]]+",
  "retryDelayMs": 10000,
  "senderFilter": "noreply@reddit.com",
  "maxAgeMinutes": 15
}
```

```json
{
  "to": "example",
  "from": "example",
  "link": "example",
  "mailbox": "example",
  "subject": "example",
  "allLinks": [
    "example"
  ],
  "elapsedMs": 1,
  "fetchedAt": "example",
  "receivedAt": "example"
}
```

## Frequently asked questions

### How much does the Read Email Verification Link API cost per call?

Each call spends 1 weighted unit of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the Read Email Verification Link API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are Read Email Verification Link API responses cached?

No — every call runs the operation live; responses are not cached.

## More Utility APIs

- [Email Read Verification Link (Microsoft Graph)](https://upapi.io/apis/utility/email-read-verification-link-graph)
- [Read Email Verification Code](https://upapi.io/apis/utility/email-read-verification-code)
- [Email Read Verification Code (Microsoft Graph)](https://upapi.io/apis/utility/email-read-verification-code-graph)
- [Email Generate Address](https://upapi.io/apis/utility/email-generate-address)
