Skip to content
Esc
  • OverviewGuidesWhat exists today, and where to start.
  • QuickstartGuidesKey, domain, first send — in that order.
  • AuthenticationGuidesBearer keys, the mandatory User-Agent, and what each refusal means.
  • ErrorsGuidesThe whole vocabulary, with the status each name carries.
  • IdempotencyGuidesRetry a send without sending it twice.
  • PaginationGuidesCursors are item IDs, not page numbers.
  • Rate limitsGuidesTen a second per team, and the headers that tell you where you are.
  • Sending newslettersGuidesUse a campaign, or include an unsubscribe link.
  • EventsGuidesEvery event a webhook can carry, with one real payload each.
  • DomainsGuidesThe records, where they go at each registrar, and what the page does while you wait.
  • Address verificationGuidesDon't send to addresses that don't exist, and verify a list before you mail it.
  • TrackingGuidesOpens and clicks: one record, two toggles, and what an open really means.
  • Sign-up formsGuidesPop-ups and embedded forms on your site, and the rules that pick one.
  • Website trackingGuidesrasket.js on your own site: the snippet, consent, three events and the check.
  • TemplatesGuidesFifty-seven starters sorted by goal, and how to keep a campaign as a template.
  • ReceivingGuidesInbound mail, and the Inbox: a webhook fires, you read it, you answer it.
  • InboxGuidesChannels, personal mailboxes and seats: who sees what, and where a reply goes.
  • Mail appsGuidesComing soon: your Rasket address in Apple Mail, Outlook and the Gmail app.
  • Inbox APIGuidesOpen, read and answer support conversations from your app, with the same key.
  • Support inbox in your appGuidesA Contact us form that opens a conversation your team answers, in five minutes.
  • Replies to your emailsGuidesOne field on a send, and the customer's reply opens a conversation.
  • Let an agent triageGuidesAn AI agent reads, notes and drafts over MCP; a person sends.
  • Node SDKGuidesThe rasket package: typed from the API's own document, retries only what is safe.
  • Python SDKGuidesThe rasket package on PyPI: the Node client's methods, in snake_case, over httpx.
  • Go SDKGuidesThe rasket-go module: the Node client's methods in Go, standard library only.
  • PHP SDKGuidesThe rasket/rasket-php package: the Node client's methods over curl, typed for PHPStan.
  • Ruby SDKGuidesThe rasket gem: the Node client's methods in snake_case, with RBS signatures.
  • Java SDKGuidesThe com.rasket:rasket-java package: the Node client's methods for Java 11+, no dependencies.
  • .NET SDKGuidesThe Rasket NuGet package: the Node client's methods as async C#, no dependencies.
  • Rust SDKGuidesThe rasket crate: the Node client's methods as async Rust on reqwest and serde.
  • Any languageGuidesGo, PHP, Ruby, Java, C#, Rust, Elixir and curl: one tested program each.
  • MCP serverGuidesConnect Claude, ChatGPT or any MCP client: your scopes, no key.
  • AI assistGuidesSubject lines, drafts and diagnosis — in the dashboard and over the API, off until you allow it.
  • AgentsGuidesLet an AI agent set Rasket up: the skill, the rules file, MCP, and the recipe they share.
  • AI coding agentsGuidesRules for AGENTS.md, CLAUDE.md and Cursor that point a coding agent at Rasket.
  • OAuthGuidesLet another app act for a team: register, authorize with PKCE, exchange, refresh.
  • Single sign-onGuidesOIDC login for your team, a domain proved by DNS, enforcement and break-glass.
  • IntegrationsGuidesEvery integration and its status, and Rasket on Vercel, Netlify and Cloudflare.
  • SMTPGuidesSend from anything that speaks SMTP: settings, setup guides, limits and replies.
  • ZapierGuidesSend email, add contacts and react to email events from a Zap, with no code.
  • n8nGuidesComing soon: the Rasket node and trigger for n8n workflows.
  • VercelGuidesAdd Rasket on Vercel: a Sending key in each project as RASKET_API_KEY, no copying.
  • WordPressGuidesComing soon: the Rasket plugin, sending every email your site sends.
  • NotionGuidesTurn a Notion database of people into contacts in a segment, once or every hour.
  • Migrating to RasketGuidesBring contacts, unsubscribes, lists and templates from Mailchimp, Klaviyo and more.
  • Switching providersGuidesChange the base URL and key; what works unchanged, and what differs.
  • PipedreamGuidesComing soon: Rasket actions and instant sources for Pipedream workflows.
  • FramerGuidesComing soon: the Rasket plugin for sign-up forms on a Framer site.
  • MakeGuidesComing soon: send email and texts, and react to their events from a Make scenario.
  • monday.comGuidesComing soon: turn monday.com board items into contacts.
  • ClickUpGuidesComing soon: ready-made Zapier and Make automations for ClickUp tasks.
  • HubSpotGuidesComing soon: keep HubSpot contacts and lists in step with Rasket.
  • WebflowGuidesComing soon: Webflow form submissions as contacts, orders as store events.
  • WixGuidesComing soon: Wix contacts, carts and orders as store flows.
  • SlackGuidesComing soon: email alerts in the Slack channels you choose.
  • Google SheetsGuidesComing soon: turn a sheet tab of people into contacts in a segment.
  • AirtableGuidesComing soon: turn an Airtable table of people into contacts in a segment.
  • ShopifyGuidesComing soon: Rasket for Shopify, with customers, store events and flows.
  • SupabaseGuidesComing soon: connect Supabase and send its Auth emails from your own domain.
  • SMS quickstartGuidesSend your first text to a US or Canadian phone.
  • Get a numberGuidesToll-free or local numbers, and the registration carriers require.
  • Consent and STOPGuidesWho you may text, the proof you keep, and replies like STOP.
  • SMS campaignsGuidesText a segment, at a local time, priced before you send.
  • Texts in automationsGuidesThe Send SMS step, and what happens to a contact without a phone.
  • SMS webhooksGuidesThe six sms events and what each one carries.
  • SMS pricingGuidesTexts included in each plan, the price per message, and number fees.
  • EmailsAPI referenceSend, batch, retrieve, list, reschedule, cancel, attachments.
  • DomainsAPI referenceAdd a domain, publish its records, verify it.
  • API keysAPI referenceCreate, list, rename and revoke credentials.
  • WebhooksAPI referencePayloads, signature verification, retries and replay.
  • SuppressionsAPI referenceAddresses we will not send to, and why.
  • LogsAPI referenceEvery request made with this team's credentials.
  • MetricsAPI referenceDelivery, bounce, complaint and engagement counts.
  • TemplatesAPI referenceVersioned email content with typed variables, addressed by ID or alias.
  • ContactsAPI referenceYour audience: contacts, their typed properties, segments and topic choices.
  • SegmentsAPI referenceAudiences defined by a filter, by hand, or both.
  • TopicsAPI referenceWhat contacts subscribe to, and the preference page's list.
  • CampaignsAPI referenceCampaigns, at /broadcasts: one message to a segment, from draft to results.
  • AutopilotAPI referenceStore campaigns Autopilot drafts for you, each waiting for a yes or a skip.
  • ImportsAPI referenceCSV uploads: column mapping, conflicts and counts.
  • AutomationsAPI referenceWorkflows that run per contact: the graph, its versions, and every run.
  • Custom eventsAPI referenceThe names your product fires, and what starts a workflow.
  • ReceivingAPI referenceMail sent to you: the message, its attachments, its raw source.
  • OAuthAPI referenceClient registration, the token endpoint, and the grants a team has given.
  • TeamAPI referenceThe team a credential belongs to: its plan, sender identity, AI flag and members.
  • BillingAPI referencePlan, usage, invoices and add-ons, and the hosted pages where a customer pays.
  • AI helpersAPI referenceSubject lines, a first draft, and why an email did what it did.
  • InboxAPI referenceChannels, conversations, messages, notes and search in your support inbox.
  • SMSAPI referenceSend, schedule and cancel texts, numbers, test phones and SMS consent.

