Receiving Emails
Step 1. Create a folder via the API
curl -X POST https://mailtrap.io/api/inbound/folders \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{ "name": "Support" }'Step 2. Create an inbox via the API
curl -X POST https://mailtrap.io/api/inbound/folders/{folder_id}/inboxes \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{ "name": "Support tickets" }'Step 3. List messages from your inbound inbox
Last updated
Was this helpful?

