Zero-dependency TypeScript client for the SimpleLogin.io API. Compatible with NodeJS and browsers.
Tip
No time to code? Check out the CLI tool based on this client SDK to get started quickly!
Interested in the state of the project? Check the faq!
- Export
- Account Management
- Alias Management
- Get alias options
- Create (random and custom), Update, Delete
- Contacts and activities
- Mailbox Management
- Contact Management
- Settings
- Custom Domain Management
- Notifications
- Get notifications
- Mark notification as read
- Phone & Misc
- Phone reservation message retrieval
- Apple payment processing
simplelogin-client works in most NodeJS versions and browsers, but may require a tweak when not used with NodeJS 18 or in outdated browsers. Check the compatibility guide.
To start using this API client in your JS/TS projects:
# Install dependency
npm install --save simplelogin-clientimport { SimpleLoginClient } from 'simplelogin-client';
const { alias } = new SimpleLoginClient({
apiKey: process.env.API_KEY,
})
const createdAlias = await alias.createRandomAlias({
note: 'This alias was created with simplelogin-client!',
});
console.log(createdAlias);
/* Output:
{
id: 50001,
creation_date: '2023-02-10 20:19:37+00:00',
alias: 'nederlanden_heatherington@example.com',
mailbox: { email: 'somewhere@gmail.com', id: 50001 },
enabled: true,
pinned: false,
note: "This alias was created with simplelogin-client!",
...
}
*/Check the documentation for all available methods and the FAQ in case of questions.
‼️ Please don't contact the SimpleLogin team with issues regarding this client. Instead open an issue in this repository.
Want to contribute fixes to the API client or spec? Check the development guide!