Public Email API — programmatic sends
If you need to trigger campaigns or enroll contacts in journeys from your own systems, the email API exposes three Bearer-authenticated endpoints.
Base URL:
https://us-central1-turtini.cloudfunctions.net/emailPublicApi/v1/email/
This is not under https://api.turtini.com: the email endpoints are served by their own function, and api.turtini.com/v1/email/... answers 404.
Required: an API key with the email:send scope (Settings → API Keys → New key → check "email:send"). Pass it as Authorization: Bearer <key>. Every endpoint is a POST.
Endpoints:
POST /v1/email/campaigns/{id}/send
• Sends an existing campaign now
• No body needed
• Response: { "ok": true, ... } with the send result
• Use case: "send our weekly digest" from your own cron
POST /v1/email/campaigns/{id}/send-to
• Sends an existing campaign to a single contact (one-off transactional)
• Body: { "contactId": "..." } or { "email": "[email protected]" } (the email must belong to an existing contact in your org)
• Response: { "ok": true, "contactId": "..." }
• Use case: order confirmation, welcome email triggered by your app
POST /v1/email/journeys/{id}/enroll
• Enrolls a contact in a journey
• Body: { "contactId": "..." } or { "email": "[email protected]" } (an existing contact, as above)
• Response: { "ok": true, "contactId": "..." }
• Use case: external system signals "lead converted" → enroll in onboarding journey
Rate limits:
• No per-key request rate limit is applied, and the endpoint does not send 429 or Retry-After itself
Error responses (JSON { "error": "..." }):
• 400 — no contact matched the contactId or email given, or the send itself failed (the message says why)
• 401 — missing or invalid Bearer key, or the key lacks the email:send scope
• 403 — the campaign or journey belongs to another org
• 404 — campaign, journey or route not found
• 405 — any method other than POST
Costs:
• Sends count toward the same +15% Resend chargeback as in-app sends
• Visible on Account → Pay-as-you-go → Email line item
These three endpoints are not in the OpenAPI spec at api.turtini.com/v1/openapi.json; this article is their reference.