retrieve

Resend API 이메일 조회

보낸 이메일 한 건을 조회할 때 사용하는 API예요. 이메일 ID(email_id)를 경로 파라미터로 넘겨주면 해당 이메일의 현재 상태와 상세 내용을 확인할 수 있어요. 배달 상태(last_event)와 수신자, 본문, 태그까지 한 번에 볼 수 있답니다.

출처: 문서

본문

핵심 기능

  • 보낸 이메일 한 건을 조회해요(GET /emails/:email_id).
  • id 파라미터: 경로에 조회할 이메일의 email_id(string, 필수)를 넣어요.
  • 응답 필드: object, id, message_id, to, from, created_at, subject, html, text, bcc, cc, reply_to, last_event, scheduled_at, tags 항목이 담겨요.
  • last_event는 이메일의 현재 상태(예: delivered)를 나타내며, 가능한 모든 타입은 Email Events 개요에서 확인할 수 있어요.

사용 예시 — Node.js SDK로 이메일을 조회해요.

import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.emails.get(
  '37e4414c-5e25-4dbc-a071-43552a4bd53b',
);

응답 예시

{
  "object": "email",
  "id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c",
  "message_id": "<[email protected]>",
  "to": ["[email protected]"],
  "from": "Acme <[email protected]>",
  "created_at": "2026-04-03 22:13:42.674981+00",
  "subject": "Hello World",
  "html": "Congrats on sending your <strong>first email</strong>!",
  "text": null,
  "bcc": [],
  "cc": [],
  "reply_to": [],
  "last_event": "delivered",
  "scheduled_at": null,
  "tags": [
    {
      "name": "category",
      "value": "confirm_email"
    }
  ]
}

경로 파라미터

파라미터 타입 필수 설명
id string 이메일 ID

더 알아보기 (Learn more)