API per sviluppatori
Usa l'API per creare caselle temporanee, leggere messaggi e prolungare la scadenza. Limite di richieste per IP.
Crea casella
POST https://10genmail.com/api/inbox
Nessun body. Restituisce un nuovo indirizzo e lista messaggi vuota.
{
"address": "quick-fox-abc123@10genmail.com",
"slug": "quick-fox-abc123",
"createdAt": 1234567890123,
"expiresAt": 1234568490123,
"ttlSeconds": 600,
"messages": []
}Limite: 10 richieste/minuto/IP.
Ottieni casella
GET https://10genmail.com/api/inbox?address=...
Query: address (email codificata in URL). Restituisce casella e messaggi, o 404 se scaduta.
{
"address": "quick-fox-abc123@10genmail.com",
"slug": "quick-fox-abc123",
"createdAt": 1234567890123,
"expiresAt": 1234568490123,
"ttlSeconds": 420,
"messages": [
{
"id": "msg-...",
"from": { "name": null, "email": "sender@example.com" },
"subject": "Hello",
"text": "...",
"html": null,
"date": "...",
"timestamp": 1234567900000
}
]
}Limite: 120 richieste/minuto/IP.
Prolunga casella
POST https://10genmail.com/api/inbox/extend
Body: { "address": "..." }. Aggiunge 10 minuti, fino a 30 totali dalla creazione. Restituisce casella aggiornata.
Limite: come get (120/min).