GuidesSwitching providers

Switching providers

If your code was written for an email API with the same paths as ours, most of it keeps working once you change the base URL and the key. Here is what to change, what works as it is, and what behaves differently.

What to change

  • The base URL becomes https://api.rasket.com, with nothing after it: paths such as /emails go straight after the host. A trailing slash, or plain HTTP instead of HTTPS, is answered with a redirect, which some clients do not follow for a POST.
  • The key becomes a Rasket key, which starts with rk_. It is sent the same way, as Authorization: Bearer. Make one on the dashboard's API keys page; the authentication page says which kind.
  • Your sending domain is added and verified again here. Its records are our own, including the DKIM record at rasket._domainkey, so both providers can send from it while you move. See domains.

With a client library, set the base URL where the library takes it, usually an option when you create the client or an environment variable it reads, and leave every call as it is. Each comparison says what that setting is called for that provider. Keep the key in an environment variable such as RASKET_API_KEY.

Writing new code instead? Every request is plain HTTPS, and send from any language has a tested program in eight languages.

What stays the same

  • Requests and answers are JSON with the same field names, and a refusal carries statusCode, name and message, with the same names for the same problems. One exception: a key we do not recognise is 401 invalid_api_key, not a 403.
  • Lists use limit, after and before, and answer has_more and data.
  • Idempotency-Key on a send works as you expect, remembered for 24 hours.
  • Every request needs a User-Agent. Client libraries send one; a request without one is refused with 403.

