{"name":"lewat.email","description":"Email API. Everything works headless: no browser or dashboard is needed.","guide":"https://api.lewat.email/llms.txt","mcp":"https://api.lewat.email/mcp","skill":"https://api.lewat.email/skill.md","auth":"Authorization: Bearer <api key>. Keys start with le_live_ (sends) or le_test_ (simulates, never sends).","conventions":{"success":"{\"data\": ...}; collections add \"meta\": {\"page\",\"perPage\",\"total\"} and take ?page (from 1) and ?perPage (default 20, max 100).","errors":"{\"message\": \"...\", \"error\": \"CODE\"}. Decide from error, not message. retryAfterSeconds (and the Retry-After header) say how long to wait. Only QUOTA_EXCEEDED carries upgradeUrl.","rateLimit":"Every authenticated response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (per key, per minute).","fields":"camelCase. Ids are 24-character hex strings."},"start":[{"step":1,"call":"POST /auth/signup","body":{"email":"you@example.com","password":"at least 12 characters","inviteCode":"your invite code"},"result":"A verification code is emailed to that address."},{"step":2,"call":"POST /auth/verify","body":{"email":"you@example.com","code":"the code from the email"},"result":"Returns data.apiKey, your first key (full access). It is shown once."},{"step":3,"call":"GET /v1/me","result":"data.nextStep tells you the next action for this account at any time."}],"endpoints":{"POST /auth/signup · POST /auth/verify":"Create an account (invite only) and confirm the emailed code; verify returns an API key.","POST /auth/login":"Email + password; returns a new full-access API key (use when a key is lost).","POST /auth/reset · POST /auth/reset/confirm":"Forgot password: a code is emailed; confirming sets a new password and returns a new key.","GET /v1/me":"Account, key and the next step.","GET /v1/open-api/key-info · GET /v1/scopes":"What the calling key can do.","POST /v1/transmissions":"Send. Body: from {email,name}, to [{email,name}], cc, bcc, replyTo, subject, bodyHtml, bodyText. Sandbox: add \"mode\":\"sandbox\", from.email sandbox@sandbox.lewat.email, to your own login email. Optional header Idempotency-Key.","GET /v1/transmissions":"Recent transmissions, newest first.","GET /v1/analytics/transmission/{transmissionId} · .../events":"Status per recipient, and the event trail.","GET /v1/usage":"Emails sent, quota and remaining; sandbox limits.","GET /v1/domain/sending · POST /v1/domain/sending · GET /v1/domain/sending/{id or domain}":"Sending domains with the DNS records to publish. Add with {\"domain\":\"mail.example.com\"}.","PUT /v1/domain/sending/{id or domain}/verify-txt":"Re-check DNS now.","GET /v1/api-keys · POST /v1/api-keys · GET|DELETE /v1/api-keys/{id}":"Manage keys. Create with {\"name\",\"access\":\"sending\"|\"full\",\"mode\":\"live\"|\"test\"}.","GET /v1/suppressions · GET /v1/suppressions/bounces · GET /v1/suppressions/lookup?email= · POST /v1/suppressions · DELETE /v1/suppressions/{id or email}":"Addresses we will not send to for this account.","GET /v1/contacts · POST /v1/contacts · GET|PUT|DELETE /v1/contacts/{id or email} · GET /v1/contacts/email/{email} · POST /v1/contacts/count":"Contacts: {email, name, customField, labels, state}. Filters: ?q, ?label, ?state.","POST /v1/contacts/import":"Create or update up to 1000 contacts per call. JSON {\"contacts\":[...],\"labels\":[\"Name\"]} or text/csv with a header row (?labels=Name). Matched by email; safe to repeat.","GET /v1/template · POST /v1/template · GET|PUT|DELETE /v1/template/{id}":"Stored templates {name, subject, htmlContent, textContent} with {{placeholders}}. Send one with templateId and substitutionData in POST /v1/transmissions.","GET /v1/integrations · POST /v1/integrations · GET|PUT|DELETE /v1/integrations/{id} · POST /v1/integrations/{id}/sync":"Keep contacts in sync with a Google Sheet or a CSV URL: {\"provider\":\"google_sheets\"|\"csv_url\",\"config\":{\"url\":\"...\",\"labels\":[\"Name\"]}}. Synced on creation and then hourly.","GET /v1/labels · POST /v1/labels · PUT /v1/labels/{name} · DELETE /v1/labels/{names}":"Contact labels. Deleting a label keeps its contacts."}}