cURL
curl --request GET \ --url https://api.example.com/v1/emails/{id}
{ "id": "<string>", "from": "<string>", "to": [ "<string>" ], "subject": "<string>", "html": "<string>", "status": "<string>", "created_at": "<string>", "delivered_at": "<string>" }
Retrieve a sent email by ID.
curl https://api.unosend.co/emails/550e8400-e29b-41d4-a716-446655440000 \ -H "Authorization: Bearer un_xxxxxxxxxx"
{ "id": "550e8400-e29b-41d4-a716-446655440000", "from": "hello@yourdomain.com", "to": ["user@example.com"], "subject": "Hello World", "html": "<h1>Welcome!</h1>", "status": "delivered", "created_at": "2024-01-15T10:30:00.000Z", "delivered_at": "2024-01-15T10:30:05.000Z" }
queued
sent
delivered
bounced
complained
null