{"openapi":"3.1.0","info":{"title":"Resend-Compatible API (Self-hosted)","version":"0.2.0","description":"Self-hosted compatibility layer for private/internal use."},"servers":[{"url":"/v1"},{"url":"/resend/v1"}],"paths":{"/emails":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/emails/{email_id}":{"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"patch":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/emails/{email_id}/cancel":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/emails/batch":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/emails/{email_id}/attachments":{"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/emails/{email_id}/attachments/{attachment_id}":{"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/emails/receiving":{"get":{"summary":"Implemented in compatibility mode","description":"Maps inbound ticket mailbox messages into a receiving-compatible list.","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/emails/receiving/{email_id}":{"get":{"summary":"Implemented in compatibility mode","description":"Returns one inbound ticket mailbox message.","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/emails/receiving/{email_id}/attachments":{"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/emails/receiving/{email_id}/attachments/{attachment_id}":{"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/domains":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/domains/{domain_id}":{"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"patch":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"delete":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/domains/{domain_id}/verify":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/api-keys":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/api-keys/{api_key_id}":{"delete":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/templates":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/templates/{id}":{"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"patch":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"delete":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/templates/{id}/publish":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/templates/{id}/duplicate":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/audiences":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/audiences/{id}":{"delete":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/contacts":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/contacts/upsert-batch":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/contacts/{id}":{"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"patch":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"delete":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/broadcasts":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/broadcasts/{id}":{"delete":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"patch":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/broadcasts/{id}/jobs":{"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/broadcasts/{id}/send":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/broadcasts/{id}/cancel":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/webhooks":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/webhooks/{webhook_id}":{"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"patch":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"delete":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/segments":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/segments/{id}":{"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"delete":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/segments/{id}/members":{"put":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/topics":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/topics/{id}":{"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"patch":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"delete":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/contact-properties":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/contact-properties/{id}":{"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"patch":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"delete":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/contacts/{contact_id}/segments":{"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/contacts/{contact_id}/segments/{segment_id}":{"post":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"delete":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}},"/contacts/{contact_id}/topics":{"get":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}},"patch":{"summary":"Implemented in compatibility mode","description":"","responses":{"200":{"description":"Success"},"201":{"description":"Created"},"204":{"description":"No content"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"501":{"description":"Not implemented"}}}}}}