API Key (how to configure MailSlurp)

The MailSlurp email inbox API is free for personal use but requires an API KEY to be used. This page explains to get an API KEY and how to configure HTTP requests or SDK clients to use the MailSlurp API.

Create an account

First create an account or sign into your dashboard. You will see the API key displayed on the home page once logged in.

Configure HTTP requests

curl -H x-api-key:YOUR_API_KEY -X POST https://api.mailslurp.com/inboxes

Configure SDK Clients

See the documentation for each client or use the example below to configure the NodeJS package:

import { MailSlurp } from 'mailslurp-client';
const mailslurp = new MailSlurp({ apiKey: 'YOUR_API_KEY' });