Source for the API Alerts Zapier app. Published openly for transparency: you can read every line of code that runs when your Zaps talk to API Alerts.
If you just want to use the integration, find it in the Zapier app directory - no need to clone this repo.
Zapier Platform CLI app providing OAuth2 authentication, two triggers and one create action.
index.js- app manifest (triggers, creates, auth, request template with bearer header)authentication.js- OAuth2 config (authorize, token, refresh)constants.js- base URLs and versiontriggers/new_event.js- fires when a matching event arrives in your workspace (optional channel and event-pattern filters)triggers/channel_list.js- dynamic dropdown of your workspace's channelscreates/send_event.js- posts an event into API Alertstest/- Jest tests using mockedz.request
Built on zapier-platform-core 19.x, Node >=22.
Bug reports, suggestions and pull requests are welcome. A few ground rules:
- Open an issue first for anything non-trivial so we can talk through the design before you spend time on a PR.
- Run
npm testbefore submitting - tests intest/are pure unit tests with mocked HTTP, no credentials needed. - Keep changes scoped. One PR = one concern.
For questions or anything else, open an issue or email support@apialerts.com.
npm install
npm testThat's enough to validate code changes. The tests mock z.request, so no API credentials or OAuth setup is needed.
Releases are deployed by GitHub Actions: creating a GitHub release pushes the integration to Zapier, and the Promote / Migrate workflows (run from the Actions tab) take a version live and move existing users. See RELEASES.md for the full flow.