Create a website account
Sign in at PikaMail with a permanent address. Keep its one-time recovery code somewhere private.
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.
Sign in at PikaMail with a permanent address. Keep its one-time recovery code somewhere private.
Open Account settings → Developer API keys. Copy the key when shown; it cannot be viewed again.
Send the key as a Bearer token over HTTPS. Keep it on your server, not in browser JavaScript.
https://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.
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.
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.
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}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.
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.
pikamail.life/llm-api-docs.txtPlain text · full workflows and retry rules ↗Permanent API OpenAPI 3.1pikamail.life/openapi.jsonJSON · import into API tooling ↗Temporary API OpenAPI 3.1pikamail.life/openapi-temporary.jsonJSON · public and protected temporary inboxes ↗AI discovery indexpikamail.life/llms.txtPlain text · points tools to the right docs ↗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.
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.
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"}'{
"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}.
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.
curl "https://pikamail.life/api/v1/inboxes/calmlink2097/messages?limit=25" \
-H "Authorization: Bearer $PIKAMAIL_API_KEY"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.
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.
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.
Retry-After. Avoid printing API keys, passwords, recovery codes, or message bodies to shared CI logs.| Method | Path after /api/v1 | What it does |
|---|---|---|
| GET | /domains | List available domain |
| GET | /inboxes | List your inboxes and managed accounts |
| POST | /inboxes | Create a permanent account and primary inbox |
| DELETE | /accounts/:id | Delete an account created by this key's owner |
| GET | /inboxes/:id | Read inbox metadata |
| DELETE | /inboxes/:id | Delete a secondary inbox; primary is protected |
| GET | /inboxes/:id/messages | List messages, up to 100 per page |
| GET | /inboxes/:id/messages/:message | Read text, safe HTML, and attachment metadata |
| DELETE | /inboxes/:id/messages/:message | Delete one message |
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.
| Status | Meaning | What to do |
|---|---|---|
| 400 | Invalid alias, password, or request | Check the JSON and field rules |
| 401 | Invalid or revoked key | Create a fresh key in Account settings |
| 403 | Action not allowed | Check ownership or protected primary address |
| 404 | Inbox, account, or message unavailable | Check the ID and key ownership |
| 409 | Address already taken | Choose another alias or omit it |
| 429 | Rate limit hit | Wait for the Retry-After header |
| 503 | Paused or at capacity | Retry later |
Errors use JSON such as {"error":"description"}.
API keys are shown once and stored as hashes. Keep them server-side and revoke lost keys in Account settings.
Message HTML is sanitized, but sender identities and links can be spoofed. Render HTML in an isolated sandbox and block remote resources.
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.