Try it Out

curl -G -H "Authorization: Token token=E7px6VVr3PVHZPJq51oa" \
  -H "Accept: application/vnd.pagerduty+json;version=2" \
  --data-urlencode "statuses[]=triggered" \
  --data-urlencode "statuses[]=acknowledged" \
  "https://api.pagerduty.com/incidents"
require 'net/https'
require 'uri'

url = URI('https://api.pagerduty.com/incidents')
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request['Accept'] = 'application/vnd.pagerduty+json;version=2'
request['Authorization'] = 'Token token=E7px6VVr3PVHZPJq51oa'

response = http.request(request)
puts response.read_body
// Requires jQuery
var settings = {
  "url": "https://api.pagerduty.com/incidents",
  "method": "GET",
  "headers": {
    "Accept": "application/vnd.pagerduty+json;version=2",
    "Authorization": "Token token=E7px6VVr3PVHZPJq51oa"
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
package main
​
import (
  "fmt"
  "io/ioutil"
  "log"
  "net/http"
)
​
func main() {
  request, _ := http.NewRequest("GET", "https://api.pagerduty.com/incidents", nil)
  request.Header.Set("Accept", "application/vnd.pagerduty+json;version=2")
  request.Header.Set("Authorization", "Token token=E7px6VVr3PVHZPJq51oa")
​
  resp, err := http.DefaultClient.Do(request)
  if err != nil {
    log.Fatal(err)
  }
​
  body, _ := ioutil.ReadAll(resp.Body)
​
  fmt.Println(string(body))
}

API Status

Fetching… Refreshed

Fetching…

REST API

Fetching…

Events API

Fetching…

Webhooks