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

Listar e-mails enviados

Os e-mails que saíram: para quem, qual etapa e de qual endereço. Grátis.

Os e-mails que saíram, do mais recente para o mais antigo: para quem, qual etapa e versão, se deu bounce e de qual endereço saiu. Aberturas e cliques só são contados nas campanhas que os rastreiam. Grátis.

  • Cobrança: Grátis.

Uma chave de teste (won_test_...) roda isto no sandbox: nada é enviado e nada é cobrado.

GET
/email/messages

Autenticação

apiKey
headerAuthorizationBearer <chave de API>

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

Parâmetros de consulta

campaign_id?string

Only this campaign, such as cmp_7p1q8w3e5r4k2m9x.

Tamanholength <= 40
recipient_id?string

Only emails to this recipient.

Tamanholength <= 40
status?string

Only emails in this status.

Valores"sending""sent""bounced""failed""skipped"
limit?integer

How many to return, 1 to 100.

Intervalo1 <= value <= 100
Padrão25
cursor?string

To get the next page, pass next_cursor of the previous response back unchanged, with the same parameters.

Tamanholength <= 200

Corpo da resposta

The result.

application/json
  1. response
data*array<>

The emails of this page.

has_more*boolean

Whether more follow this page.

next_cursor*|

Pass it as cursor to get the next page. Null on the last page.

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 GET 'https://api.won.dev/v1/email/messages?campaign_id=cmp_7p1q8w3e5r4k2m9x&limit=1'
Resposta de exemplo
{  "data": [    {      "id": "msg_3e5r4k2m9x7p1q8w",      "campaign_id": "cmp_7p1q8w3e5r4k2m9x",      "recipient_id": "rcp_9x7p1q8w3e5r4k2m",      "from": "alex@northwindseating.example",      "to": "dana.whitfield@harborline-imports.example",      "kind": "step",      "step": 1,      "version": 1,      "status": "sent",      "subject": "Office chairs for Harborline Imports",      "opens": 0,      "clicks": 0,      "bounce_type": null,      "attachments": [],      "sent_at": "2026-11-19T15:07:31.000Z"    }  ],  "has_more": true,  "next_cursor": "cur_Qm9vVGhpc0lzQVNhbXBsZQ",  "notice": null,  "usage": {    "cost": 0,    "balance": 48.08,    "replayed": false  }}

Última atualização em