API Reference

Share Email

POST /emails/:id/share — make a read-only public link to one sent email.

POST/emails/:id/share

Creates a public, read-only link to one email your account sent, so someone without a SendDart login can see exactly what went out. The link works for 48 hours. Making a new link for the same email turns the previous one off.

SendDart keeps only a hash of the link's token, so the full url appears in this response and nowhere else. Copy it now.

Needs a full-access API key. A sending-only key gets 401 restricted_api_key.
Path parameters
idstringrequired

The id of a sent email.

const res = await fetch('https://www.senddart.com/api/emails/4ef9a417-02e9-4d39-ad75-9611e0fcc33c/share', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer mb_xxxxxxxxx' },
});
const data = await res.json();
console.log(data);

Response

{
  "object": "email_share",
  "email_id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c",
  "url": "https://www.senddart.com/share/email/Zk3pR8sQ2vN1xTq7LmB4cW9yHd0aJf5uE6gKs2oPzXy",
  "expires_at": "2026-11-23T10:00:00.000Z"
}

An id that is not one of your sent emails returns 404 not_found.