로그인 불필요 · API 키 불필요
익명으로 바로 시작하기
TempMail 웹 앱과 동일한 API입니다. 모든 편지함은 임의의 주소를 부여받으며 24시간 동안 유지됩니다.
- 1POST /accounts: 임의의 주소와 비밀번호로 편지함을 생성합니다.
- 2POST /token: 주소와 비밀번호를 tm_box_ 편지함 토큰으로 교환합니다.
- 3GET /messages: 수신된 메일을 반환하며 인증 코드가 미리 추출되어 제공됩니다.
BASE=https://www.tempmail.ai/api/v1
# 1. Create a mailbox (random address + password)
curl -s -X POST "$BASE/accounts" \
-H "Content-Type: application/json" -d '{}'
# {"id":"…","address":"k3x9m2q7…@tempmail.ai","password":"…","expires_at":"…"}
# 2. Exchange the credentials for a mailbox token
curl -s -X POST "$BASE/token" \
-H "Content-Type: application/json" \
-d '{"address":"ADDRESS","password":"PASSWORD"}'
# {"id":"…","token":"tm_box_…","token_type":"Bearer","expires_at":"…"}
# 3. Read messages – verification codes are already extracted
curl -s "$BASE/messages" -H "Authorization: Bearer TOKEN"
# {"items":[{"from":"[email protected]","subject":"Your verification code","verification_code":"482913",…}],"total":1,…}