Insomnia a free, cross-platform desktop application that makes it easy to test, interact with and design HTTP-based APIs.
At this stage, we assume that you already know how to use Insomnia, however if not, you can learn more on Insomnia’s website.
Mailosaur is a service that captures email and SMS messages and lets you test them, via it’s web dashboard and the Mailosaur email/SMS testing API.
Account-level API keys allow you to access all the functions described in the API reference, and have access to all the servers in your account.
To create an account-level API key, you must be an Administrator or Account Owner on the account in question.
- Go to the Settings page in the Mailosaur Dashboard.
- Go to the API Keys page.
- Click the Create a Key button.
- In the dialog that appears, enter a name for your key.
- When you are finished, click Create.
For more information, see our guide on managing API keys.
Mailosaur has a public Insomnia Collection which you can access by clicking the button below:
Alternatively, you can import the collection and start testing email and SMS by following these steps:
- Open Insomnia.
- Click the Create button, in the top right of the screen.
- Select URL.
- Type in the URL
https://mailosaur.com/insomnia.jsonand click Fetch and Import.
Once you have the collection loaded, you just need to add your Mailosaur API key to your base environment variables.
This can be done by navigating the Manage Environments, then adding your Mailosaur API key as follows:
That’s it, you’re ready to start testing email and SMS messages with Mailosaur and Insomnia!