{"_id":"5da8dcb3cdeeec002c5dfefe","project":"564e5930c3553e0d003e53d0","version":{"_id":"564e5a9b1560880d008d30dc","project":"564e5930c3553e0d003e53d0","__v":27,"createdAt":"2015-11-19T23:26:19.166Z","releaseDate":"2015-11-19T23:26:19.166Z","categories":["564e5a9b1560880d008d30dd","566318e1f5ca460d00f41896","56631d08cd54d50d005015fa","56631d2a81ad7417006a202c","5668ba19fbd7680d009375f4","5668cb8b10bda80d00797ed9","5668cb9d10bda80d00797eda","56830d8a3f94e00d004e2a7a","56830d9072bb720d0091f594","56830d94cb4d190d0027698e","56830dc44aecbd0d00a464c5","569e90f3c9b43e0d00c4bab1","56a96d338791090d00113bab","56b12d8336d2580d00247877","56c36bf0a869d017002ea55b","56c36bf93d30210d00ea84bb","56c77749b935671700ff0304","56c7ab9e5652c217008e091a","56cb8bdad5c6241d00ef5e61","58aefce02470660f00b54539","58aefd0bebd7370f0078b954","59ca65ca4337830026edf24f","5c33cd9eb47ba20051ac8d64","5c33df728bec1d0063431c34","5c4783ef523219027055513a","5c4f35033400f3010203a999","5d1d0c9f19c3a0003aeb525a"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Foundation","version_clean":"2.0.0","version":"2"},"category":{"_id":"5d1d0c9f19c3a0003aeb525a","project":"564e5930c3553e0d003e53d0","version":"564e5a9b1560880d008d30dc","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2019-07-03T20:14:23.802Z","from_sync":false,"order":2,"slug":"app-integration-development","title":"App / Integration Development"},"user":"5bbfe5dfe752030003c5cb52","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2019-10-17T21:27:15.738Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"Once you have [created an app](https://v2.developer.pagerduty.com/docs/how-to-build-an-app), you will need to connect it to PagerDuty so that the app's users can send and receive data.\n\n## Send Data to PagerDuty\nFor inbound traffic, the PagerDuty app supports two flows: [OAuth 2.0](https://v2.developer.pagerduty.com/docs/installing-oauth-2) and [Events Integration](https://v2.developer.pagerduty.com/docs/developing-a-pagerduty-integration). \n\nAdding OAuth 2.0 enables your app to create an access token, associated with the user, for use with the [REST API](https://v2.developer.pagerduty.com/docs/rest-api). This token allows the user to easily create and update any resource in accordance with the user's permission and supported by the REST API. Learn how to [set up OAuth 2.0](https://v2.developer.pagerduty.com/docs/installing-oauth-2) with your app.\n\nAdding the Events Integration enables the user of your app to select a service and create an integration key on that service. This integration key can be used to send events to PagerDuty using the [Events API v1](https://v2.developer.pagerduty.com/docs/events-api) or [Events API v2](https://v2.developer.pagerduty.com/docs/events-api-v2). Learn how to [set up an Events Integration](https://v2.developer.pagerduty.com/docs/developing-a-pagerduty-integration) with your app.\n\nVisit the [API Picker ](https://v2.developer.pagerduty.com/docs/api-picker)for more information on selecting the right API for your app.\n\n## Receive Data from PagerDuty\nOAuth 2.0 access token can additionally be used to request available resources from PagerDuty via the [REST API](https://v2.developer.pagerduty.com/docs/rest-api).","excerpt":"","slug":"connect-an-app-to-pagerduty","type":"basic","title":"Connect an App to PagerDuty"}

Connect an App to PagerDuty


Once you have [created an app](https://v2.developer.pagerduty.com/docs/how-to-build-an-app), you will need to connect it to PagerDuty so that the app's users can send and receive data. ## Send Data to PagerDuty For inbound traffic, the PagerDuty app supports two flows: [OAuth 2.0](https://v2.developer.pagerduty.com/docs/installing-oauth-2) and [Events Integration](https://v2.developer.pagerduty.com/docs/developing-a-pagerduty-integration). Adding OAuth 2.0 enables your app to create an access token, associated with the user, for use with the [REST API](https://v2.developer.pagerduty.com/docs/rest-api). This token allows the user to easily create and update any resource in accordance with the user's permission and supported by the REST API. Learn how to [set up OAuth 2.0](https://v2.developer.pagerduty.com/docs/installing-oauth-2) with your app. Adding the Events Integration enables the user of your app to select a service and create an integration key on that service. This integration key can be used to send events to PagerDuty using the [Events API v1](https://v2.developer.pagerduty.com/docs/events-api) or [Events API v2](https://v2.developer.pagerduty.com/docs/events-api-v2). Learn how to [set up an Events Integration](https://v2.developer.pagerduty.com/docs/developing-a-pagerduty-integration) with your app. Visit the [API Picker ](https://v2.developer.pagerduty.com/docs/api-picker)for more information on selecting the right API for your app. ## Receive Data from PagerDuty OAuth 2.0 access token can additionally be used to request available resources from PagerDuty via the [REST API](https://v2.developer.pagerduty.com/docs/rest-api).