Vigiar
1
0
Derivar
Você já tinha feito uma derivação do repositório zapier-app, anteriormente
0
zapier-app/README.md
2026-12-01 13:45:48 +02:00

57 linhas
2,7 KiB
Markdown

<p align="center"><img src="assets/logo.png" alt="Interweb" width="280"></p>
# Interweb Mozambique for Zapier
<!-- badges:start -->
[![Release](https://git.interweb.co.mz/interweb-mz/zapier-app/badges/release.svg)](https://git.interweb.co.mz/interweb-mz/zapier-app/releases) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
<!-- badges:end -->
A Zapier app for the Interweb Mozambique API. Send SMS and email, add E-mail Center contacts, look up domains, add DNS records and start Zaps from account events. It is built with the Zapier Platform CLI.
[Português](README-pt.md)
## What it does
| Kind | Name | API |
|---|---|---|
| Trigger | New Account Event (SMS sent or failed, domain registered or failed, service created, reseller credit low or level changed) | `PUT /v1/webhooks` |
| Trigger | New E-mail Center Event (sent, delivered, bounced, marked as spam, failed) | `PUT /v1/email/webhook` |
| Action | Send SMS | `POST /v1/sms/messages` |
| Action | Send Email | `POST /v1/email/messages` |
| Action | Add Contact to E-mail Center | `POST /v1/email/contacts` |
| Action | Create DNS Record | `POST /v1/domains/{domain}/dns` |
| Search | Look Up Domain (WHOIS) | `GET /v1/whois/{domain}` |
| Search | Check Domain Availability | `GET /v1/domains/availability` |
The app does not register or buy domains. It only looks them up.
## Connecting
People connect with an API key created in the [API Center](https://www.meu.interweb.co.mz/api-center.php) of Meu Interweb. The API address is fixed in the app. Give the key only the permissions the Zaps need: `sms:write`, `email_center:write`, `dns:write`, `domains:read`, `webhooks:write` and the matching `:read` ones. A `sandbox_` key simulates every change and charges nothing.
## Good to know
- The API keeps one webhook address per account for account events, and another for E-mail Center events. A Zap only takes over an empty address, and only removes it when it is still its own. So use one Zap per kind of event, and add Filter or Paths steps to split them.
- Notifications are signed (`X-Webhook-Signature`). The app checks the signature with the secret it receives when the Zap is turned on.
- Sends use an `Idempotency-Key`. Map an order number to the Idempotency Key field to be sure a repeated Zap run never sends twice.
- Errors come back with a clear message: invalid key (401), not enough credit (402), missing permission (403) and too many requests (429, retried by Zapier).
## Development
```bash
npm install
zapier test # or: npm test
zapier push
```
`npm test` runs offline checks. With `TEST_API_URL` and a Sandbox key in `TEST_API_KEY`, it also calls the API.
API docs: https://docs.interweb.co.mz
## License
MIT. See [LICENSE](LICENSE).
---
Maintained by RLX Holdings.