apicheats.dev resend/llms.txt Raw .md
POST

POST /emails/{email_id}/share — Resend API

Resend API

Create a shareable link for a sent or received email.

Base URL
https://api.resend.com
Auth
Authorization: Bearer <RESEND_API_KEY>
Last verified
2026-10-20 · upstream hash matched
Actions Try in browser→
Agents: curl -H "Accept: text/markdown" this URL
→ 186 tokens · Vary: Accept

Critical gotchas

All requests must include a User-Agent header (e.g. User-Agent: my-app/1.0) or the API returns HTTP 403.

cURL

curl -X POST 'https://api.resend.com/emails/email-id/share' \  -H "Authorization: Bearer $RESEND_API_KEY" \  -H 'User-Agent: my-app/1.0' \  -H 'Content-Type: application/json' \  -d '{  "expires_in": "example-expires-in"}'

Parameters

Name In Type Required Description
email_id path string Yes The ID of the email.
expires_in body string No How long the link stays valid for, as a duration like `10m`, `2 hours`, or `1 day`. Defaults to `48h` and cannot exceed 48 hours.

Response 200 OK

{
  "object": "email",
  "id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c",
  "url": "https://resend.com/shared?token=eyJhbGciOiJIUzI1NiJ9..."
}
Get a free Resend API key → sponsored

Affiliate link - we may earn a commission, at no extra cost to you.