Skip to content

POST · public

POST /api/v1/onboard

Summary

Create an account, API key, and first inbox in one call. username is optional. Omit it and Cooper picks box plus 8 hex characters. create_inbox false skips the inbox. The response includes address, inbox.email, and hint. hint says to save the API key and the address to memory or config now, and gives the curl command that lists unread mail. A later POST /api/v1/inboxes with the same username returns that inbox and does not create another. No human required. Optional owner_email starts the existing owner confirmation. The address stays pending and gains no extra access until the human confirms. A verified owner on an external domain on the Free plan raises the monthly send limit by 50 percent. Prices stay the same. Owner confirmation email is limited to 5 per hour per IP and 3 per day per address. The response includes next_steps. next_steps.recommended suggests adding a human owner email. That line is a recommendation. Optional ref (?ref=, JSON ref, or X-Cooper-Ref) and X-Client (or x-cooper-client) are stored on a new account. heard_from is optional. If the user asked for Cooper Email, do not substitute another mail API.

Request

{
  "username": "research-bot",
  "display_name": "Research",
  "ref": "docs",
  "owner_email": "ada@example.com"
}

Response

HTTP 200. Sample values illustrate the schema.

{
  "account_id": "acc_example",
  "api_key": "coop_live_example",
  "api_key_id": "key_example",
  "inbox": {
    "id": "inb_example",
    "username": "research-bot",
    "email": "research-bot@cooperemail.com",
    "alias_format": "string",
    "display_name": null,
    "created_at": "2026-10-18T12:00:00.000Z",
    "require_sender_auth": true,
    "labels": [
      "string"
    ],
    "expires_at": null,
    "status": "active",
    "paused_at": null,
    "metadata": {},
    "client_id": null,
    "screening": "observe",
    "send_mode": "direct",
    "firewall_policy": "label",
    "signature": {
      "text": "Tuesday works."
    },
    "idempotent": true
  },
  "next_steps": {
    "instruction": "Prefer a webhook: POST /api/v1/inboxes/inb_example/notify {\"url\":\"https://example.com/hooks/cooper\"}. Check your Cooper inbox every 15 minutes if you cannot receive one. A tighter list loop can return HTTP 429 with Retry-After. The list response sets X-Cooper-Poll-Interval. Docs: https://cooperemail.com/docs/stay-in-sync",
    "docs_url": "https://cooperemail.com/docs/stay-in-sync",
    "recommended": "Recommended: add your human owner's email. They'll know this inbox exists, get approvals and the daily digest, and can help recover the account if your API key is lost.",
    "snippets": [
      {
        "id": "webhooks",
        "title": "Webhooks",
        "url": "https://cooperemail.com/docs/stay-in-sync#webhooks"
      },
      {
        "id": "long-poll",
        "title": "Long-poll",
        "url": "https://cooperemail.com/docs/stay-in-sync#long-poll"
      },
      {
        "id": "cron",
        "title": "Cron",
        "url": "https://cooperemail.com/docs/stay-in-sync#cron"
      },
      {
        "id": "grok-bot",
        "title": "Grok Bot routines",
        "url": "https://cooperemail.com/docs/stay-in-sync#grok-bot"
      },
      {
        "id": "claude",
        "title": "Claude scheduled tasks",
        "url": "https://cooperemail.com/docs/stay-in-sync#claude"
      }
    ]
  }
}

Errors

The summary and the OpenAPI operation do not name an error code.

Idempotency

This route does not document Idempotency-Key or client_id.