POST
https://api.craftkit.dev/v1/renders/:id/emailemail-channel share and sends the document to the recipient via Resend in one
call. The render must have succeeded. Email must be configured on the deployment
(RESEND_API_KEY + a sender address) or this returns 503. See Sharing.
Authorization
Bearer ck_live_…Path parameters
The render id.
Body
Recipient email (valid email address).
Recipient display name for the greeting (max 200 chars).
Optional note included in the email body (max 2000 chars).
ISO 8601 timestamp. Sets an expiry on the share link. Omit for no auto-expiry.
Response
201:
The created share id (channel
email).The link delivered in the email:
{shareBase}/share/{shareToken}.Resend provider message id for the sent email.
ISO 8601 timestamp the email was dispatched.
Errors
| Status | code | Meaning |
|---|---|---|
| 400 | invalid_json | Body is not valid JSON. |
| 400 | invalid_request | Body failed schema validation (issues included). |
| 401 | unauthorized | Missing/invalid/revoked key. |
| 404 | not_found | No render with that id in this key’s project. |
| 409 | not_ready | Render has not succeeded yet. |
| 502 | email_send_failed | Resend rejected the send. |
| 503 | email_not_configured | Resend is not configured (set RESEND_API_KEY + EMAIL_FROM). |
cURL
201