Pular para o conteúdo
Won.dev
DocumentaçãoReferência da API
API de cold mail

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.

POST
/email/senders

Autenticação

apiKey
headerAuthorizationBearer <chave de API>

Authorization: Bearer won_live_..., a key from the console.

Parâmetros de cabeçalho

Idempotency-Key?string

Any unique string. A retry with the same key and the same body returns the first response and is not charged again.

Tamanholength <= 255

Corpo da requisição

application/json
  1. body
company_name*string

The legal or trading name of the company the emails are sent for.

Tamanho2 <= length <= 120
address*string

The company's postal address: street, city, postcode, country. Every email carries it.

Tamanho10 <= length <= 300
website*string

The company's website, such as https://example.com.

Tamanholength <= 253
purpose*string

What you offer and whom you will write to, in a sentence or two. It is kept with the sender.

Tamanho20 <= length <= 1000
regions?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.

Itensitems <= 3
Padrão[]
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.

Corpo da resposta

The result.

application/json
  1. 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.

Requisição de exemplo
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."}'
Resposta de exemplo
{  "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