- JavaScript 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github | ||
| creates | ||
| lib | ||
| searches | ||
| test | ||
| triggers | ||
| .gitignore | ||
| authentication.js | ||
| CHANGELOG.md | ||
| index.js | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| README.pt.md | ||
| repo.json | ||
Interweb Mozambique for Zapier
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.
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 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
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.
Maintained by RLX Holdings.