Ir al contenido
Won.dev
DocumentaciónReferencia de la API
API de correo en frío

Registrar un remitente

Indica para qué empresa son los correos. Envía en cuanto tiene un dominio de envío. Gratis.

Indica de quién son los correos. Cada correo termina con el nombre de tu empresa, tu dirección postal y un enlace para darse de baja, que exige la ley y no se pueden quitar. Registra un remitente por cada empresa para la que escribes: una agencia, un agente que trabaja para varias empresas o una plataforma que envía para sus propios clientes registra a cada una como un remitente propio, y las distingue con metadata. Un remitente envía desde dominios de envío comprados solo para él (POST /email/domains): sus destinatarios, sus bajas y su reputación son suyos, así que el correo de un remitente nunca le cuesta a otro su llegada a la bandeja de entrada. Para escribirle a gente en la UE, el Reino Unido o Canadá, declara tu base legal en regions; sin ella, esas direcciones quedan fuera. Gratis.

  • Cobro: Gratis.

Una clave de prueba (won_test_...) ejecuta esto en el sandbox: no se envía ni se cobra nada.

POST
/email/senders

Autenticación

apiKey
headerAuthorizationBearer <clave de API>

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

Parámetros de encabezado

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.

Longitudlength <= 255

Cuerpo de la solicitud

application/json
  1. body
company_name*string

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

Longitud2 <= length <= 120
address*string

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

Longitud10 <= length <= 300
website*string

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

Longitudlength <= 253
purpose*string

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

Longitud20 <= 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.

Elementositems <= 3
Valor predeterminado[]
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.

Cuerpo de la respuesta

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.

Solicitud de ejemplo
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."}'
Respuesta de ejemplo
{  "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 actualización: