Below you'll find a list of REST API resources. All requests should me made to https://mapil.co.
Authenticate using HTTP basic authentication, with the API token as the username and API secret as the password.
If you dont' have an account yet, you'll need to sign up before you can use the API
{ "message": "That email address is already in use" }
{ "offset": 0, "limit": 2, "total_records": 12, "results": [ "me@mail.mapil.co", "you@mail.mapil.co" ] }
GET /api/v1/email-addresses/foo@mail.mapil.co { "message": "foo@mail.mapil.co created" }
DELETE /api/v1/email-addresses/foo@mail.mapil.co { "message": "foo@mail.mapil.co deleted" }
GET /api/v1/email-addresses/bar@mail.mapil.co/messages?offset=23&limit=1&after=2010-01-28T12:00:00Z { "offset": 23, "limit": 1, "count": 68, "results": [ { "html": "Hello
Foobody>", "text": "Hello\nFoo", "headers": { "received": { "0": "by mail.foo.com with SMTP id gy3so90375699igb.0 for; Mon, 18 Apr 2016 20:50:17 -0700 (PDT)", "1": "from 1058052472880 named unknown by mail.bar.com with HTTPREST; Mon, 18 Apr 2016 16:38:35 -0400" }, "from": "John Doe ", "x-mailer": "Mailcilient 1.0", "mime-version": "1.0", "date": "Mon, 18 Apr 2016 16:38:35 -0400", "message-id": " ", "subject": "QA Test Email Subject", "to": "bar@mail.mapil.co", "content-type": "multipart/alternative; boundary=001a11c1e7ea47a0140530c858c4" }, "subject": "QA Test Email Subject", "messageId": "CADi8pJCZ3=HHLjH+1oC_ZVxoC2BUFj2beGd-5VsQaSK_PEd=vQ@mail.gmail.com", "priority": "normal", "from": { "0": { "address": "foo@gmail.com", "name": "John Doe" } }, "to": { "0": { "address": "bar@mail.mapil.co", "name": "QA Test 1" } }, "id": "5715aaf9cfd845e640625158" } ] }
GET /api/v1/email-addresses/bar@mail.mapil.co/messages/5715aaf9cfd845e640625158 { "html": "Hello
Foobody>", "text": "Hello\nFoo", "headers": { "received": { "0": "by mail.foo.com with SMTP id gy3so90375699igb.0 for; Mon, 18 Apr 2016 20:50:17 -0700 (PDT)", "1": "from 1058052472880 named unknown by mail.bar.com with HTTPREST; Mon, 18 Apr 2016 16:38:35 -0400" }, "from": "John Doe ", "x-mailer": "Mailcilient 1.0", "mime-version": "1.0", "date": "Mon, 18 Apr 2016 16:38:35 -0400", "message-id": " ", "subject": "QA Test Email Subject", "to": "bar@mail.mapil.co", "content-type": "multipart/alternative; boundary=001a11c1e7ea47a0140530c858c4" }, "subject": "QA Test Email Subject", "messageId": "CADi8pJCZ3=HHLjH+1oC_ZVxoC2BUFj2beGd-5VsQaSK_PEd=vQ@mail.gmail.com", "priority": "normal", "from": { "0": { "address": "foo@gmail.com", "name": "John Doe" } }, "to": { "0": { "address": "bar@mail.mapil.co", "name": "QA Test 1" } }, "id": "5715aaf9cfd845e640625158" }
DELETE /api/v1/email-addresses/bar@mail.mapil.co/messages/5715aaf9cfd845e640625158 { }
DELETE /api/v1/email-addresses/bar@mail.mapil.co/messages?before=2020-01-28T12:00:00Z { "message": "23 messages deleted" }