Bearer logo

Quickly build your own PagerDuty API Integration

  • Don’t waste time learning the PagerDuty API behaviour
  • Use a pre-configured API client and API Key implementation
  • Consume and transform the PagerDuty API with functions
  • Host and scale your integration for free
  • Monitor and log every API call to the PagerDuty API out of the box.
  • Integrate into your app within seconds using our integration clients
or read the documentation

As a developer, I want to build an integration on PagerDuty

On Bearer

Clone the template

npm init bearer pagerduty -t -d providers/pagerduty
cd pagerduty

Configure your API credentials

npm run bearer setup:auth
? Enter PagerDutyAPI key:
Setup the integration with your PagerDuty API key. This will allow you to make authenticated API requests. Don't know your PagerDuty API key?

Test the pre-built function

npm run bearer invoke defaultFunction
{
  "data": [
    {
      "id": 45,
      "title": "Server www15 running low on memory #bearertest",
      "description": "Server www15 running low on memory #bearertest",
      "data": "2019-03-20T12:00:22Z"
    },
    {
      "id": 46,
      "title": "Server www15 running low on memory #bearertest",
      "description": "Server www15 running low on memory #bearertest",
      "data": "2019-03-20T12:01:35Z"
    }
]

Code your own function

npm run bearer generate:function myFunction
create: functions/myFunction.ts
Function generated
✨ Done
Use your function to call any PagerDuty endpoint and map the data to your app models.

Deploy your integration

npm run bearer push
Refreshing tokens... done
✓ Generate bundle
✓ Transfer bundle
🐻 Integration successfully pushed.
Once your integration is ready, deploy it on the Bearer platform and you’re good to go!
On Your App

Call your functions

JSReactNodeJSRuby
<script src="https://cdn.jsdelivr.net/npm/@bearer/js/lib/bearer.production.min.js"></script>
<script>
const bearerClient = bearer('BEARER_CLIENT_ID')
bearerClient.invoke('INTEGRATION_UUID', 'FUNCTION_NAME', {
query: { params: 'value' }
})
.then(() => {
console.log('Successfully invoked function')
})
.catch(() => {
console.log('Something went wrong')
})
</script>
Use our integration clients to call your functions from your app.

Featured Templates

Bearer - API integration Framework

Product

Company

Docs & Help

Legal

Bearer is on TwitterBearer is on GitHubBearer is on FacebookBearer is on LinkedInBearer is on Medium
© Copyright Bearer 2019