make-app/README.md
2026-12-01 13:45:45 +02:00

54 lines
2.4 KiB
Markdown

<p align="center"><img src="assets/logo.png" alt="MozOut" width="280"></p>
# MozOut for Make
<!-- badges:start -->
[![Release](https://git.mozout.com/mozout-com/make-app/badges/release.svg)](https://git.mozout.com/mozout-com/make-app/releases) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
<!-- badges:end -->
A Make custom app for the MozOut API. Send SMS and email, add E-mail Center contacts, look up domains, add DNS records and start scenarios from account events.
[Português](README-pt.md)
## Modules
| Module | Type | API |
|---|---|---|
| Watch account events | Instant trigger | `PUT /v1/webhooks` |
| Watch E-mail Center events | Instant trigger | `PUT /v1/email/webhook` |
| Send an SMS | Action | `POST /v1/sms/messages` |
| Send an email | Action | `POST /v1/email/messages` |
| Add a contact to E-mail Center | Action | `POST /v1/email/contacts` |
| Create a DNS record | Action | `POST /v1/domains/{domain}/dns` |
| Look up a domain (WHOIS) | Action | `GET /v1/whois/{domain}` |
| Check domain availability | Action | `GET /v1/domains/availability` |
| Make an API call | Universal | any operation |
The app does not register or buy domains. It only looks them up.
## Connecting
The connection asks only for an API key, created in the [API Center](https://www.my.mozout.com/api-center.php) of My MozOut. The API address is fixed in the app. A `sandbox_` key simulates every change and charges nothing.
## Files
The folder follows the local format of the Make Apps Editor for VS Code: `makecomapp.json` lists the components, and each one has its `.iml.json` files (communication, parameters, interface and samples).
1. Open the folder in VS Code with the Make Apps Editor extension.
2. Add your Make origin to `makecomapp.json` (your zone, the app ID and the file with your Make API token) and deploy.
## Good to know
- The API keeps one webhook address per account for account events, and another for E-mail Center events. Turning on a trigger stops with a clear message when the address is already in use, and turning it off only removes the address when it is still its own.
- Sends use an `Idempotency-Key`. Map an order number to it so a repeated run never sends twice.
- `test/live_test.py` checks the files and, with `TEST_API_URL` and a Sandbox key in `TEST_API_KEY`, calls the API with the same requests as the modules.
API docs: https://docs.mozout.com
## License
MIT. See [LICENSE](LICENSE).
---
Maintained by RLX Holdings.