Winnr Warming API
The Warming API from Winnr, for warming.
The Warming API from Winnr, for warming.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/winnr-app:winnr-app-warming-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Winnr Warming API
description: 'The Winnr API provides programmatic access to manage email domains, email users,
and inbox operations. Use this API to integrate Winnr''s email infrastructure
into your applications.
## Authentication
All API requests require authentication using an API token.
API tokens start with `wnr_` and can be created in your account settings
or via the `POST /v1/auth/tokens` endpoint.
Include your token in the `Authorization` header:
```
Authorization: Bearer wnr_xxx...
```
## Rate Limiting
API requests are rate limited based on your account tier:
| Plan | Requests/min | Burst |
|------|--------------|-------|
| Startup | 300 | 500 |
| Enterprise | 500 | 800 |
Rate limit headers are included in all responses:
- `X-RateLimit-Limit` - Your per-minute limit
- `X-RateLimit-Remaining` - Requests remaining in current window
- `X-RateLimit-Reset` - Unix timestamp when the window resets
## Response envelope
**Every** success response is wrapped in the same envelope — there are no
bare resource bodies. Single-resource endpoints return:
```json
{
"meta": { "request_id": "D0tCQjBLIAMEVCg=", "timestamp": "2026-09-17T03:16:55Z" },
"data": { "...": "the resource" }
}
```
List endpoints add a sibling `pagination` object and return an array in
`data`:
```json
{
"meta": { "request_id": "...", "timestamp": "..." },
"data": [ { "...": "resource" } ],
"pagination": { "has_more": true, "cursor": "eyJ...", "count": 25 }
}
```
Always read the resource from `data`, never from the top level. The
request id lives at `meta.request_id` on success and at `error.request_id`
on failure — quote it when contacting support.
## Pagination
List endpoints support cursor-based pagination:
- `limit` - Number of items per page (default: 25, max: 100)
- `cursor` - Cursor for next page (from previous response)
## Asynchronous endpoints
Endpoints that touch the mail servers or a registrar (mailbox creation,
domain setup, domain deletion, warming changes) do **not** perform the work
inline. They validate the request, enqueue it, and return a job receipt —
`data.job_id` with `data.status: "pending"` — instead of the created
resource. The affected endpoints say so in their own description.
Poll `GET /v1/jobs/{job_id}` until `status` is `completed` or `failed`,
then read the resource from its own endpoint. Typical completion is a few
seconds to a couple of minutes.
**Reconciling a timed-out or failed request.** These endpoints are *not*
idempotent: a blind retry can enqueue a second mailbox. If a request times
out before you see a `job_id`, do not retry immediately — first check
whether the work already landed:
1. `GET /v1/jobs?filter[type]=domain_setup&filter[status]=in_progress` and
look for a job whose input matches your request; if one exists, poll it
rather than resubmitting.
2. Otherwise `GET /v1/email-users?filter[domain]={domain}` (or the relevant
resource list) and check whether the address already exists.
Only resubmit when neither a job nor the resource is present. Resubmitting
an address that already exists is safe in the sense that it is rejected
with `400 validation_error` rather than silently duplicated.'
version: 1.0.0
contact:
name: Winnr Support
email: support@winnr.app
license:
name: Proprietary
url: https://winnr.app/terms
servers:
- url: https://api.winnr.app
description: Production API
- url: https://c8qc9z97f5.execute-api.us-east-1.amazonaws.com
description: Production API (direct)
- url: http://localhost:3000
description: Local development
security:
- bearerAuth: []
tags:
- name: Warming
paths:
/v1/warming/unsubscribe:
get:
tags:
- Warming
summary: Unsubscribe from warming report emails
description: 'Public endpoint (no authentication required). Validates the HMAC token
from the unsubscribe link in the daily warming report and sets
`warming_digest_opt_out: true` on the account. Returns an HTML
confirmation page.
Only stops the report email — warming itself keeps running, and
transactional emails are unaffected.'
operationId: unsubscribeWarmingDigest
security: []
parameters:
- name: token
in: query
required: true
schema:
type: string
description: Base64-encoded HMAC token containing the account ID
responses:
'200':
description: Successfully unsubscribed (HTML page)
content:
text/html:
schema:
type: string
'400':
description: Invalid or missing token (HTML page)
content:
text/html:
schema:
type: string
post:
tags:
- Warming
summary: Unsubscribe from warming report emails (RFC 8058 one-click)
description: 'Same as the GET form, for RFC 8058 one-click unsubscribe. Mail providers
(Gmail, Yahoo) POST to this URI with body `List-Unsubscribe=One-Click`
when the recipient uses the native unsubscribe control; the token stays
in the query string.'
operationId: unsubscribeWarmingDigestOneClick
security: []
parameters:
- name: token
in: query
required: true
schema:
type: string
description: Base64-encoded HMAC token containing the account ID
responses:
'200':
description: Successfully unsubscribed (HTML page)
content:
text/html:
schema:
type: string
'400':
description: Invalid or missing token (HTML page)
content:
text/html:
schema:
type: string
/v1/warming:
get:
tags:
- Warming
summary: List warming mailboxes
description: 'Returns all email users with warming enabled, including cached stats.
Uses offset-based pagination via `page` and `per_page` query parameters.'
operationId: listWarmingMailboxes
parameters:
- name: page
in: query
schema:
type: integer
default: 1
minimum: 1
- name: per_page
in: query
schema:
type: integer
default: 100
maximum: 500
- name: sort_by
in: query
schema:
type: string
description: 'Field to sort by. Defaults to status-priority ordering. Supports
common WarmingMailbox fields (e.g. `full_address`, `domain`,
`status`).
'
- name: order
in: query
schema:
type: string
enum:
- asc
- desc
default: asc
responses:
'200':
description: List of warming mailboxes
content:
application/json:
schema:
$ref: '#/components/schemas/WarmingMailboxListResponse'
/v1/warming/overview:
get:
tags:
- Warming
summary: Get warming overview
description: Returns account-level aggregate warming stats.
operationId: getWarmingOverview
responses:
'200':
description: Warming overview
content:
application/json:
schema:
type: object
properties:
meta:
$ref: '#/components/schemas/Meta'
data:
$ref: '#/components/schemas/WarmingOverview'
/v1/warming/seed-phrase:
get:
tags:
- Warming
summary: Get warmup seed phrase
description: 'Returns the account-level warmup seed phrase that is injected into every
warmup email''s signature so the customer can filter warmup mail from their inbox.'
operationId: getWarmupSeedPhrase
responses:
'200':
description: Warmup seed phrase
content:
application/json:
schema:
type: object
properties:
meta:
$ref: '#/components/schemas/Meta'
data:
type: object
properties:
seed_phrase:
type: string
updated_at:
type: string
format: date-time
nullable: true
patch:
tags:
- Warming
summary: Set warmup seed phrase
description: 'Sets the account-level warmup seed phrase and fans out signature updates
to every currently-warming mailbox asynchronously (one queued job per
campaign; the response returns immediately). New mailboxes pick the
phrase up when warming is enabled. Send an empty string to clear it.'
operationId: updateWarmupSeedPhrase
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
seed_phrase:
type: string
maxLength: 2048
responses:
'200':
description: Seed phrase saved; signature updates queued
content:
application/json:
schema:
type: object
properties:
meta:
$ref: '#/components/schemas/Meta'
data:
type: object
properties:
seed_phrase:
type: string
updated_at:
type: string
format: date-time
applied:
type: integer
description: Always 0 — updates are applied asynchronously
failed:
type: integer
description: Campaigns that could not be queued
remaining:
type: integer
description: Campaigns queued for background update
total:
type: integer
description: Total warming campaigns
/v1/warming/enable:
post:
tags:
- Warming
summary: Enable warming
description: 'Enable warming for one or more email users. Creates campaigns and starts warmup.
Warming is billed at enable time ($0.60/mailbox/month): newly enabled mailboxes
are charged a full month upfront and added to the recurring warming line item.
Amounts already paid for mailboxes that never activated are credited
automatically, so retries are not double-charged.
Requests that would enable more than 5 mailboxes are processed in the
background (same as `/v1/warming/enable-async`): the response then has
`status: processing`, a `job_id` and a `queued` count instead of
per-mailbox `results`, and the mailboxes show as warming within minutes.'
operationId: enableWarming
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- user_ids
properties:
user_ids:
type: array
items:
type: string
settings:
type: object
properties:
emails_per_day:
type: integer
default: 20
response_rate:
type: integer
default: 30
rampup_enabled:
type: boolean
default: true
rampup_speed:
type: string
enum:
- slow
- normal
- fast
default: normal
responses:
'200':
description: Warming enabled
content:
application/json:
schema:
type: object
properties:
meta:
$ref: '#/components/schemas/Meta'
data:
type: object
properties:
enabled:
type: array
items:
$ref: '#/components/schemas/WarmingMailbox'
'402':
description: Payment for the newly enabled mailboxes failed. Nothing was enabled.
/v1/warming/enable-async:
post:
tags:
- Warming
summary: Enable warming (async)
description: 'Asynchronously enable warming for email users. Creates a background job
that processes mailboxes via SQS. Each mailbox is enabled independently
with automatic retries on failure. Track progress via the returned job_id
using GET /v1/jobs/{job_id} or a Firestore listener on the job document.
Warming is billed at enable time, before the job is created (see
/v1/warming/enable); a payment failure returns 402 and no job is created.'
operationId: enableWarmingAsync
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- user_ids
properties:
user_ids:
type: array
items:
type: string
maxItems: 500
settings:
type: object
properties:
emails_per_day:
type: integer
minimum: 1
maximum: 20
default: 20
rampup_speed:
type: string
enum:
- slow
- normal
- fast
default: normal
responses:
'200':
description: Job created and mailboxes queued for processing
content:
application/json:
schema:
type: object
properties:
meta:
$ref: '#/components/schemas/Meta'
data:
type: object
properties:
job_id:
type: string
nullable: true
description: Job ID for progress tracking, null if no eligible mailboxes
status:
type: string
enum:
- processing
- completed
total:
type: integer
description: Number of eligible mailboxes queued
queued:
type: integer
description: Number of SQS messages successfully sent
skipped:
type: integer
description: Number of mailboxes skipped (already warming, inactive, etc.)
/v1/warming/disable:
post:
tags:
- Warming
summary: Disable warming
description: Disable warming for one or more email users. Deletes campaigns.
operationId: disableWarming
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- user_ids
properties:
user_ids:
type: array
items:
type: string
responses:
'200':
description: Warming disabled
/v1/warming/{user_id}/pause:
post:
tags:
- Warming
summary: Pause warming
operationId: pauseWarming
parameters:
- $ref: '#/components/parameters/UserId'
responses:
'200':
description: Warming paused
/v1/warming/{user_id}/resume:
post:
tags:
- Warming
summary: Resume warming
operationId: resumeWarming
parameters:
- $ref: '#/components/parameters/UserId'
responses:
'200':
description: Warming resumed
/v1/warming/{user_id}/reconnect:
post:
tags:
- Warming
summary: Reconnect warming
description: 'Re-sends the mailbox''s current password to its warming campaign and
restarts warming. Use it for a mailbox whose `warming_status` is
`connection_problem` (shown as "Problem"), typically after the mailbox
password was changed. The campaign is updated in place, so the
mailbox''s warming history is kept. A paused mailbox receives the
password update only and stays paused.'
operationId: reconnectWarming
parameters:
- $ref: '#/components/parameters/UserId'
responses:
'200':
description: Warming reconnected
content:
application/json:
schema:
type: object
properties:
status:
type: string
enum:
- active
- paused
id:
type: string
'400':
description: Warming is not enabled, no campaign exists, or warming could not sign in with the mailbox's current password (`warming_credentials_rejected`). Check the password, then retry.
'503':
description: Warming is temporarily busy (`warming_busy`). Retry in a few minutes.
/v1/warming/{user_id}/settings:
patch:
tags:
- Warming
summary: Update warming settings
operationId: updateWarmingSettings
parameters:
- $ref: '#/components/parameters/UserId'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
emails_per_day:
type: integer
response_rate:
type: integer
rampup_enabled:
type: boolean
rampup_speed:
type: string
enum:
- slow
- normal
- fast
responses:
'200':
description: Settings updated
/v1/warming/{user_id}/metrics:
get:
tags:
- Warming
summary: Get warming metrics
operationId: getWarmingMetrics
parameters:
- $ref: '#/components/parameters/UserId'
- name: days
in: query
schema:
type: integer
default: 30
responses:
'200':
description: Daily warming metrics
content:
application/json:
schema:
type: object
properties:
meta:
$ref: '#/components/schemas/Meta'
data:
type: object
properties:
metrics:
type: array
items:
$ref: '#/components/schemas/WarmingDailyMetric'
/v1/warming/{user_id}/activity:
get:
tags:
- Warming
summary: Get warming activity
operationId: getWarmingActivity
parameters:
- $ref: '#/components/parameters/UserId'
- name: page
in: query
schema:
type: integer
default: 1
- name: per_page
in: query
schema:
type: integer
default: 50
responses:
'200':
description: Activity logs
content:
application/json:
schema:
type: object
properties:
meta:
$ref: '#/components/schemas/Meta'
data:
type: object
properties:
activities:
type: array
items:
$ref: '#/components/schemas/WarmingActivity'
/v1/warming/refresh:
post:
tags:
- Warming
summary: Refresh warming metrics
description: Triggers an on-demand sync of warming metrics for the account.
operationId: refreshWarming
responses:
'200':
description: Refresh triggered
/v1/warming/import:
post:
tags:
- Warming
summary: Import external accounts for warming
description: 'Import email accounts from external providers (Google Workspace, Microsoft 365, custom SMTP)
and enable warming on them. Accounts are saved with `type: "external"` and returned as
`queued`; each is then connected to the warming provider in the background (usually within
a minute). Track progress on the returned `job_id` (GET /v1/jobs/{job_id}): `progress`
counts completed/failed, and `failures` lists each mailbox that could not connect and why
(typically a wrong app password). Re-importing a failed mailbox retries it.
Warming is billed at import time (see /v1/warming/enable): importable accounts are charged
a full month upfront before any are connected, net of unfulfilled credit — dashboard flows
that already charged via Stripe are not charged again. A payment failure returns 402 and
nothing is imported. Up to 200 accounts per request.
**Provider defaults** (auto-filled when provider is `google` or `microsoft`):
- Google: smtp.gmail.com:465, imap.gmail.com:993
- Microsoft: smtp.office365.com:587, outlook.office365.com:993
- SMTP: all host/port fields required from the request'
operationId: importExternalAccounts
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- accounts
properties:
accounts:
type: array
maxItems: 200
items:
type: object
required:
- email
- password
- provider
properties:
email:
type: string
format: email
name:
type: string
description: Display name (auto-derived from email username if omitted)
password:
type: string
description: App password (Google/Microsoft) or SMTP password
provider:
type: string
enum:
- google
- microsoft
- smtp
smtp_host:
type: string
description: Required for smtp provider
smtp_port:
type: integer
description: Required for smtp provider (e.g. 465 or 587)
imap_host:
type: string
description: Required for smtp provider
imap_port:
type: integer
description: Required for smtp provider (e.g. 993)
warming_settings:
type: object
properties:
emails_per_day:
type: integer
minimum: 1
maximum: 20
default: 20
rampup_speed:
type: string
enum:
- slow
- normal
- fast
default: normal
responses:
'200':
description: Import results
content:
application/json:
schema:
type: object
properties:
meta:
$ref: '#/components/schemas/Meta'
data:
type: object
properties:
results:
type: array
items:
type: object
properties:
email:
type: string
status:
type: string
enum:
- queued
- duplicate
- error
user_id:
type: string
message:
type: string
imported:
type: integer
description: Same as `queued` (kept for older clients)
queued:
type: integer
description: Mailboxes saved and queued for connection
job_id:
type: string
nullable: true
description: warming_enable job tracking the connections (null when nothing was queued)
duplicates:
type: integer
errors:
type: integer
total:
type: integer
/v1/warming/import/{user_id}:
delete:
tags:
- Warming
summary: Delete an external warming account
description: 'Delete an external account imported via POST /v1/warming/import.
If warming is active, the provider campaign is deleted first, then the Firestore doc is removed.
Only works for accounts with `type: "external"`.'
operationId: deleteExternalAccount
parameters:
- name: user_id
in: path
required: true
schema:
type: string
responses:
'200':
description: Account deleted
content:
application/json:
schema:
type: object
properties:
meta:
$ref: '#/components/schemas/Meta'
data:
type: object
properties:
message:
type: string
user_id:
type: string
'400':
description: Not an external account
'404':
description: User not found
components:
schemas:
WarmingActivity:
type: object
properties:
timestamp:
type: string
format: date-time
type:
type: string
email:
type: string
subject:
type: string
landed_in:
type: string
enum:
- inbox
- spam
direction:
type: string
enum:
- sent
- received
Pagination:
type: object
description: 'Pagination metadata. Cursor-based endpoints (e.g. `/v1/domains`,
`/v1/email-users`, `/v1/inbox`, `/v1/email-users/{id}/inbox`) populate
`has_more` and `cursor`. Offset-based endpoints (e.g. `/v1/warming`)
populate `page`, `per_page`, and `total`. `count` (number of items in
the current page) is included where available.
'
properties:
has_more:
type: boolean
description: Whether more pages exist after this one (cursor-based endpoints).
cursor:
type: string
nullable: true
description: Opaque cursor to pass as `?cursor=…` for the next page.
count:
type: integer
description: Number of items returned in this response.
total:
type: integer
description: Total number of items across all pages (offset-based endpoints).
page:
type: integer
description: 1-based page number (offset-based endpoints).
per_page:
type: integer
description: Items per page (offset-based endpoints).
WarmingMailboxListResponse:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/WarmingMailbox'
pagination:
$ref: '#/components/schemas/Pagination'
meta:
$ref: '#/components/schemas/Meta'
Meta:
type: object
properties:
request_id:
type: string
timestamp:
type: string
format: date-time
WarmingDailyMetric:
type: object
properties:
date:
type: string
sent:
type: integer
inbox:
type: integer
spam:
type: integer
replies:
type: integer
inbox_rate:
type: number
WarmingMailbox:
type: object
properties:
id:
type: string
full_address:
type: string
domain_string:
type: string
name:
type: string
warming_status:
type: string
enum:
- active
- paused
- connecting
- connection_problem
- disabled
warming_credentials_stale:
type: boolean
description: True while warming may still hold an old mailbox password (after a password change, until it is passed on). Reconnect clears it.
warming_emails_per_day:
type: integer
warming_response_rate:
type: integer
warming_rampup_enabled:
type: boolean
warming_rampup_speed:
type: string
enum:
- slow
- normal
- fast
warming_health_score:
type: number
warming_inbox_rate:
type: number
warming_spam_rate:
type: number
warming_total_sent:
type: integer
warming_total_replies:
type: integer
warming_started_at:
type: string
format: date-time
nullable: true
warming_last_sync:
type: string
format: date-time
nullable: true
WarmingOverview:
type: object
properties:
total_mailboxes:
type: integer
active:
type: integer
paused:
type: integer
problems:
type: integer
avg_health_score:
type: number
avg_inbox_rate:
type: number
total_sent_today:
type: integer
total_replies_today:
type: integer
monthly_cost:
type: number
parameters:
UserId:
name: user_id
in: path
required: true
schema:
type: string
description: Email user ID
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: API token (wnr_xxx...)