tinysend API V1 API

REST API for tinysend — newsletter and email platform

GitHub OpenAPI

Operations 92

GET /lists/{listId}/subscribers List subscribers #
POST /lists/{listId}/subscribers Add a subscriber #
GET /lists/{listId}/subscribers/{subId} Get subscriber details #
PATCH /lists/{listId}/subscribers/{subId} Update subscriber #
DELETE /lists/{listId}/subscribers/{subId} Remove subscriber #
POST /lists/{listId}/subscribers/{subId}/resend Send the confirmation email again #
POST /lists/{listId}/subscribers/import Bulk import subscribers #
GET /lists/{listId}/subscribers/export Export subscribers as CSV #
GET /lists/{listId}/posts List posts #
POST /lists/{listId}/posts Create a draft post #
GET /lists/{listId}/posts/{postId} Get post details with stats #
PATCH /lists/{listId}/posts/{postId} Update draft post #
DELETE /lists/{listId}/posts/{postId} Delete draft post #
POST /lists/{listId}/posts/{postId}/send Send post to all active subscribers #
POST /lists/{listId}/posts/{postId}/reject Reject a draft #
POST /lists/{listId}/posts/{postId}/schedule Schedule a draft, or move a scheduled post #
POST /lists/{listId}/posts/{postId}/cancel Cancel a scheduled send #
GET /lists/{listId}/sender Get sender configuration #
PUT /lists/{listId}/sender Set sender mode #
DELETE /lists/{listId}/sender Reset sender to tinysend default #
POST /lists/{listId}/sender/check Re-check sender domain DNS now #
GET /lists/{listId}/site-domain Get website domain status #
POST /lists/{listId}/site-domain Connect a custom domain #
DELETE /lists/{listId}/site-domain Disconnect the custom domain #
POST /lists/{listId}/site-domain/check Re-check domain DNS and SSL now #
GET /lists/{listId}/domain Get sender configuration #
PUT /lists/{listId}/domain Set sender mode #
DELETE /lists/{listId}/domain Reset sender to tinysend default #
POST /lists/{listId}/domain/check Re-check sender domain DNS now #
GET /lists/{listId}/activity The newsletter's activity feed #
GET /lists/{listId}/replies The replies to the newsletter's posts #
POST /lists/{listId}/invite Invite waitlist entries #
GET /lists/{listId}/stats Waitlist stats #
POST /lists/{listId}/join Join a waitlist #
GET /lists List all lists #
POST /lists Create a list #
GET /lists/{id} Get list details #
PATCH /lists/{id} Update list settings #
DELETE /lists/{id} Delete a list #
GET /mailboxes/{mailboxId}/emails List emails #
POST /mailboxes/{mailboxId}/emails Create outbound email #
GET /mailboxes/{mailboxId}/emails/{emailId} Get email detail #
PATCH /mailboxes/{mailboxId}/emails/{emailId} Update email status #
GET /mailboxes List all mailboxes #
POST /mailboxes Create a mailbox #
GET /mailboxes/suggestion Suggest a free temporary address #
GET /mailboxes/{id} Get mailbox details #
PATCH /mailboxes/{id} Update mailbox settings #
DELETE /mailboxes/{id} Deactivate a mailbox #
POST /emails Send a transactional email #
GET /emails/{emailId} Get a transactional email #
GET /contacts List contacts for project #
GET /contacts/{id} Get contact details #
PATCH /contacts/{id} Update contact notes #
GET /contacts/{id}/lists Lists this contact belongs to #
GET /contacts/{id}/activity Recent activity timeline for a contact #
GET /contacts/{id}/emails Emails delivered to this contact #
GET /stats Project-level aggregate stats #
GET /stats/{listId} Per-list aggregate stats #
GET /stats/{listId}/sends Every send of a list, with who opened, clicked and viewed it #
GET /stats/{listId}/subscribers Who joined a list and who went, per utc day (counts only) #
GET /webhooks List webhook subscriptions #
POST /webhooks Create a webhook subscription #
GET /webhooks/{id} Get webhook subscription details #
PATCH /webhooks/{id} Update a webhook subscription #
DELETE /webhooks/{id} Delete a webhook subscription #
GET /webhooks/{id}/deliveries Recent delivery log for a webhook #
POST /webhooks/{id}/test Send a test event to the webhook #
GET /automations List automations #
POST /automations Create automation #
GET /automations/{id} Get automation #
PATCH /automations/{id} Update automation #
DELETE /automations/{id} Delete automation #
GET /invites List pending invites for the caller #
POST /invites/{id}/approve Approve an invite #
POST /invites/{id}/reject Reject an invite #
POST /sdk/feedback Submit in-app feedback (TinysendKit) #
POST /sdk/event Record an anonymous product-analytics event (TinysendKit) #
POST /sdk/subscribe Subscribe an email to a list (TinysendKit, double opt-in) #
GET /sdk/subscribe/status State of a subscription this device created (TinysendKit) #
GET /usage Get current billing period usage #
GET /settings/overage Get overage billing settings #
POST /settings/overage Update overage billing settings #
POST /billing/subscribe Subscribe to a plan via API #
GET /me Who is behind the key, and what their project may do #
POST /account/setup Set the account up (project + default newsletter); idempotent #
DELETE /account Delete the account: subscription cancelled, newsletters deleted, user removed #
GET /tools/disposable Is a domain a disposable/throwaway email provider? #
GET /tools/blacklist Is a domain on email blacklists (Spamhaus/SURBL/URIBL)? #
GET /tools/deliverability Check SPF, DKIM, DMARC and MX for any domain #
POST /tools/inbox-test Create a spam-test inbox #
GET /tools/inbox-test/{id} Get spam-test result #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tinysend-com:tinysend-api-v1-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