Two things to check in your code: every time is ISO 8601 in UTC, such as 2026-09-08T20:41:00.000Z, so code that compares times as strings in another format will not match; and the limit is 10 requests a second for the whole team, across all its keys (rate limits).

Calls that work unchanged

Endpoints that behave the same
ResourceEndpoints
EmailsPOST /emails/batch
Received emailsGET /emails/receiving/{email_id}, GET /emails/receiving/{email_id}/attachments
DomainsPOST /domains/claim, GET /domains/{domain_id}/claim, POST /domains/{domain_id}/claim/verify, POST /domains/{domain_id}/verify, GET /domains/{domain_id}, GET /domains, DELETE /domains/{domain_id}
API keysDELETE /api-keys/{api_key_id}
WebhooksPOST /webhooks, GET /webhooks, PATCH /webhooks/{webhook_id}, DELETE /webhooks/{webhook_id}, GET /webhooks/{webhook_id}/events/{event_id}, GET /webhooks/{webhook_id}/events/{event_id}/attempts, POST /webhooks/{webhook_id}/events/{event_id}/replay
SuppressionsPOST /suppressions, POST /suppressions/batch/add, POST /suppressions/batch/remove, GET /suppressions/{suppression}, DELETE /suppressions/{suppression}
TemplatesPATCH /templates/{id}, DELETE /templates/{id}, POST /templates/{id}/publish, POST /templates/{id}/duplicate
ContactsDELETE /contacts/{id}, GET /contacts/{contact_id}/segments, POST /contacts/{contact_id}/segments/{segment_id}, DELETE /contacts/{contact_id}/segments/{segment_id}, GET /contacts/{contact_id}/topics, PATCH /contacts/{contact_id}/topics, POST /contact-properties, GET /contact-properties, GET /contact-properties/{id}, PATCH /contact-properties/{id}, DELETE /contact-properties/{id}, GET /contacts/imports, GET /contacts/imports/{id}
Segments and topicsPOST /segments, GET /segments, GET /segments/{id}, DELETE /segments/{id}, POST /topics, GET /topics, GET /topics/{id}, PATCH /topics/{id}, DELETE /topics/{id}
BroadcastsGET /broadcasts/{id}, PATCH /broadcasts/{id}, DELETE /broadcasts/{id}, POST /broadcasts/{id}/cancel, GET /broadcasts/{id}/recipients, GET /broadcasts/{id}/clicked-links
Automations and eventsPOST /automations, GET /automations/{automation_id}, PATCH /automations/{automation_id}, DELETE /automations/{automation_id}, POST /automations/{automation_id}/duplicate, POST /automations/{automation_id}/stop, POST /events, POST /events/send, GET /events/{identifier}, PATCH /events/{identifier}, DELETE /events/{identifier}
Connected appsGET /oauth/grants, DELETE /oauth/grants/{oauth_grant_id}

Calls that work, with a difference

These take the same request and answer the same shape. Each has one difference your code might notice; most only add fields or filters it can ignore.

