GET /api/messaging/emails/?format=api
HTTP 200 OK
Allow: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "id": 1,
            "display": "Peering Request",
            "name": "Peering Request",
            "subject": "Peering Request from AS64500",
            "template": "{% set local_as = affiliated_autonomous_systems | get(asn=64500) %}\r\nDear {{ autonomous_system.name }},\r\n\r\nWe are AS {{ local_as.asn }} peering team,\r\n\r\nWe found that we could peer at the following IXPs:\r\n{% for ixp in autonomous_system | shared_ixps(local_as) %}\r\n  - IX Name: {{ ixp.name }}\r\n    AS{{ local_as.asn }} details:\r\n      IPv6: {{ ixp | local_ips(6) | join(\", \") }}\r\n      IPv4: {{ ixp | local_ips(4) | join(\", \") }}\r\n\r\n    AS{{ autonomous_system.asn }} details:\r\n    {% for s in autonomous_system | missing_sessions(local_as, ixp) %}\r\n      * {{ s.ipaddr4 }}\r\n      * {{ s.ipaddr6 }}\r\n    {% endfor %}\r\n{% endfor %}\r\n\r\nIf you want to peer with us, you can configure the sessions and reply to this\r\nemail. We will configure them as well if you agree to do so.\r\n\r\nKind regards,\r\n\r\n--\r\nYour awwesome peering team",
            "jinja2_trim": true,
            "jinja2_lstrip": true,
            "comments": "",
            "tags": [],
            "created": "2022-03-04T20:34:51.741000Z",
            "updated": "2022-03-04T20:34:51.741000Z"
        }
    ]
}