POST
/emails/{email_id}/share
Resend APICreate a shareable link for a sent or received email.
- Base URL
- https://api.resend.com
- Auth
- Authorization: Bearer <RESEND_API_KEY>
- Last verified
- 2026-09-03 · upstream hash matched
Actions
Agents: curl -H "Accept: text/markdown" this URL
→ 207 tokens · Vary: Accept
→ 207 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.
The to field is an array of strings, even when sending to a single recipient.
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": "string"}'Get a free Resend API key → sponsored
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..."
}