Cadastrar um remetente
Diga para qual empresa são os e-mails. Ele envia assim que tiver um domínio de envio. Grátis.
Diz de quem são os e-mails. Todo e-mail termina com o nome da sua empresa, o seu endereço postal e um link de descadastro, que a lei exige e que não podem ser removidos. Cadastre um remetente para cada empresa em nome de quem você escreve: uma agência, um agente que trabalha para várias empresas ou uma plataforma que envia para os próprios clientes cadastra cada uma como um remetente próprio, e as diferencia pelo metadata. Um remetente envia de domínios de envio comprados só para ele (POST /email/domains): os destinatários, os descadastros e a reputação dele são só dele, então o e-mail de um remetente nunca custa a outro a entrega na caixa de entrada. Para escrever para pessoas na UE, no Reino Unido ou no Canadá, declare a sua base legal em regions; sem isso, esses endereços ficam de fora. Grátis.
- Cobrança: Grátis.
Uma chave de teste (won_test_...) roda isto no sandbox: nada é enviado e nada é cobrado.
apiKeyAuthorizationBearer <chave de API>Authorization: Bearer won_live_..., a key from the console.
Idempotency-Key?stringAny unique string. A retry with the same key and the same body returns the first response and is not charged again.
length <= 255application/json- body
company_name*stringThe legal or trading name of the company the emails are sent for.
2 <= length <= 120address*stringThe company's postal address: street, city, postcode, country. Every email carries it.
10 <= length <= 300website*stringThe company's website, such as https://example.com.
length <= 253purpose*stringWhat you offer and whom you will write to, in a sentence or two. It is kept with the sender.
20 <= length <= 1000regions?array<>Regions with stricter rules that you declare a lawful basis for. The declaration is recorded with the time and the key that made it.
items <= 3[]metadata?Your own keys and values, such as {"customer_id": "c_812"}: up to 20 keys of at most 40 characters, each value a string of at most 500. Such as the ID of your customer it writes for. Returned with the sender, and with the events about its domains. GET /email/senders finds senders by it.
The result.
application/json- response
data*notice*|A plain sentence when there is something to know about this answer. Null otherwise.
usage*Nothing is charged here. The balance, for reference.
curl -X POST 'https://api.won.dev/v1/email/senders' \ -H 'Content-Type: application/json' \ -d '{ "company_name": "Northwind Seating Ltd", "address": "18 Harbour Road, Leeds LS1 4AP, United Kingdom", "website": "https://northwind-seating.example", "purpose": "We make office chairs and write to furniture importers and distributors about our new catalogue."}'{ "data": { "id": "snd_4k2m9x7p1q8w3e5r", "company_name": "Northwind Seating Ltd", "address": "18 Harbour Road, Leeds LS1 4AP, United Kingdom", "website": "https://northwind-seating.example", "purpose": "We make office chairs and write to furniture importers and distributors about our new catalogue.", "status": "active", "review_note": null, "throttled": false, "regions": [], "metadata": { "customer_id": "c_812" }, "test": false, "created_at": "2026-11-17T09:12:44.000Z" }, "notice": null, "usage": { "cost": 0, "balance": 48.08, "replayed": false }}Última atualização em