개발자용 API

API둜 μž„μ‹œ λ°›μ€νŽΈμ§€ν•¨ 생성, 메일 쑰회, μ£Όμ†Œ 만료 μ—°μž₯이 κ°€λŠ₯ν•©λ‹ˆλ‹€. IPλ‹Ή rate limit이 μ μš©λ©λ‹ˆλ‹€.

λ°›μ€νŽΈμ§€ν•¨ 생성

POST https://10genmail.com/api/inbox

μš”μ²­ λ³Έλ¬Έ μ—†μŒ. μƒˆ μ£Όμ†Œμ™€ 빈 메일 λͺ©λ‘μ„ λ°˜ν™˜ν•©λ‹ˆλ‹€.

{
  "address": "quick-fox-abc123@10genmail.com",
  "slug": "quick-fox-abc123",
  "createdAt": 1234567890123,
  "expiresAt": 1234568490123,
  "ttlSeconds": 600,
  "messages": []
}

Rate limit: IPλ‹Ή λΆ„λ‹Ή 10회.

λ°›μ€νŽΈμ§€ν•¨ 쑰회

GET https://10genmail.com/api/inbox?address=...

쿼리: address(URL μΈμ½”λ”©λœ 이메일). λ°›μ€νŽΈμ§€ν•¨κ³Ό 메일을 λ°˜ν™˜ν•©λ‹ˆλ‹€. 만료 μ‹œ 404.

{
  "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
    }
  ]
}

Rate limit: IPλ‹Ή λΆ„λ‹Ή 120회.

만료 μ—°μž₯

POST https://10genmail.com/api/inbox/extend

λ³Έλ¬Έ: { "address": "..." }. 10λΆ„ μ—°μž₯. 생성 μ‹œμ λΆ€ν„° 총 30λΆ„κΉŒμ§€. κ°±μ‹ λœ λ°›μ€νŽΈμ§€ν•¨μ„ λ°˜ν™˜ν•©λ‹ˆλ‹€.

Rate limit: μ‘°νšŒμ™€ 동일(120/λΆ„).

개발자용 μž„μ‹œ 이메일 API | 10genmail