RESTful API for creating dynamic mailboxes with Postmark integration built with Slim
- Launch
php composer.phar installto install Slim framework - Copy
app/config-env-dist.phptoapp/config-env.php - Fill in
app/config-env.php - Create DB according to db-schema.sql
Api authorizes with App Key (tabel: app, colum: app_key) which has to be passed with every request as GET parameter app_key
Example: [your_api_uri]?app_key=[your_app_key]
/box/create
description: Create new conversation between emails (use body template)
method: POST
params: sender - sender email, receiver - receiver email, body - email body
/box/send
description: Parse and forward Postmark inbound message
method: POST
params:
body: Postmark inbound webhook content (json)