o4oren / Ad-Hoc-Email-Server

An ad-hoc disposable temporary mail server. Create and use ad hoc disposable mailboxes for testing or any other purpose.
Apache License 2.0
385 stars 91 forks source link

Fetching emails #5

Closed thamerla closed 5 years ago

thamerla commented 5 years ago

I am struggling to understand how to fetch emails using the API. Could you provide a sample call to /api/mailbox/{mailboxName}/email?

So far I came up with the following: HEADERS: Authorization: Bearer ---mytoken--- url: https://www.ahem.email/api/mailbox/tester111@ahem.email/email

but it returns an error. Why?

o4oren commented 5 years ago

Don't include the domain - the mailbox is tester111 only.

thamerla commented 5 years ago

@o4oren alright, then I get 404 error. How am I supposed to use API to create a new email inbox i.e. tester111 as my guess is that this method allows you only to fetch email (right?)

thamerla commented 5 years ago

Alright I found the answer to this. Emails fetched, it can be closed.