Enviar un correo de prueba
Envía un paso a tu propio buzón, tal como lo recibirá un destinatario, antes de que lo reciba nadie más. Gratis.
Envía ahora un paso de la campaña a alguien de tu propio equipo, para leerlo como lo leerá un destinatario: desde uno de los buzones del remitente, a su nombre, con el pie y el enlace de baja, que abre su página y no registra nada. Los marcadores se llenan con los datos de un destinatario: el de recipient_id, o si no el primero de la campaña, o con los valores por defecto mientras no haya ninguno. Un seguimiento llega con el asunto Re: y el correo anterior citado debajo. También funciona con borradores. Cuenta para lo que los dominios del remitente pueden enviar hoy, y una cuenta envía como máximo 20 correos de prueba al día (daily_limit_reached) y 5 por minuto (rate_limited). Falla con no_domains mientras el remitente no tenga dominio de envío. Una clave de prueba no envía nada: simulated es true y text es lo que habría salido. Gratis.
- Cobro: La llamada es gratis, y los correos también: salen de los dominios de envío del remitente, que se pagan por mes; consulta Dominios de envío.
Una clave de prueba (won_test_...) ejecuta esto en el sandbox: no se envía ni se cobra nada.
apiKeyAuthorizationBearer <clave de API>Authorization: Bearer won_live_..., a key from the console.
id*stringCampaign ID, such as cmp_7p1q8w3e5r4k2m9x.
length <= 40Idempotency-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
to?stringWho gets it: the address someone of your account signs in with. Leave it out to send it to the account's owner.
length <= 254step?integerThe step, counted from 1.
1 <= value <= 201version?integerThe version of the step, counted from 1.
1 <= value <= 201recipient_id?stringThe recipient whose details fill in the placeholders, such as rcp_9x7p1q8w3e5r4k2m. They get nothing.
length <= 40The 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/campaigns/cmp_7p1q8w3e5r4k2m9x/test' \ -H 'Content-Type: application/json' \ -d '{ "id": "cmp_7p1q8w3e5r4k2m9x", "to": "jamie@northwind-seating.example", "step": 1, "version": 1}'{ "data": { "id": "tst_3e5r4k2m9x7p", "campaign_id": "cmp_7p1q8w3e5r4k2m9x", "from": "alex@northwindseating.example", "to": "jamie@northwind-seating.example", "step": 1, "version": 1, "recipient_id": "rcp_9x7p1q8w3e5r4k2m", "subject": "Office chairs for Harborline Imports", "text": "Hi Dana,\n\nI saw that Harborline Imports imports office seating. We make mesh task chairs in Leeds and ship to the US in four weeks.\n\nWould a price list be useful?\n\nAlex\n\nNorthwind Seating Ltd, 18 Harbour Road, Leeds LS1 4AP, United Kingdom\nNot relevant? Unsubscribe: https://won.dev/e/u/9k2m4x", "simulated": false, "sent_at": "2026-11-18T13:40:02.000Z" }, "notice": null, "usage": { "cost": 0, "balance": 48.08, "replayed": false }}Última actualización: