The dashboard is fine for 20 accounts. It's not fine when your staging env needs fresh inboxes on every deploy, or your product creates email accounts during client onboarding. That's what the API is for.
The Yearly plan provides REST access to submit tasks, check status, and pull results into your own systems. CI pipelines, admin panels, and internal tools are common use cases. Keep returned credentials out of logs and move them into approved storage.
What people actually automate
- CI/CD: spin up 10 test Gmail accounts when a staging branch deploys
- Onboarding: provision inboxes when a new org signs up to your product
- QA: feed Playwright or Selenium suites fresh accounts each run
- Internal ops: a button that says "create 50 Yahoo accounts for Project X"
Basic integration flow
- 1Get on the Yearly plan. Generate an API key under Dashboard → API
- 2`POST /tasks` with provider (`gmail`, `yahoo`, or `outlook`), quantity, naming options
- 3Save the `task_id` from the response right away
- 4Poll `GET /tasks/{id}` every 30–60 seconds until status is `completed` or `failed`
- 5Pull the account list from the task detail endpoint and sync to your DB
It's not instant
Don't block your UI waiting. A 50-account Gmail task might take 30–90 minutes. Return the task ID immediately and let the user know when it's done (webhook, email, or poll through your backend).
Security (the non-negotiables)
| Rule | Why |
|---|---|
| Keys on backend only | Frontend = compromised key |
| One key per environment | Staging leak won't kill production |
| Rotate keys every few months | Limits damage if one leaks |
| Encrypt stored passwords | They're sensitive data |
| Log task IDs, not passwords | Debug without exposing creds |
When things go wrong
- Partial success happens. Some accounts finish, some don't. Check per-account status and retry failures in a new task.
- Respect rate limits. Back off: 30s, then 60s, then 120s.
- Task stuck in `processing` for 3+ hours? Log it and alert someone. Don't assume it failed and create a duplicate.
- Save `task_id` before you start polling. Script crashed? Resume the same task instead of spawning another.
API docs
Full endpoint reference, request/response shapes, and auth headers are in your dashboard under API Access after you subscribe to Yearly.
Account creation is only the first stage of an automation. Use the outreach-tool integration guide for the handoff into sending platforms, and the email account provisioning workflow for approval, ownership, secure storage, and retirement controls around the API.