tinysend-com-v1-openapi.json Raw ↑
{"openapi":"3.1.0","info":{"title":"tinysend API","version":"1.0.0","description":"REST API for tinysend — newsletter and email platform","contact":{"url":"https://tinysend.com"},"x-service-info":{"categories":["email","newsletters","communications"],"docs":{"homepage":"https://tinysend.com","apiReference":"https://tinysend.com/docs","llms":"https://tinysend.com/llms.txt"},"payments":{"protocol":"MPP","docs":"https://mpp.dev","pricing":"$0.003/email, $0.50 minimum","description":"Endpoints may return 402 with WWW-Authenticate header when plan limits are exceeded. MPP-capable agents can pay inline."}}},"servers":[{"url":"https://api.tinysend.com/v1"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","scheme":"bearer","description":"Bearer token (sk_*) from id.tinysend.com"}},"schemas":{"SubscriberSummary":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"status":{"type":"string"},"source":{"type":"string","nullable":true},"subscribed_at":{"type":"string","nullable":true},"created_at":{"type":"string"},"waitlist_status":{"type":"string","nullable":true},"position":{"type":"integer","nullable":true}},"required":["id","email","name","status","source","subscribed_at","created_at"]},"SubscriberDetail":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"status":{"type":"string"},"source":{"type":"string","nullable":true},"subscribed_at":{"type":"string","nullable":true},"last_open_at":{"type":"string","nullable":true},"last_click_at":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"created_at":{"type":"string"}},"required":["id","email","name","status","source","subscribed_at","last_open_at","last_click_at","country","city","created_at"]},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]},"ConfirmationResent":{"type":"object","properties":{"status":{"type":"string","enum":["sent"]},"email":{"type":"string"}},"required":["status","email"]},"ImportResult":{"type":"object","properties":{"imported":{"type":"integer"},"skipped":{"type":"integer"},"errors":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string"},"reason":{"type":"string"},"why":{"type":"string","nullable":true,"enum":["duplicate","failed","invalid",null],"description":"Why this one was not added: already on the list (duplicate), refused by the database (failed), or not an email address (invalid). `reason` joins duplicate and failed as 'duplicate or error'."}},"required":["email","reason","why"]}}},"required":["imported","skipped","errors"]},"PostSummary":{"type":"object","properties":{"id":{"type":"string"},"subject":{"type":"string"},"status":{"type":"string","description":"draft | scheduled | published | sent | rejected"},"source":{"type":"string","description":"api | email — how the post was authored"},"needs_approval":{"type":"boolean","description":"a draft that arrived by email or from an agent: approve (send) or reject"},"sending":{"type":"boolean","description":"a broadcast is in flight"},"created_at":{"type":"string"},"sent_at":{"type":"string","nullable":true},"scheduled_at":{"type":"string","nullable":true},"recipients":{"type":"integer","nullable":true}},"required":["id","subject","status","source","needs_approval","sending","created_at","sent_at","scheduled_at","recipients"]},"PostDetail":{"type":"object","properties":{"id":{"type":"string"},"subject":{"type":"string"},"status":{"type":"string"},"source":{"type":"string"},"needs_approval":{"type":"boolean"},"scheduled_at":{"type":"string","nullable":true},"body_html":{"type":"string","nullable":true},"body_text":{"type":"string","nullable":true},"issues_summary":{"type":"object","nullable":true,"additionalProperties":{"nullable":true},"description":"Quality automation results (links, spelling, grammar)"},"checked_at":{"type":"string","nullable":true},"created_at":{"type":"string"},"sent_at":{"type":"string","nullable":true},"stats":{"type":"object","properties":{"recipients":{"type":"integer"},"delivered":{"type":"integer"},"opened":{"type":"integer"},"clicked":{"type":"integer"},"bounced":{"type":"integer"}},"required":["recipients","delivered","opened","clicked","bounced"]}},"required":["id","subject","status","body_html","body_text","created_at","sent_at"]},"SendResult":{"type":"object","properties":{"status":{"type":"string"},"recipients":{"type":"integer"}},"required":["status","recipients"]},"SenderInfo":{"type":"object","properties":{"type":{"type":"string"},"from_address":{"type":"string"},"status":{"type":"string","enum":["default","pending","verified","failed"]},"records":{"type":"array","items":{"$ref":"#/components/schemas/DnsRecordView"}},"next_step":{"type":"string"}},"required":["type","from_address","status","records","next_step"]},"DnsRecordView":{"type":"object","properties":{"type":{"type":"string"},"name":{"type":"string"},"value":{"type":"string"},"found":{"type":"boolean","description":"whether we can see this record in DNS yet"},"purpose":{"type":"string","description":"plain-words explanation of what the record does"}},"required":["type","name","value","found"]},"SiteDomainInfo":{"type":"object","properties":{"domain":{"type":"string","nullable":true},"default_url":{"type":"string"},"live_url":{"type":"string","nullable":true},"status":{"type":"string","enum":["not_configured","pending","active","failed"]},"records":{"type":"array","items":{"$ref":"#/components/schemas/DnsRecordView"}},"next_step":{"type":"string","description":"plain-language description of what happens next / what the user needs to do"}},"required":["domain","default_url","live_url","status","records","next_step"]},"ListActivity":{"type":"object","properties":{"week":{"type":"object","properties":{"subscribed":{"type":"integer"},"unsubscribed":{"type":"integer"},"replies":{"type":"integer"}},"required":["subscribed","unsubscribed","replies"]},"items":{"type":"array","items":{"$ref":"#/components/schemas/ActivityItem"}}},"required":["week","items"]},"ActivityItem":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","description":"the domain event type, e.g. subscriber.confirmed"},"at":{"type":"string"},"email":{"type":"string","nullable":true},"subject":{"type":"string","nullable":true},"post_id":{"type":"string","nullable":true},"subscriber_id":{"type":"string","nullable":true},"email_id":{"type":"string","nullable":true,"description":"the inbox email behind a reply — /inbox/{email_id} on the web"},"message_id":{"type":"string","nullable":true,"description":"its RFC 822 Message-ID, for a message:// link into Apple Mail"}},"required":["id","type","at","email","subject","post_id","subscriber_id","email_id","message_id"]},"ListReply":{"type":"object","properties":{"email_id":{"type":"string"},"mailbox_id":{"type":"string","description":"The newsletter's mailbox: read, mark read and answer at /mailboxes/{mailbox_id}/emails/{email_id}"},"at":{"type":"string"},"from_address":{"type":"string"},"name":{"type":"string","nullable":true,"description":"The subscriber's name when they gave one"},"subscriber_id":{"type":"string","nullable":true},"post_id":{"type":"string","nullable":true},"post_subject":{"type":"string","nullable":true,"description":"The post they replied to"},"subject":{"type":"string","nullable":true},"status":{"type":"string","description":"received (not read yet), read, replied, archived"},"message_id":{"type":"string","nullable":true,"description":"Its Message-ID: answer with it as in_reply_to so the reply threads"}},"required":["email_id","mailbox_id","at","from_address","name","subscriber_id","post_id","post_subject","subject","status","message_id"]},"InviteResult":{"type":"object","properties":{"invited":{"type":"integer"}},"required":["invited"]},"InviteBody":{"type":"object","properties":{"count":{"type":"integer","minimum":1,"description":"Invite the next N entries by position.","example":100},"subscribers":{"type":"array","items":{"type":"string"},"description":"Invite these specific subscriber ids."},"all":{"type":"boolean","description":"Invite everyone still waiting (launch day)."}}},"WaitlistStats":{"type":"object","properties":{"total":{"type":"integer"},"waiting":{"type":"integer"},"invited":{"type":"integer"},"accepted":{"type":"integer"},"conversion_rate":{"type":"number"},"top_referrers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"referral_count":{"type":"integer"}},"required":["id","label","referral_count"]}}},"required":["total","waiting","invited","accepted","conversion_rate","top_referrers"]},"JoinResult":{"type":"object","properties":{"status":{"type":"string","enum":["created","exists","full","invalid"]},"subscriber_id":{"type":"string","nullable":true},"position":{"type":"integer","nullable":true},"referral_url":{"type":"string","nullable":true}},"required":["status","subscriber_id","position","referral_url"]},"JoinWaitlistBody":{"type":"object","properties":{"email":{"type":"string","format":"email","description":"Person joining by email (double opt-in). Omit to join as the authenticated agent identity."},"name":{"type":"string"},"ref":{"type":"string","description":"Referrer's referral code, to credit a referral."}}},"ListSummary":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"subdomain":{"type":"string"},"type":{"type":"string"},"subscriber_count":{"type":"integer"},"sender_email":{"type":"string","nullable":true},"sender_domain_status":{"type":"string","nullable":true},"warmup_status":{"type":"string","nullable":true},"language":{"type":"string","description":"The readers' language (BCP 47, one of the 33): the newsletter's pages and the emails tinysend writes for it.","example":"en"},"created_at":{"type":"string"},"last_sent_at":{"type":"string","nullable":true},"signals":{"$ref":"#/components/schemas/ListSignals"}},"required":["id","name","subdomain","type","subscriber_count","sender_email","sender_domain_status","warmup_status","language","created_at"]},"ListSignals":{"type":"object","properties":{"to_approve":{"type":"integer"},"scheduled":{"type":"integer"},"drafts":{"type":"integer"},"sending":{"type":"integer"}},"required":["to_approve","scheduled","drafts","sending"]},"ListDetail":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"subdomain":{"type":"string"},"type":{"type":"string"},"description":{"type":"string","nullable":true},"subscriber_count":{"type":"integer"},"mailbox_id":{"type":"string","nullable":true},"mailbox_address":{"type":"string","nullable":true},"sender_name":{"type":"string","nullable":true},"sender_email":{"type":"string","nullable":true},"sender_domain":{"type":"string","nullable":true},"sender_domain_status":{"type":"string","nullable":true},"warmup_status":{"type":"string","nullable":true},"track_opens":{"type":"boolean","nullable":true},"track_clicks":{"type":"boolean","nullable":true},"show_posts":{"type":"boolean","nullable":true},"show_subscriber_count":{"type":"boolean","nullable":true},"language":{"type":"string","description":"The readers' language (BCP 47, one of the 33): the newsletter's pages and the emails tinysend writes for it.","example":"en"},"created_at":{"type":"string"}},"required":["id","name","subdomain","type","description","subscriber_count","mailbox_id","mailbox_address","sender_name","sender_email","sender_domain","sender_domain_status","warmup_status","track_opens","track_clicks","show_posts","show_subscriber_count","language","created_at"]},"MailboxEmailSummary":{"type":"object","properties":{"id":{"type":"string"},"direction":{"type":"string"},"from_address":{"type":"string"},"to_address":{"type":"string"},"subject":{"type":"string","nullable":true},"status":{"type":"string"},"tags":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/EmailTag"}},"code":{"type":"string","nullable":true,"description":"The code read out of this email when it reached a temp address; null otherwise."},"link":{"type":"string","nullable":true,"description":"The confirm link read out of this email when it reached a temp address; null otherwise."},"created_at":{"type":"string"}},"required":["id","direction","from_address","to_address","subject","status","tags","code","link","created_at"]},"EmailTag":{"type":"object","properties":{"name":{"type":"string","maxLength":256},"value":{"type":"string","maxLength":256}},"required":["name","value"]},"MailboxEmailDetail":{"type":"object","properties":{"id":{"type":"string"},"direction":{"type":"string"},"from_address":{"type":"string"},"to_address":{"type":"string"},"subject":{"type":"string","nullable":true},"message_id":{"type":"string","nullable":true},"in_reply_to":{"type":"string","nullable":true},"text_body":{"type":"string","nullable":true,"description":"Plain-text body, resolved from storage."},"html_body":{"type":"string","nullable":true,"description":"HTML body, resolved from storage."},"status":{"type":"string"},"handler_results":{"type":"object","nullable":true,"additionalProperties":{"nullable":true}},"extracted_data":{"type":"object","nullable":true,"additionalProperties":{"nullable":true}},"tags":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/EmailTag"}},"contact_id":{"type":"string","nullable":true},"code":{"type":"string","nullable":true,"description":"The code read out of this email when it reached a temp address; null otherwise."},"link":{"type":"string","nullable":true,"description":"The confirm link read out of this email when it reached a temp address; null otherwise."},"created_at":{"type":"string"}},"required":["id","direction","from_address","to_address","subject","message_id","in_reply_to","text_body","html_body","status","handler_results","extracted_data","tags","contact_id","code","link","created_at"]},"MailboxSummary":{"type":"object","properties":{"id":{"type":"string"},"address":{"type":"string"},"name":{"type":"string","nullable":true},"type":{"type":"string"},"status":{"type":"string"},"email_count":{"type":"integer"},"expires_at":{"type":"string","nullable":true,"description":"A temporary address's end; null for every other kind."},"created_at":{"type":"string"}},"required":["id","address","name","type","status","email_count","expires_at","created_at"]},"MailboxDetail":{"type":"object","properties":{"id":{"type":"string"},"address":{"type":"string"},"local_part":{"type":"string"},"domain":{"type":"string"},"name":{"type":"string","nullable":true},"type":{"type":"string"},"status":{"type":"string"},"list_id":{"type":"string","nullable":true},"config":{"type":"object","nullable":true,"additionalProperties":{"nullable":true}},"expires_at":{"type":"string","nullable":true},"created_at":{"type":"string"}},"required":["id","address","local_part","domain","name","type","status","list_id","config","expires_at","created_at"]},"TempSuggestion":{"type":"object","properties":{"address":{"type":"string"},"local_part":{"type":"string"},"domain":{"type":"string"}},"required":["address","local_part","domain"]},"ContactSummary":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"email":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"total_received":{"type":"integer"},"total_opens":{"type":"integer"},"total_clicks":{"type":"integer"},"total_replies":{"type":"integer"},"list_count":{"type":"integer"},"last_activity_at":{"type":"string","nullable":true},"created_at":{"type":"string"}},"required":["id","kind","email","name","country","city","total_received","total_opens","total_clicks","total_replies","list_count","last_activity_at","created_at"]},"ContactDetail":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"email":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"notes":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"timezone":{"type":"string","nullable":true},"total_received":{"type":"integer"},"total_opens":{"type":"integer"},"total_clicks":{"type":"integer"},"total_replies":{"type":"integer"},"last_activity_at":{"type":"string","nullable":true},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","kind","email","name","notes","country","city","timezone","total_received","total_opens","total_clicks","total_replies","last_activity_at","created_at","updated_at"]},"ContactListMembership":{"type":"object","properties":{"list_id":{"type":"string"},"name":{"type":"string"},"subdomain":{"type":"string","nullable":true},"type":{"type":"string"},"status":{"type":"string"},"subscribed_at":{"type":"string","nullable":true}},"required":["list_id","name","subdomain","type","status","subscribed_at"]},"ContactActivityItem":{"type":"object","properties":{"kind":{"type":"string"},"at":{"type":"string"},"subject":{"type":"string"}},"required":["kind","at","subject"]},"ContactDeliveryItem":{"type":"object","properties":{"id":{"type":"string"},"post_id":{"type":"string","nullable":true},"subject":{"type":"string"},"list_name":{"type":"string"},"list_id":{"type":"string","nullable":true},"sent_at":{"type":"string"},"status":{"type":"string"},"open_count":{"type":"integer"},"click_count":{"type":"integer"}},"required":["id","post_id","subject","list_name","list_id","sent_at","status","open_count","click_count"]},"ProjectStats":{"type":"object","properties":{"lists":{"type":"integer"},"active_subscribers":{"type":"integer"},"contacts":{"type":"integer"},"emails_sent":{"type":"integer"}},"required":["lists","active_subscribers","contacts","emails_sent"]},"ListStats":{"type":"object","properties":{"subscribers":{"type":"object","properties":{"total":{"type":"integer"},"active":{"type":"integer"},"pending":{"type":"integer"},"unsubscribed":{"type":"integer"},"bounced":{"type":"integer"}},"required":["total","active","pending","unsubscribed","bounced"]},"deliveries":{"type":"object","properties":{"total_sent":{"type":"integer"},"total_delivered":{"type":"integer"},"total_opened":{"type":"integer"},"total_clicked":{"type":"integer"},"total_bounced":{"type":"integer"}},"required":["total_sent","total_delivered","total_opened","total_clicked","total_bounced"]}},"required":["subscribers","deliveries"]},"ListSend":{"type":"object","properties":{"post_id":{"type":"string"},"broadcast_id":{"type":"string"},"subject":{"type":"string"},"url":{"type":"string"},"sent_at":{"type":"string"},"status":{"type":"string"},"recipients":{"type":"integer"},"delivered":{"type":"integer"},"failed":{"type":"integer"},"openers":{"type":"integer","description":"subscribers who opened it, people only"},"clickers":{"type":"integer","description":"subscribers who clicked a link in it, people only"},"views":{"type":"integer","description":"views of the post on the site, people only"}},"required":["post_id","broadcast_id","subject","url","sent_at","status","recipients","delivered","failed","openers","clickers","views"]},"SubscriberMoves":{"type":"object","properties":{"day":{"type":"string","description":"utc day, YYYY-MM-DD"},"subscribed":{"type":"integer"},"unsubscribed":{"type":"integer"},"bounced":{"type":"integer"}},"required":["day","subscribed","unsubscribed","bounced"]},"WebhookSummary":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"status":{"type":"string"},"consecutive_failures":{"type":"integer"},"last_delivered_at":{"type":"string","nullable":true},"last_failed_at":{"type":"string","nullable":true},"created_at":{"type":"string"}},"required":["id","url","events","status","consecutive_failures","last_delivered_at","last_failed_at","created_at"]},"WebhookCreated":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"secret":{"type":"string","description":"HMAC signing secret — shown only once"},"status":{"type":"string"},"created_at":{"type":"string"}},"required":["id","url","events","secret","status","created_at"]},"WebhookDetail":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"secret":{"type":"string","description":"Masked HMAC secret (only shown in full on creation)"},"status":{"type":"string"},"consecutive_failures":{"type":"integer"},"disabled_at":{"type":"string","nullable":true},"disabled_reason":{"type":"string","nullable":true},"last_delivered_at":{"type":"string","nullable":true},"last_failed_at":{"type":"string","nullable":true},"created_at":{"type":"string"}},"required":["id","url","events","secret","status","consecutive_failures","disabled_at","disabled_reason","last_delivered_at","last_failed_at","created_at"]},"WebhookDeliveryItem":{"type":"object","properties":{"id":{"type":"string"},"event_type":{"type":"string"},"event_id":{"type":"string"},"http_status":{"type":"integer","nullable":true},"duration_ms":{"type":"integer","nullable":true},"attempt":{"type":"integer"},"status":{"type":"string"},"error":{"type":"string","nullable":true},"delivered_at":{"type":"string","nullable":true},"created_at":{"type":"string"}},"required":["id","event_type","event_id","http_status","duration_ms","attempt","status","error","delivered_at","created_at"]},"TestWebhookResult":{"type":"object","properties":{"delivery_id":{"type":"string"},"status":{"type":"string"},"http_status":{"type":"integer","nullable":true},"duration_ms":{"type":"integer","nullable":true}},"required":["delivery_id","status","http_status","duration_ms"]},"Automation":{"type":"object","properties":{"id":{"type":"string"},"project_id":{"type":"string"},"type":{"type":"string"},"entity_type":{"type":"string"},"entity_id":{"type":"string"},"enabled":{"type":"boolean"},"name":{"type":"string","nullable":true},"model":{"type":"string","nullable":true},"system_prompt":{"type":"string","nullable":true},"tool_permissions":{"type":"object","nullable":true,"additionalProperties":{"type":"string"}},"schedule":{"type":"string","nullable":true},"skills":{"type":"array","nullable":true,"items":{"type":"string"}},"config":{"type":"object","nullable":true,"additionalProperties":{"nullable":true}},"allowed_domains":{"type":"array","nullable":true,"items":{"type":"string"}},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","project_id","type","entity_type","entity_id","enabled","name","model","system_prompt","tool_permissions","schedule","skills","config","allowed_domains","created_at","updated_at"]},"CreateAutomation":{"type":"object","properties":{"project_id":{"type":"string","description":"Defaults to the caller's project when omitted."},"type":{"type":"string","enum":["quality","triage","auto_reply","digest","domain_health","spam_guard","audience","extract","otp","summarizer","custom"]},"entity_type":{"type":"string","enum":["mailbox","list","project"]},"entity_id":{"type":"string"},"enabled":{"type":"boolean"},"name":{"type":"string"},"model":{"type":"string"},"system_prompt":{"type":"string"},"tool_permissions":{"type":"object","additionalProperties":{"type":"string"}},"schedule":{"type":"string"},"skills":{"type":"array","items":{"type":"string"}},"config":{"type":"object","additionalProperties":{"nullable":true}},"allowed_domains":{"type":"array","items":{"type":"string"}}},"required":["type","entity_type","entity_id"]},"UpdateAutomation":{"type":"object","properties":{"enabled":{"type":"boolean"},"name":{"type":"string"},"model":{"type":"string","nullable":true},"system_prompt":{"type":"string","nullable":true},"tool_permissions":{"type":"object","additionalProperties":{"type":"string"}},"schedule":{"type":"string","nullable":true},"skills":{"type":"array","items":{"type":"string"}},"config":{"type":"object","additionalProperties":{"nullable":true}},"allowed_domains":{"type":"array","items":{"type":"string"}}}},"ProjectInvite":{"type":"object","properties":{"id":{"type":"string"},"project_id":{"type":"string"},"email":{"type":"string"},"role":{"type":"string"},"status":{"type":"string"},"source":{"type":"string"},"created_at":{"type":"string"}},"required":["id","project_id","email","role","status","source","created_at"]}},"parameters":{}},"paths":{"/lists/{listId}/subscribers":{"get":{"tags":["Subscribers"],"summary":"List subscribers","parameters":[{"schema":{"type":"string"},"required":true,"name":"listId","in":"path"},{"schema":{"type":"string","enum":["active","pending","unsubscribed","bounced"]},"required":false,"name":"status","in":"query"},{"schema":{"type":"string"},"required":false,"name":"search","in":"query"},{"schema":{"type":"string"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"Array of subscribers","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SubscriberSummary"}}}}}},"operationId":"list_lists_subscribers"},"post":{"tags":["Subscribers"],"summary":"Add a subscriber","parameters":[{"schema":{"type":"string"},"required":true,"name":"listId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"name":{"type":"string"},"verified":{"type":"boolean","description":"Whether consent has already been verified. Default false: the subscriber is created 'pending' and a double opt-in confirmation email is sent — they become active only after clicking it. Set true ONLY when you have verified consent upstream (e.g. your own confirmed signup); the subscriber is then created 'active' with no confirmation email, attributed as verified via API.","example":false},"tags":{"type":"array","items":{"type":"string"},"description":"Person-level labels merged onto the contact (unioned with existing). Render in Apple Contacts as CATEGORIES.","example":["pro","from:better-auth"]},"metadata":{"type":"object","additionalProperties":{"nullable":true},"description":"Arbitrary per-person key/values, shallow-merged onto the contact. For segmentation/display.","example":{"plan":"pro","signup_source":"web"}},"org":{"type":"string","description":"Company — written to the contact."},"job_title":{"type":"string","description":"Role/title — written to the contact."}},"required":["email"]}}}},"responses":{"201":{"description":"Created subscriber","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriberSummary"}}}},"402":{"description":"A new free account has no \"anyone else\" email left for the confirmation email (free_allowance_used); nothing was added","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"operationId":"create_lists_subscribers"}},"/lists/{listId}/subscribers/{subId}":{"get":{"tags":["Subscribers"],"summary":"Get subscriber details","parameters":[{"schema":{"type":"string"},"required":true,"name":"listId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"subId","in":"path"}],"responses":{"200":{"description":"Subscriber details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriberDetail"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"operationId":"get_lists_subscribers"},"patch":{"tags":["Subscribers"],"summary":"Update subscriber","parameters":[{"schema":{"type":"string"},"required":true,"name":"listId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"subId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"status":{"type":"string","enum":["active","unsubscribed"]}}}}}},"responses":{"200":{"description":"Updated subscriber","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriberSummary"}}}}},"operationId":"update_lists_subscribers"},"delete":{"tags":["Subscribers"],"summary":"Remove subscriber","parameters":[{"schema":{"type":"string"},"required":true,"name":"listId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"subId","in":"path"}],"responses":{"204":{"description":"Deleted"}},"operationId":"delete_lists_subscribers"}},"/lists/{listId}/subscribers/{subId}/resend":{"post":{"tags":["Subscribers"],"summary":"Send the confirmation email again","description":"To a subscriber still pending: a new confirmation link (the old one stops working), in the same email they got when added.","parameters":[{"schema":{"type":"string"},"required":true,"name":"listId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"subId","in":"path"}],"responses":{"200":{"description":"Sent again","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmationResent"}}}},"402":{"description":"A new free account has no \"anyone else\" email left (free_allowance_used); the first link still works","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Not pending: confirmed or unsubscribed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The email could not be sent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"operationId":"resend_lists_subscribers"}},"/lists/{listId}/subscribers/import":{"post":{"tags":["Subscribers"],"summary":"Bulk import subscribers","parameters":[{"schema":{"type":"string"},"required":true,"name":"listId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"subscribers":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","format":"email"},"name":{"type":"string"}},"required":["email"]}}},"required":["subscribers"]}}}},"responses":{"201":{"description":"Import results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportResult"}}}}},"operationId":"import_lists_subscribers"}},"/lists/{listId}/subscribers/export":{"get":{"tags":["Subscribers"],"summary":"Export subscribers as CSV","parameters":[{"schema":{"type":"string"},"required":true,"name":"listId","in":"path"}],"responses":{"200":{"description":"CSV file","content":{"text/csv":{"schema":{"type":"string"}}}}},"operationId":"list_lists_subscribers_export"}},"/lists/{listId}/posts":{"get":{"tags":["Posts"],"summary":"List posts","parameters":[{"schema":{"type":"string"},"required":true,"name":"listId","in":"path"}],"responses":{"200":{"description":"Array of posts","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PostSummary"}}}}}},"operationId":"list_lists_posts"},"post":{"tags":["Posts"],"summary":"Create a draft post","parameters":[{"schema":{"type":"string"},"required":true,"name":"listId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","minLength":1},"body_html":{"type":"string"},"body_text":{"type":"string"},"markdown":{"type":"string","description":"the body in markdown; when given, body_text keeps it and body_html is rendered from it (as the app writes a post)"}},"required":["subject"]}}}},"responses":{"201":{"description":"Created post","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDetail"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"operationId":"create_lists_posts"}},"/lists/{listId}/posts/{postId}":{"get":{"tags":["Posts"],"summary":"Get post details with stats","parameters":[{"schema":{"type":"string"},"required":true,"name":"listId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"postId","in":"path"}],"responses":{"200":{"description":"Post details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDetail"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"operationId":"get_lists_posts"},"patch":{"tags":["Posts"],"summary":"Update d

# --- truncated at 32 KB (90 KB total) ---
# Full source: https://artifacts.apis.io/tinysend-com/openapi/_original/tinysend-com-v1-openapi.json