Every API here is available over the APIs.io API and to AI agents over MCP.
{"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