Create links with POST or JSONP requests to https://2po.st/new, like so:
{
emails : ["you@sample.com", "another@sample.com"],
redirect : "https://redirecturl.com",
subject : "Optional subject of email",
referers : ["https://site.com", "http://www.site.com"]
}
(JSON response will include request URL as token and editing key as edit_key)
Show Form
or send POST or JSONP requests to https://2po.st with a _post parameter:
{ _post :
{
emails : ["you@sample.com", "another@sample.com"],
redirect : "https://redirecturl.com",
subject : "Optional subject of email"
}
, other data...
}
(include _post in body for POST requests, in query for JSONP)
Yup, we support CORS from any origin.