Email

List API emails

GEThttps://api.smsedge.com/v2/email/messages

Lists the emails sent with Send an email, newest first.

Query params

  • campaign_idintegeroptional

    Only the emails of this campaign.

  • statusstringoptional

    Only emails with this status.

    Values: queued, sent, failed

  • tostringoptional

    Only the emails to this address.

  • pageintegeroptional

    Page number.

    Default: 1

  • per_pageintegeroptional

    Emails per page, maximum 100.

    Default: 25

Responses

  • 200One page of emails and the total.
curl -X GET "https://api.smsedge.com/v2/email/messages?campaign_id=1234" \
  -H "X-API-KEY: YOUR_API_KEY"
{
  "success": true,
  "data": {
    "items": [
      {
        "message_id": 5512,
        "status": "sent",
        "campaign_id": 1234,
        "template_id": 88,
        "server_id": 9,
        "to": "ann@example.com",
        "idempotency_key": "order-A-17",
        "key": "e-1234-1130-17644120301",
        "cost": 0.0002,
        "error": null,
        "created_at": "2026-11-30 10:15:02",
        "updated_at": "2026-11-30 10:15:05"
      }
    ],
    "total": 1
  },
  "errors": [],
  "response": {
    "code": 200,
    "description": "OK",
    "date": "2026-11-30 10:16:00"
  }
}

All requests need your API key in the X-API-KEY header. See Authentication.