{"id":"email.event.list","module":"comm-email","namespace":"email","action":"event.list","method":"GET","path":"/v1/email/event/list","idempotent":false,"available":true,"vendors":[],"vendors_ready":[],"vendors_pending":[],"key_status":"live","default_vendor":null,"self_hosted":true,"minimum_tier":"standard","supported_message_classes":null,"regions":["western","china"],"dynamic_params":{},"models_tracked":false,"sdk_hint":"Regular parameters + types are stable — read them from the typed SDK signature / API reference for this capability. discovery only carries the runtime-dynamic values above (available, vendors, dynamic_params).","params":{"title":"EmailEventListRequest","description":"Query parameters for email.event.list. message_id is the Infrai id returned by email.send.","type":"object","required":["message_id"],"additionalProperties":false,"properties":{"message_id":{"type":"string","pattern":"^msg_[A-Za-z0-9]{12,}$","example":"msg_0123456789abcdef","description":"Infrai message id returned by email.send."},"type":{"type":"string","description":"Optional delivery-event type filter."},"limit":{"type":"integer","minimum":1,"maximum":100,"default":50,"description":"Maximum events to return."}}},"response":{"title":"EmailEventListResult","description":"Paginated per-recipient event stream for email.event.list (complements the email.get aggregate EmailStatus). See docs/Infrai_SDK_Comm.md §3 and enums/email_event_type.yaml.","type":"object","required":["items","count"],"additionalProperties":false,"properties":{"items":{"type":"array","items":{"title":"EmailEvent","description":"One lifecycle event for a message recipient. See docs/Infrai_SDK_Comm.md §2.2.2 and enums/email_event_type.yaml.","type":"object","required":["type","at","recipient"],"additionalProperties":false,"properties":{"type":{"enum":["queued","sent","delivered","opened","clicked","bounced","complained","deferred","expired","cancelled","unsubscribed","auto_suppressed"],"description":"Type discriminator for this resource"},"at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of the event"},"recipient":{"type":"string","format":"email","description":"Recipient email address"},"message_id":{"type":["string","null"],"pattern":"^msg_[A-Za-z0-9]{20,}$","description":"Unique identifier for this message"},"meta":{"type":["object","null"],"description":"Event-specific metadata (ip / user_agent / url / bounce_type / reason)."}}},"description":"List of resource records"},"count":{"type":"integer","minimum":0,"description":"Number of items in this page"},"next_cursor":{"type":["string","null"],"description":"Pass back into event.list() to fetch the next page."}}},"errors":["ACCOUNT_AUTORECHARGE_LIMIT","ACCOUNT_FROZEN","AUTH_RATE_LIMIT","AUTH_REFRESH_TOO_FREQUENT","DOMAIN_NOT_VERIFIED","EMAIL_ALREADY_HAS_ACCOUNT","EMAIL_BATCH_TOO_LARGE","EMAIL_CONFIRMATION_REQUIRED","EMAIL_EXPIRED","EMAIL_INVALID_RETENTION","EMAIL_INVALID_STATE","EMAIL_NOT_CONFIGURED","EMAIL_NOT_FOUND","EMAIL_PRO_REQUIRED","EMAIL_REPUTATION_SUSPENDED","EMAIL_SEND_FAILED","IDEMPOTENCY_KEY_CONFLICT","INSUFFICIENT_CREDIT","INTERNAL_ERROR","INVALID_ARGUMENT","INVALID_RECIPIENT","KEY_REVOKED","MAINTENANCE","NETWORK_ERROR","RATE_LIMIT_ACCOUNT","RATE_LIMIT_USER","RATE_LIMIT_VENDOR","SCOPE_INSUFFICIENT","SUPPRESSED_RECIPIENT","TEMPLATE_VAR_MISSING","TOO_MANY_RECIPIENTS","UNAUTHORIZED","VENDOR_AUTH_ERROR","VENDOR_DOWN","VENDOR_TIMEOUT","WALLET_EXPIRED"],"examples":{"curl":"curl -X GET https://api.infrai.cc/v1/email/event/list?message_id=msg_0123456789abcdef \\\n  -H \"Authorization: Bearer $INFRAI_API_KEY\"","python":"# Zero-install REST call — no SDK required (short-term the API is REST-only).\nimport os, requests\n\nresp = requests.get(\n    \"https://api.infrai.cc/v1/email/event/list?message_id=msg_0123456789abcdef\",\n    headers={\n        \"Authorization\": f\"Bearer {os.environ['INFRAI_API_KEY']}\",\n    },\n)\nresp.raise_for_status()\nprint(resp.json())","javascript":"// Zero-install REST call — no SDK required (short-term the API is REST-only).\nconst resp = await fetch(\n  \"https://api.infrai.cc/v1/email/event/list?message_id=msg_0123456789abcdef\",\n  {\n    method: \"GET\",\n    headers: {\n      \"Authorization\": `Bearer ${process.env.INFRAI_API_KEY}`,\n    },\n  },\n);\nconsole.log(await resp.json());","typescript":"// Zero-install REST call — no SDK required (short-term the API is REST-only).\nconst resp = await fetch(\n  \"https://api.infrai.cc/v1/email/event/list?message_id=msg_0123456789abcdef\",\n  {\n    method: \"GET\",\n    headers: {\n      \"Authorization\": `Bearer ${process.env.INFRAI_API_KEY}`,\n    },\n  },\n);\nif (!resp.ok) throw new Error(`infrai ${resp.status}`);\nconst data: unknown = await resp.json();\nconsole.log(data);","go":"// Zero-install REST call — no SDK required (short-term the API is REST-only).\npackage main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"os\"\n)\n\nfunc main() {\n\treq, _ := http.NewRequest(\"GET\", \"https://api.infrai.cc/v1/email/event/list?message_id=msg_0123456789abcdef\", nil)\n\treq.Header.Set(\"Authorization\", \"Bearer \"+os.Getenv(\"INFRAI_API_KEY\"))\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n\tfmt.Println(resp.Status)\n}","java":"// Zero-install REST call — no SDK required (short-term the API is REST-only).\nimport java.net.URI;\nimport java.net.http.*;\n\nHttpRequest req = HttpRequest.newBuilder()\n    .uri(URI.create(\"https://api.infrai.cc/v1/email/event/list?message_id=msg_0123456789abcdef\"))\n    .header(\"Authorization\", \"Bearer \" + System.getenv(\"INFRAI_API_KEY\"))\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nHttpResponse<String> resp = HttpClient.newHttpClient()\n    .send(req, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(resp.body());","csharp":"// Zero-install REST call — no SDK required (short-term the API is REST-only).\nusing System;\nusing System.Net.Http;\n\nvar client = new HttpClient();\nvar req = new HttpRequestMessage(new HttpMethod(\"GET\"), \"https://api.infrai.cc/v1/email/event/list?message_id=msg_0123456789abcdef\");\nvar key = Environment.GetEnvironmentVariable(\"INFRAI_API_KEY\");\nreq.Headers.Add(\"Authorization\", \"Bearer \" + key);\nvar resp = await client.SendAsync(req);\nConsole.WriteLine(await resp.Content.ReadAsStringAsync());","php":"<?php\n// Zero-install REST call — no SDK required (short-term the API is REST-only).\n$ch = curl_init(\"https://api.infrai.cc/v1/email/event/list?message_id=msg_0123456789abcdef\");\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer \" . getenv(\"INFRAI_API_KEY\"),\n]);\n$response = curl_exec($ch);\ncurl_close($ch);\necho $response;","ruby":"# Zero-install REST call — no SDK required (short-term the API is REST-only).\nrequire \"net/http\"\nrequire \"uri\"\n\nuri = URI(\"https://api.infrai.cc/v1/email/event/list?message_id=msg_0123456789abcdef\")\nhttp = Net::HTTP.new(uri.host, uri.port)\nhttp.use_ssl = true\nreq = Net::HTTP::Get.new(uri)\nreq[\"Authorization\"] = \"Bearer #{ENV['INFRAI_API_KEY']}\"\nres = http.request(req)\nputs res.body","rust":"// Zero-install REST call — no SDK required (short-term the API is REST-only). (uses the reqwest + tokio crates)\nuse std::env;\n\n#[tokio::main]\nasync fn main() -> Result<(), Box<dyn std::error::Error>> {\n    let resp = reqwest::Client::new()\n        .get(\"https://api.infrai.cc/v1/email/event/list?message_id=msg_0123456789abcdef\")\n        .header(\"Authorization\", format!(\"Bearer {}\", env::var(\"INFRAI_API_KEY\")?))\n        .send()\n        .await?;\n    println!(\"{}\", resp.text().await?);\n    Ok(())\n}","request":{"message_id":"msg_0123456789abcdef"}},"billing":{"is_billable":false,"free":true,"billing_class":"self_dev_market","unit":"per_call","note":"free (rate-limited); does NOT consume the new-account trial"}}