Phone and SMS documentation workflows
Reusable SDK examples for the MailSlurp documentation: list phone numbers, wait for an SMS, extract a one-time code, send an SMS and list messages. Each file contains parameterized helpers. Importing or compiling a file makes no requests; call only the helpers you need. You need a MailSlurp phone number. Create one in the dashboard; creating numbers bills a monthly rental.
Install and configure
Set MAILSLURP_API_KEY in your server-side environment and keep it out of browser code and logs.
| Language | Source | Dependencies | Install or compile |
|---|---|---|---|
| JavaScript (Node.js 20+) | javascript/workflows.js |
mailslurp-client 17.6.0 |
npm install |
| Python (3.9+) | python/workflows.py |
mailslurp-client 17.6.0 |
python -m pip install -r requirements.txt |
| Java (11+) | java/PhoneWorkflows.java |
mailslurp-client-java 17.6.0 |
mvn test-compile -DskipTests |
| C# (.NET 8) | csharp/PhoneWorkflows.cs |
mailslurp 17.5.0 |
dotnet build |
Each <gen> region is published as a documentation snippet named gen_<language>_<region>.