# API reference

> All endpoints of the Sendtide API by group, with parameters, request body, responses and a curl example. Generated from the OpenAPI 3.1 specification.

URL: https://sendtide.ch/en/docs/api/

102 endpoints of the Sendtide API, grouped by topic. The reference is generated from the OpenAPI specification at build time.
Base URL: https://api.sendtide.ch, specification version 1.0.0. Every request carries Authorization: Bearer sk_live_… or sk_test_….
The specification as a file: [openapi.json](https://api.sendtide.ch/v1/openapi.json). Concepts such as scopes, idempotency, pagination and versions are explained in the guides, [errors and limits](https://sendtide.ch/en/docs/errors-and-limits/) is a good start.
## Emails
- [POST /v1/emails](https://sendtide.ch/en/docs/api/emails/#sendEmail)Send an email
- [GET /v1/emails](https://sendtide.ch/en/docs/api/emails/#searchEmails)Search emails
- [POST /v1/emails/batch](https://sendtide.ch/en/docs/api/emails/#sendBatch)Send up to 1'000 emails
- [POST /v1/emails/mime](https://sendtide.ch/en/docs/api/emails/#sendMime)Send a complete MIME message
- [GET /v1/emails/{id}](https://sendtide.ch/en/docs/api/emails/#getEmail)Get an email with its events
- [PATCH /v1/emails/{id}](https://sendtide.ch/en/docs/api/emails/#rescheduleEmail)Change the send time of a queued email
- [POST /v1/emails/{id}/cancel](https://sendtide.ch/en/docs/api/emails/#cancelEmail)Cancel a queued email
- [POST /v1/batches/{id}/cancel](https://sendtide.ch/en/docs/api/emails/#cancelBatch)Cancel the queued emails of a batch
- [GET /u/{token}](https://sendtide.ch/en/docs/api/emails/#unsubscribePage)Unsubscribe page (public)
- [POST /u/{token}](https://sendtide.ch/en/docs/api/emails/#unsubscribe)One-click unsubscribe (RFC 8058, public)
## Keys
- [GET /v1/keys](https://sendtide.ch/en/docs/api/keys/#listKeys)List API keys
- [POST /v1/keys](https://sendtide.ch/en/docs/api/keys/#createKey)Create an API key
- [DELETE /v1/keys/{id}](https://sendtide.ch/en/docs/api/keys/#revokeKey)Revoke an API key
- [POST /v1/keys/{id}/rotate](https://sendtide.ch/en/docs/api/keys/#rotateKey)Rotate an API key
## Templates
- [GET /v1/templates](https://sendtide.ch/en/docs/api/templates/#listTemplates)List templates
- [POST /v1/templates](https://sendtide.ch/en/docs/api/templates/#createTemplate)Create a template
- [GET /v1/templates/{id}](https://sendtide.ch/en/docs/api/templates/#getTemplate)Get a template (draft and published version)
- [PATCH /v1/templates/{id}](https://sendtide.ch/en/docs/api/templates/#updateTemplate)Change the draft (publish with "publish": true)
- [DELETE /v1/templates/{id}](https://sendtide.ch/en/docs/api/templates/#deleteTemplate)Delete a template
- [POST /v1/templates/{id}/publish](https://sendtide.ch/en/docs/api/templates/#publishTemplate)Publish the draft as a new version
- [POST /v1/templates/{id}/render](https://sendtide.ch/en/docs/api/templates/#renderTemplate)Render a preview with data
- [POST /v1/templates/{id}/test](https://sendtide.ch/en/docs/api/templates/#testTemplate)Send a test mail
- [GET /v1/templates/{id}/versions](https://sendtide.ch/en/docs/api/templates/#listTemplateVersions)List published versions, newest first
- [GET /v1/templates/{id}/versions/{version}](https://sendtide.ch/en/docs/api/templates/#getTemplateVersion)Get one version with its content
- [POST /v1/templates/{id}/versions/{version}/restore](https://sendtide.ch/en/docs/api/templates/#restoreTemplateVersion)Copy a version into the draft
## Domains
- [GET /v1/domains](https://sendtide.ch/en/docs/api/domains/#listDomains)List sending domains
- [POST /v1/domains](https://sendtide.ch/en/docs/api/domains/#createDomain)Add a domain
- [GET /v1/domains/{id}](https://sendtide.ch/en/docs/api/domains/#getDomain)Get a domain
- [PATCH /v1/domains/{id}](https://sendtide.ch/en/docs/api/domains/#updateDomain)Turn receiving on or off, set the tracking domain
- [DELETE /v1/domains/{id}](https://sendtide.ch/en/docs/api/domains/#deleteDomain)Remove a domain
- [POST /v1/domains/{id}/verify](https://sendtide.ch/en/docs/api/domains/#verifyDomain)Check the DNS records now
- [GET /v1/domains/{id}/dmarc](https://sendtide.ch/en/docs/api/domains/#getDomainDMARC)DMARC reports of a domain
- [GET /v1/domains/{id}/bimi](https://sendtide.ch/en/docs/api/domains/#getDomainBIMI)Is BIMI possible for the domain?
## Webhooks
- [GET /v1/webhooks](https://sendtide.ch/en/docs/api/webhooks/#listWebhooks)List webhooks
- [POST /v1/webhooks](https://sendtide.ch/en/docs/api/webhooks/#createWebhook)Add a webhook
- [PATCH /v1/webhooks/{id}](https://sendtide.ch/en/docs/api/webhooks/#updateWebhook)Change a webhook
- [DELETE /v1/webhooks/{id}](https://sendtide.ch/en/docs/api/webhooks/#deleteWebhook)Remove a webhook
- [POST /v1/webhooks/{id}/test](https://sendtide.ch/en/docs/api/webhooks/#testWebhook)Send a test event now
- [GET /v1/webhooks/{id}/deliveries](https://sendtide.ch/en/docs/api/webhooks/#listWebhookDeliveries)Deliveries of a webhook, newest first
- [POST /v1/webhooks/{id}/deliveries/{delivery_id}/retry](https://sendtide.ch/en/docs/api/webhooks/#retryWebhookDelivery)Send the event of a delivery again
- [POST /v1/webhooks/{id}/replay](https://sendtide.ch/en/docs/api/webhooks/#replayWebhook)Send the events of a time range again
- [POST /v1/webhooks/listen](https://sendtide.ch/en/docs/api/webhooks/#startWebhookListener)Start the CLI listener of the key
- [GET /v1/webhooks/listen/{id}/events](https://sendtide.ch/en/docs/api/webhooks/#pollWebhookListener)Wait for the next events of the CLI listener
- [DELETE /v1/webhooks/listen/{id}](https://sendtide.ch/en/docs/api/webhooks/#stopWebhookListener)Stop the CLI listener
- [POST your endpoint](https://sendtide.ch/en/docs/api/webhooks/#emailEvent)An event of a sent or received mail
## Integrations
- [GET /v1/integrations/posthog](https://sendtide.ch/en/docs/api/integrations/#getPostHogIntegration)The PostHog integration
- [PUT /v1/integrations/posthog](https://sendtide.ch/en/docs/api/integrations/#putPostHogIntegration)Set up or change the PostHog integration
- [DELETE /v1/integrations/posthog](https://sendtide.ch/en/docs/api/integrations/#deletePostHogIntegration)Remove the PostHog integration
- [POST /v1/integrations/posthog/test](https://sendtide.ch/en/docs/api/integrations/#testPostHogIntegration)Send a test event to PostHog now
- [POST /v1/integrations/posthog/backfill](https://sendtide.ch/en/docs/api/integrations/#backfillPostHogIntegration)Send the events of the last days to PostHog
- [GET /v1/integrations/posthog/deliveries](https://sendtide.ch/en/docs/api/integrations/#listPostHogDeliveries)Deliveries to PostHog, newest first
- [POST /v1/integrations/posthog/deliveries/{delivery_id}/retry](https://sendtide.ch/en/docs/api/integrations/#retryPostHogDelivery)Send the event of a delivery to PostHog again
## Inbound
- [GET /v1/inbound/routes](https://sendtide.ch/en/docs/api/inbound/#listInboundRoutes)List routes for received mail
- [POST /v1/inbound/routes](https://sendtide.ch/en/docs/api/inbound/#createInboundRoute)Add a route
- [PATCH /v1/inbound/routes/{id}](https://sendtide.ch/en/docs/api/inbound/#updateInboundRoute)Change a route
- [DELETE /v1/inbound/routes/{id}](https://sendtide.ch/en/docs/api/inbound/#deleteInboundRoute)Remove a route
- [GET /v1/inbound/forward/confirm](https://sendtide.ch/en/docs/api/inbound/#showForwardConfirmation)Page where the owner of a forward address confirms
- [POST /v1/inbound/forward/confirm](https://sendtide.ch/en/docs/api/inbound/#confirmForward)Confirm a forward address
- [GET /v1/inbound/emails](https://sendtide.ch/en/docs/api/inbound/#listInboundEmails)List received mail
- [GET /v1/inbound/emails/{id}](https://sendtide.ch/en/docs/api/inbound/#getInboundEmail)Get a received mail with text, HTML and the reply without quote
## Suppressions
- [GET /v1/suppressions](https://sendtide.ch/en/docs/api/suppressions/#listSuppressions)List suppressed addresses
- [POST /v1/suppressions](https://sendtide.ch/en/docs/api/suppressions/#addSuppression)Suppress an address
- [POST /v1/suppressions/import](https://sendtide.ch/en/docs/api/suppressions/#importSuppressions)Import a CSV of suppressed addresses
- [GET /v1/suppressions/export](https://sendtide.ch/en/docs/api/suppressions/#exportSuppressions)Export the suppression list as CSV
- [POST /v1/suppressions/delete](https://sendtide.ch/en/docs/api/suppressions/#deleteSuppressions)Allow up to 10'000 addresses again
- [DELETE /v1/suppressions/{address}](https://sendtide.ch/en/docs/api/suppressions/#deleteSuppression)Allow an address again
## Sub-accounts
- [GET /v1/tenants](https://sendtide.ch/en/docs/api/sub-accounts/#listTenants)List sub-accounts
- [POST /v1/tenants](https://sendtide.ch/en/docs/api/sub-accounts/#createTenant)Add a sub-account (Business up to 10, Scale unlimited)
- [DELETE /v1/tenants/{slug}](https://sendtide.ch/en/docs/api/sub-accounts/#deleteTenant)Remove a sub-account with its data
- [POST /v1/tenants/{slug}/keys](https://sendtide.ch/en/docs/api/sub-accounts/#createTenantKey)Create a key of a sub-account
- [PUT /v1/tenants/{slug}/templates/{alias}](https://sendtide.ch/en/docs/api/sub-accounts/#adaptTenantTemplate)Adapt a main template for a sub-account (locked blocks stay)
- [DELETE /v1/tenants/{slug}/templates/{alias}](https://sendtide.ch/en/docs/api/sub-accounts/#resetTenantTemplate)Back to the main template
## Statistics
- [GET /v1/logs](https://sendtide.ch/en/docs/api/statistics/#listLogs)List API requests of the account
- [GET /v1/stats](https://sendtide.ch/en/docs/api/statistics/#getStats)Mail per day with rates
- [POST /v1/analytics/metrics](https://sendtide.ch/en/docs/api/statistics/#getAnalyticsMetrics)Metrics per time bucket and dimension
- [GET /v1/analytics/usage](https://sendtide.ch/en/docs/api/statistics/#getAnalyticsUsage)Accepted and billed mail per day or month
## Account
- [GET /v1/account/sso](https://sendtide.ch/en/docs/api/account/#getSSO)Single sign-on of the dashboard (owner or admin in the dashboard)
- [PUT /v1/account/sso](https://sendtide.ch/en/docs/api/account/#putSSO)Configure OpenID Connect single sign-on (Business and Scale)
- [DELETE /v1/account/sso](https://sendtide.ch/en/docs/api/account/#deleteSSO)Remove single sign-on (sessions that came from it end)
- [POST /v1/account/sso/domains/{domain}/verify](https://sendtide.ch/en/docs/api/account/#verifySSODomain)Look for the TXT record of an SSO email domain now (owner or admin in the dashboard)
- [GET /v1/account](https://sendtide.ch/en/docs/api/account/#getAccount)The account, its status, retention and reputation
- [PATCH /v1/account](https://sendtide.ch/en/docs/api/account/#updateAccount)Rename the account or change its settings (admin)
- [DELETE /v1/account](https://sendtide.ch/en/docs/api/account/#deleteAccount)Delete the account and all its data (owner, dashboard session only)
- [DELETE /v1/recipients/{email}](https://sendtide.ch/en/docs/api/account/#eraseRecipient)Erase a recipient (GDPR), scope full or admin
## Streams
- [GET /v1/streams](https://sendtide.ch/en/docs/api/streams/#listStreams)List message streams
- [POST /v1/streams](https://sendtide.ch/en/docs/api/streams/#createStream)Create a stream
- [GET /v1/streams/{slug}](https://sendtide.ch/en/docs/api/streams/#getStream)Get a stream
- [PATCH /v1/streams/{slug}](https://sendtide.ch/en/docs/api/streams/#updateStream)Change a stream
- [DELETE /v1/streams/{slug}](https://sendtide.ch/en/docs/api/streams/#deleteStream)Delete a stream of your own
## Exports
- [GET /v1/emails/export](https://sendtide.ch/en/docs/api/exports/#exportEmails)Download mail as CSV or JSON Lines (streamed)
- [GET /v1/exports](https://sendtide.ch/en/docs/api/exports/#listExports)List exports
- [POST /v1/exports](https://sendtide.ch/en/docs/api/exports/#createExport)Export mail as a job
- [GET /v1/exports/{id}](https://sendtide.ch/en/docs/api/exports/#getExport)Status of an export, and its download link
- [POST /v1/account/export](https://sendtide.ch/en/docs/api/exports/#exportAccountData)Export all data of the account (owner, dashboard session only)
## Billing
- [GET /v1/billing](https://sendtide.ch/en/docs/api/billing/#getBilling)Plan, usage, payment, invoices and the own IP pool (admin)
- [PATCH /v1/billing](https://sendtide.ch/en/docs/api/billing/#updateBilling)Billing settings and the own IP pool (admin)
## MCP sign-in
- [GET /.well-known/oauth-protected-resource/mcp](https://sendtide.ch/en/docs/api/mcp-sign-in/#getProtectedResourceMetadata)Protected Resource Metadata of the MCP server (RFC 9728)
- [GET /.well-known/oauth-authorization-server](https://sendtide.ch/en/docs/api/mcp-sign-in/#getAuthorizationServerMetadata)Authorization server metadata (RFC 8414)
- [POST /oauth/register](https://sendtide.ch/en/docs/api/mcp-sign-in/#registerOAuthClient)Register a client (Dynamic Client Registration, RFC 7591)
- [GET /oauth/authorize](https://sendtide.ch/en/docs/api/mcp-sign-in/#authorizeOAuth)Start the sign-in (authorization code with PKCE)
- [POST /oauth/token](https://sendtide.ch/en/docs/api/mcp-sign-in/#oauthToken)Exchange a code or a refresh token
- [POST /oauth/revoke](https://sendtide.ch/en/docs/api/mcp-sign-in/#revokeOAuthToken)Revoke a token (RFC 7009)
