ϟ pikamail
DEVELOPER PLATFORM / V2

Email workflows,
without the noise.

Register a PikaMail account, create a scoped API key, and manage receive-only permanent mail over HTTPS. The public website generator remains available without login. No outbound sending endpoint exists.

ACCOUNT + API KEY10 requests / second / keyJavaScript + Python + Go
01 / FIRST STEPS

Get started in three steps.

1

Create a website account

Sign in at PikaMail with a permanent address. Keep its one-time recovery code somewhere private.

2

Make an API key

Open Account settings → Developer API keys. Copy the key when shown; it cannot be viewed again.

3

Call the API

Send the key as a Bearer token over HTTPS. Keep it on your server, not in browser JavaScript.

Base URLhttps://pikamail.life/api/v1Permanent account examples use this URL; the free temporary API uses /api.

In PowerShell, set your key for the current terminal with $env:PIKAMAIL_API_KEY='your-key'. On macOS or Linux, use export PIKAMAIL_API_KEY='your-key'. Keep the key out of source files and shared terminals.

CHECK YOUR ACCESScURL
curl https://pikamail.life/api/v1/inboxes \
  -H "Authorization: Bearer $PIKAMAIL_API_KEY"

The response contains an inboxes array. Every inbox has an id (the part before @) and a full address.

WEBSITE COMPATIBILITY

Create or reopen mail.

The public website uses https://pikamail.life/api so visitors can create mail without an account. This compatibility interface remains rate limited; production automation should use an account API key with /api/v1. Temporary and permanent mail both accept an optional password. A password enables private cross-device restoration. Password-free permanent mail must set public:true, which means anyone knowing the address can read its messages. Permanent addresses stay active while their messages expire after 30 days.

CREATE A PUBLIC INBOX · HTTP 201NO KEY
curl -X POST https://pikamail.life/api/inboxes \
  -H "Content-Type: application/json" \
  -d '{"alias":"demoarea2097","public":true}'

{"id":"demoarea2097","token":"owner-token","address":"demoarea2097@pikamail.life","expires":1900000000000,"public":true}
OPEN BY ADDRESSPUBLIC OR PASSWORD-PROTECTED
curl -X POST https://pikamail.life/api/inboxes/open \
  -H "Content-Type: application/json" \
  -d '{"address":"demoarea2097@pikamail.life"}'

# For a password-protected inbox, include "password":"your-password".

Public inboxes can be read without a token, but deleting one still requires its creation token. The website stores this privately in the current tab; API clients should store it securely. Delete one temporary message with DELETE /api/inboxes/{id}/messages/{messageId} and a valid inbox token. Live aggregate counts are available from GET /api/public/metrics. A password-protected inbox returns a new scoped token from /api/inboxes/open. Private inboxes cannot be reopened from their address alone. Use GET /api/inboxes/{id} to list mail and GET /api/inboxes/{id}/messages/{messageId} to read one message. Send Authorization: Bearer <token> for private or password-protected inboxes.

Safe accessPublic means anyone who knows the address can read its messages. Never use it for sensitive mail. Keep tokens and passwords out of URLs and logs.
FOR ASSISTANTS & API TOOLS

Give your AI the exact API.

Share the plain-text reference with an AI assistant when you want it to write an integration. Import the OpenAPI specification into an API client or code generator. Both describe PikaMail's real endpoints, authentication, response fields, and limits. They contain no private keys.

Tell your assistant: “Read https://pikamail.life/llm-api-docs.txt and build a receive-only PikaMail integration. Ask me for an API key through an environment variable.” Never paste a live key into a public prompt.

02 / PERMANENT ACCOUNTS

Create an address that stays.

POST /inboxes creates an independent permanent account and its primary inbox. The address can sign in to the website using the password you choose. Call GET /domains first, then pass an optional enabled domain; omitting it uses the primary domain. Omit alias for a random 15-character name, or choose 9–15 letters and numbers beginning with a letter.

CREATE A PERMANENT ACCOUNTcURL
curl -X POST https://pikamail.life/api/v1/inboxes \
  -H "Authorization: Bearer $PIKAMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"alias":"calmlink2097","domain":"pikamail.life","password":"a-unique-long-password"}'
HTTP 201 · EXAMPLE RESPONSE
{
  "id": "calmlink2097",
  "address": "calmlink2097@pikamail.life",
  "domain": "pikamail.life",
  "permanent": true,
  "expires": null,
  "recoveryCode": "shown-only-once"
}

The password minimum is six characters, but a unique password of at least twelve is much safer. Save the recovery code immediately; the API never returns it again. The parent API key can read accounts it created, while each created account can sign in independently. API-created accounts cannot create further accounts.

To remove an API-created account and all of its messages, call DELETE /accounts/{id} with the parent key. This is permanent. The primary address cannot be removed through DELETE /inboxes/{id}.

03 / INCOMING MAIL

Find new messages.

Use the inbox id, not the full email address, in URL paths. Poll the message list every ten seconds. Compare message IDs to find new arrivals, then fetch each new message. There are no push webhooks in v1.

