Sample API Scripts


The PagerDuty support team has put together a complete example set of Ruby and Python scripts that can be used to interact with the PagerDuty API, in addition to JavaScript and PHP examples that you are free to copy and use (after substituting in the right variables, and/or submitting them from the command line).

Every request in our developer documentation, for both our Events and REST APIs, is also documented by at least one of the scripts available below.


Have more questions? Submit a request