Endpoints with a difference
EndpointWhat is different
POST /emailsscheduled_at takes an ISO 8601 time or a short phrase such as in 2 hours or tomorrow at 9am; other phrases are refused with 422. Custom headers cannot replace From, To, Cc, Bcc, Subject, Message-ID or Date.
GET /emails/{email_id}html and text are null once the email's body has passed its retention period. Adds tags and scheduled_at.
GET /emailsAdds optional filters. Leave them out and the list behaves as your client expects.
PATCH /emails/{email_id}Answers object and id only, not the whole email.
POST /emails/{email_id}/cancelAnswers object and id only, not the whole email.
POST /emails/{email_id}/shareexpires_in is a duration such as 10m or 2 hours, 48 hours at most. Adds expires_at.
GET /emails/{email_id}/attachmentsdownload_url is our own link, valid for 15 minutes, that downloads the file. Fetch it before it expires.
GET /emails/{email_id}/attachments/{attachment_id}download_url is our own link, valid for 15 minutes, that downloads the file. Fetch it before it expires.
GET /emails/metricsunsubscribed and unsubscribe_rate are refused, as are the email and broadcast filters and dimensions and any time zone but UTC. Adds attempted and data_as_of.
GET /emails/receivingAdds dropped_reason and optional filters.
GET /emails/receiving/{email_id}/attachments/{attachment_id}download_url is our own link, valid for 15 minutes, that downloads the file. Fetch it before it expires. A part we did not store has no download_url.
POST /domainsThe DKIM record is named rasket._domainkey and holds a 2048-bit key split into two strings.
PATCH /domains/{domain_id}Turning off a domain's last capability is refused with 400.
POST /api-keysThe token starts with rk_. Adds optional Inbox and SMS access fields.
GET /api-keysAdds optional fields. A client that ignores them is unaffected.
PATCH /api-keys/{api_key_id}Adds optional fields. A client that ignores them is unaffected.
GET /webhooks/{webhook_id}signing_secret is masked. Keep it from the create response, or reveal it in the dashboard.
GET /webhooks/{webhook_id}/eventsAdds optional filters. Leave them out and the list behaves as your client expects. before works as well as after.
GET /suppressionsAdds optional filters. Leave them out and the list behaves as your client expects.
GET /logsNeeds a full-access key: a sending-only key is refused with 401 restricted_api_key. Adds optional fields and filters.
GET /logs/{log_id}Needs a full-access key. request_body is redacted, and response_body is kept only for a refusal.
POST /templatesAn alias is lower-case letters, digits, - and _, up to 63 characters, and cannot look like an id. Variables are typed.
GET /templates/{id}Adds optional fields. A client that ignores them is unaffected.
GET /templatesAdds optional filters. Leave them out and the list behaves as your client expects.
POST /contactsSegments and topics can be set on create. Adds subscription_status.
GET /contactsAdds optional fields. A client that ignores them is unaffected.
GET /contacts/{id}Adds subscription_status. unsubscribed is true both for someone who left and for someone who never subscribed.
PATCH /contacts/{id}Setting unsubscribed unsubscribes the person from everything and records their consent change.
POST /contacts/importsA multipart upload of up to 50 MB, imported in the background.
PATCH /segments/{id}Adds an optional filter. Changing the rule is refused while a campaign to the segment is sending.
POST /broadcastsWith send set to true, the campaign is checked before it goes. A failed content check is refused with 422 and the checks in details.
GET /broadcastsAdds optional filters. Leave them out and the list behaves as your client expects.
POST /broadcasts/{id}/sendNeeds a verified domain, your postal address and a segment that resolves. A failed content check is refused with 422.
GET /automationsAdds optional filters. Leave them out and the list behaves as your client expects.
GET /automations/{automation_id}/runsAdds optional filters. Leave them out and the list behaves as your client expects. A run that is waiting shows as running.
GET /automations/{automation_id}/runs/{run_id}A step that is waiting shows as running.
GET /eventsAdds optional filters. Leave them out and the list behaves as your client expects.

Calls that are not available

POST /audiences, GET /audiences, GET /audiences/{id}, DELETE /audiences/{id} answer 404 not_found. Use segments to group contacts instead.

Webhooks

Events arrive with the same envelope, type, created_at and data, and the same event names, and they are signed the same way. Your verification code keeps working once it has the new signing secret, which starts with whsec_ and is shown once when you create the endpoint. Recreate each endpoint here; see events for every payload.

  • Email events always carry message_id, even on email.sent and email.failed.
  • Emails sent by an automation carry automation_run_id; other emails leave the field out.
  • Open events keep the real user agent, mail-provider image proxies included.

Moving an SMTP mailer

An app that sends over SMTP changes its settings and nothing else. Each message becomes one send through the API, so domains, suppressions and webhooks apply as they do to the API.

Rasket SMTP settings
SettingValue
Hostsmtp.rasket.com
Port465 (TLS from the start) or 587 (STARTTLS); 2465 and 2587 where a network blocks those
Usernamerasket
PasswordAn API key that starts with rk_
SMTP settings by provider
Moving fromWhat changes
SendGridThe username apikey becomes rasket, and the password becomes a Rasket key.
PostmarkThe server token you sign in with becomes the username rasket and a Rasket key as the password.
MailgunThe postmaster@ login becomes the username rasket, and the password becomes a Rasket key.

Every move points the host at smtp.rasket.com. Port 25 is not offered, so a mailer set to it, or to 2525, moves to one of the ports above. The relay also accepts the username and idempotency header of the API that shares our paths, so a mailer set up for it changes only the host and the password.

  • Idempotency. Put an X-Rasket-Idempotency-Key header on the message to make a retry safe. Without one, the relay makes a key from the message's Message-ID and envelope, so the same message sent twice is sent once. SendGrid, Postmark and Mailgun have no SMTP header the relay reads.
  • Provider headers. Remove headers meant for your old provider, such as X-SMTPAPI: the relay passes X- headers on, so the recipient would see them.
  • Size. A message over SMTP can be about 4 MB with its attachments. Send anything bigger through the API.

Every setting, refusal code and setup guide is on the SMTP relay page.

Contacts, lists and templates

Moving your audience is a separate step that never sends anything: migrating to Rasket brings contacts, unsubscribes, lists, segments and templates from your old platform.