LIST MESSAGEScURL
curl "https://pikamail.life/api/v1/inboxes/calmlink2097/messages?limit=25" \
  -H "Authorization: Bearer $PIKAMAIL_API_KEY"
READ ONE MESSAGEcURL
curl "https://pikamail.life/api/v1/inboxes/calmlink2097/messages/MESSAGE_ID" \
  -H "Authorization: Bearer $PIKAMAIL_API_KEY"

The list returns id, from, subject, received, expires, and attachmentCount. A single-message response adds text, sanitized html, and blocked attachment metadata. Times are Unix milliseconds. Pass the returned opaque nextBefore cursor unchanged as ?before= for the next page; null means no next page.

04 / WORKING EXAMPLES

Use your language.

These copyable examples list inboxes. Download the complete scripts to create accounts and read full messages. They use only standard libraries. Set PIKAMAIL_API_KEY in your local environment first.

JAVASCRIPT · NODE 20+Download full example
const response = await fetch(
  "https://pikamail.life/api/v1/inboxes",
  {headers: {Authorization:
    `Bearer ${process.env.PIKAMAIL_API_KEY}`}}
);
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const {inboxes} = await response.json();
for (const inbox of inboxes) {
  console.log(inbox.id, inbox.address);
}

Full script: node pikamail.mjs list, create, or read.

import json, os
from urllib.request import Request, urlopen

url = "https://pikamail.life/api/v1/inboxes"
req = Request(url, headers={
    "Authorization": "Bearer " + os.environ["PIKAMAIL_API_KEY"]
})
with urlopen(req, timeout=15) as response:
    inboxes = json.load(response)["inboxes"]
for inbox in inboxes:
    print(inbox["id"], inbox["address"])

Full script: python pikamail.py list, create, or read.

package main
import ("encoding/json"; "fmt"; "net/http"; "os"; "time")
func main() {
    key := os.Getenv("PIKAMAIL_API_KEY")
    if key == "" { panic("Set PIKAMAIL_API_KEY") }
    req, err := http.NewRequest("GET",
        "https://pikamail.life/api/v1/inboxes", nil)
    if err != nil { panic(err) }
    req.Header.Set("Authorization", "Bearer "+key)
    client := &http.Client{Timeout: 15 * time.Second}
    resp, err := client.Do(req)
    if err != nil { panic(err) }
    defer resp.Body.Close()
    if resp.StatusCode != 200 { panic(resp.Status) }
    var data struct { Inboxes []struct {
        ID string `json:"id"`
        Address string `json:"address"`
    } `json:"inboxes"` }
    if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
        panic(err)
    }
    for _, inbox := range data.Inboxes {
        fmt.Println(inbox.ID, inbox.Address)
    }
}

Full script: go run pikamail.go list, create, or read.

Automation tipHandle HTTP 429 by waiting the number of seconds in Retry-After. Avoid printing API keys, passwords, recovery codes, or message bodies to shared CI logs.
05 / REFERENCE

Endpoint reference.

MethodPath after /api/v1What it does
GET/domainsList available domain
GET/inboxesList your inboxes and managed accounts
POST/inboxesCreate a permanent account and primary inbox
DELETE/accounts/:idDelete an account created by this key's owner
GET/inboxes/:idRead inbox metadata
DELETE/inboxes/:idDelete a secondary inbox; primary is protected
GET/inboxes/:id/messagesList messages, up to 100 per page
GET/inboxes/:id/messages/:messageRead text, safe HTML, and attachment metadata
DELETE/inboxes/:id/messages/:messageDelete one message
06 / CAPACITY

Limits and errors.

10 / secondRequests per API key
3 / secondAccount creations per owner
30 daysMessage retention on permanent accounts
5 MiBRaw incoming email maximum

The service accepts at most 100 API requests per second across keys. A key owner may keep up to 1,000 API-created accounts. Mail creation is limited to three per second per source IP and 30 per second service-wide; API account creation also has a three-per-second owner limit. At most five keys may be active per account. The receive pipeline permits bursts up to ten messages per second, but sustained throughput is not guaranteed. Attachments are blocked and discarded.

StatusMeaningWhat to do
400Invalid alias, password, or requestCheck the JSON and field rules
401Invalid or revoked keyCreate a fresh key in Account settings
403Action not allowedCheck ownership or protected primary address
404Inbox, account, or message unavailableCheck the ID and key ownership
409Address already takenChoose another alias or omit it
429Rate limit hitWait for the Retry-After header
503Paused or at capacityRetry later

Errors use JSON such as {"error":"description"}.

07 / SECURITY

Handle mail carefully.

Protect the key

API keys are shown once and stored as hashes. Keep them server-side and revoke lost keys in Account settings.

Render safely

Message HTML is sanitized, but sender identities and links can be spoofed. Render HTML in an isolated sandbox and block remote resources.

Respect retention

Permanent addresses stay until removed. Their messages expire after 30 days; deleted accounts and inboxes lose their messages immediately.

PikaMail receives mail only. It cannot send, reply, or forward mail.