개발자 API 문서

API 개요 및 인증

tempmailto.com 개발자 API로 임시 이메일 생성, 별칭 지정, 메시지 조회를 프로그래밍 방식으로 자동화하세요.

기본 URL
https://tempmailto.com/api
인증

URL 및 서버 로그 노출을 방지하기 위해 Authorization 헤더(권장: Authorization: Bearer YOUR_API_KEY) 또는 X-API-Key 헤더로 키를 전달하세요. 기존 경로 방식도 하위 호환을 위해 지원됩니다.

인증 매개변수 유형 위치 예시
Authorization / X-API-Key string HTTP 헤더 (권장) Bearer YOUR_API_KEY
apiKey string 기존 URL 경로 방식 YOUR_API_KEY
GET 활성 도메인 조회

Fetch list of all allowed domain names configured on the platform that can be used to generate temporary mailboxes.

GET https://tempmailto.com/api/domains/{apiKey}/{type}
경로 매개변수
매개변수 유형 상태 설명
apiKey string 필수 Your secret API authorization key.
type string 필수 Domain filter type. Accepted values: all, free, premium.
curl -X GET "https://tempmailto.com/api/domains/all" -H "Authorization: Bearer YOUR_API_KEY"
응답 예시
{
  "status": true,
  "data": {
    "domains": [
      {
        "domain": "tempmailto.com",
        "type": "Free"
      }
    ]
  }
}
POST 새 이메일 생성

Instantly generate and register a new random temporary email address address.

POST https://tempmailto.com/api/emails/{apiKey}
경로 매개변수
매개변수 유형 상태 설명
apiKey string 필수 Your secret API authorization key.
curl -X POST "https://tempmailto.com/api/emails" -H "Authorization: Bearer YOUR_API_KEY"
응답 예시
{
  "status": true,
  "data": {
    "id": 142,
    "email": "[email protected]",
    "domain": "tempmailto.com",
    "ip": "127.0.0.1",
    "fingerprint": "f38b25...",
    "expire_at": "2026-06-20 13:45:00",
    "created_at": "2026-06-20 13:35:00",
    "email_token": "eyJpdiI..."
  }
}
POST 이메일 주소 지정

Transition an existing email to a customized address with a specific username and active domain.

POST https://tempmailto.com/api/emails/{apiKey}/{email}/{username}/{domain}
경로 매개변수
매개변수 유형 상태 설명
apiKey string 필수 Your secret API authorization key.
email string 필수 The current temporary email address you want to change.
username string 필수 The customized alias/username prefix for the new address.
domain string 필수 One of the active domain names fetched from the active domains endpoint.
curl -X POST "https://tempmailto.com/api/emails/[email protected]/john_doe/tempmailto.com" -H "Authorization: Bearer YOUR_API_KEY"
응답 예시
{
  "status": true,
  "data": {
    "id": 143,
    "email": "[email protected]",
    "domain": "tempmailto.com",
    "ip": "127.0.0.1",
    "fingerprint": "f38b25...",
    "expire_at": "2026-06-20 13:45:00",
    "created_at": "2026-06-20 13:35:00"
  }
}
POST 임시 이메일 삭제

Instantly release and expire a temporary email address to delete all cached inbox data.

POST https://tempmailto.com/api/emails/{apiKey}/{email}
경로 매개변수
매개변수 유형 상태 설명
apiKey string 필수 Your secret API authorization key.
email string 필수 The active temporary email address to be removed.
curl -X POST "https://tempmailto.com/api/emails/[email protected]" -H "Authorization: Bearer YOUR_API_KEY"
응답 예시
{
  "status": true,
  "message": "Email has been successfully deleted."
}
GET 받은편지함 조회

Retrieve all message metadata and message summaries received inside the inbox of the specified temporary address.

GET https://tempmailto.com/api/messages/{apiKey}/{email}
경로 매개변수
매개변수 유형 상태 설명
apiKey string 필수 Your secret API authorization key.
email string 필수 The temporary email address to fetch the messages for.
curl -X GET "https://tempmailto.com/api/messages/[email protected]" -H "Authorization: Bearer YOUR_API_KEY"
응답 예시
{
  "status": true,
  "data": [
    {
      "id": "M2ZkMXQ1",
      "subject": "Verify your Account",
      "from": "Service Provider",
      "from_email": "[email protected]",
      "receivedAt": "2026-06-20 13:40:00",
      "is_seen": false,
      "html": true
    }
  ]
}
GET 메시지 상세 조회

Retrieve the full HTML/plain text body content, sender fields, headers, and attachments list of a specific message ID.

GET https://tempmailto.com/api/messages/{apiKey}/message/{messageId}
경로 매개변수
매개변수 유형 상태 설명
apiKey string 필수 Your secret API authorization key.
messageId string 필수 The unique identifier key of the message.
curl -X GET "https://tempmailto.com/api/messages/message/M2ZkMXQ1" -H "Authorization: Bearer YOUR_API_KEY"
응답 예시
{
  "status": true,
  "data": {
    "id": "M2ZkMXQ1",
    "subject": "Verify your Account",
    "from": "Service Provider",
    "from_email": "[email protected]",
    "to": "[email protected]",
    "receivedAt": "2026-06-20 13:40:00",
    "is_seen": true,
    "html": true,
    "content": "<p>Hi John, your verification code is <b>857102</b></p>",
    "attachments": []
  }
}
POST 메시지 삭제

Permanently purge and delete a specific message from the temp inbox storage.

POST https://tempmailto.com/api/messages/{apiKey}/message/{messageId}
경로 매개변수
매개변수 유형 상태 설명
apiKey string 필수 Your secret API authorization key.
messageId string 필수 The unique identifier key of the message to be deleted.
curl -X POST "https://tempmailto.com/api/messages/message/M2ZkMXQ1" -H "Authorization: Bearer YOUR_API_KEY"
응답 예시
{
  "status": true,
  "message": "Message has been successfully deleted."
}