How to find service through API

Hi, I have created a service through the website which I can see using https://my-url-prefix.pagerduty.com/service-directory/my-id

I’m trying to call GET service
curl --request GET
–url ‘https://api.pagerduty.com/services/my-id?include[]=integrations
–header ‘Accept: application/vnd.pagerduty+json;version=2’
–header ‘Authorization: Token token=my-token’
–header ‘Content-Type: application/json’

but this doesn’t work.

If I call List Services, I get what looks to be space themed test data (Endeavour, Vostok etc.)
What am I doing wrong?

Hi James,

Thanks for reaching out on our community space! Are you getting any errors at all? Can you ensure you are not adding filters onto the search such as Teams filter for example?

John

John O’Donnell
Team Lead, EMEA Support@pagerduty.com

Thanks John. The error is a simple not found
curl --request GET
–url https://api.pagerduty.com/services/PX5RBD5
–header ‘Accept: application/vnd.pagerduty+json;version=2’
–header ‘Authorization: Token token=REAL_TOKEN_HERE
–header ‘Content-Type: application/json’
“error”: {
“message”: “Not Found”,
“code”: 2100
}

With the get list, it just seems to be pointing at the wrong data.

curl --request GET
–url ‘https://api.pagerduty.com/services?include[]=integrations
–header ‘Accept: application/vnd.pagerduty+json;version=2’
–header ‘Authorization: Token token=REAL_TOKEN_HERE
–header ‘Content-Type: application/json’

{
“services”: [
{
“id”: “P18JCJH”,
“name”: “Endeavour”,
“description”: null,
“created_at”: “2021-01-07T08:34:46-08:00”,
“updated_at”: “2021-01-07T08:34:46-08:00”,
“status”: “active”,
“teams”: [
{
“id”: “PQZPQGI”,
“type”: “team_reference”,
“summary”: “North American Space Agency (NASA)”,
“self”: “https://api.pagerduty.com/teams/PQZPQGI”,
“html_url”: “https://pdt-apidocs.pagerduty.com/teams/PQZPQGI
}
],
“alert_creation”: “create_alerts_and_incidents”,
“addons”: [],
“scheduled_actions”: [],
“support_hours”: null,
“last_incident_timestamp”: null,
“escalation_policy”: {
“id”: “P6F7EI2”,
“type”: “escalation_policy_reference”,
“summary”: “Endeavour”,
“self”: “https://api.pagerduty.com/escalation_policies/P6F7EI2”,
“html_url”: “https://pdt-apidocs.pagerduty.com/escalation_policies/P6F7EI2
},
“incident_urgency_rule”: {
“type”: “constant”,
“urgency”: “high”
},
“acknowledgement_timeout”: null,
“auto_resolve_timeout”: null,
“alert_grouping”: null,
“alert_grouping_timeout”: null,
“alert_grouping_parameters”: {
“type”: null,
“config”: null
},
“integrations”: [],
“response_play”: null,
“type”: “service”,
“summary”: “Endeavour”,
“self”: “https://api.pagerduty.com/services/P18JCJH”,
“html_url”: “https://pdt-apidocs.pagerduty.com/service-directory/P18JCJH
},
{
“id”: “P703E9Q”,
“name”: “Korabl-Sputnik 1”,
“description”: "28 July, carrying a pair named Bars (Snow Leopard aka Chaika (Seagull)) and Lisichka (Foxie), had been unsuccessful after the Blok G strap-on suffered a fire and breakdown in one of the combustion chambers, followed by its breaking off of the booster 19 seconds after launch. Around 30 seconds, the launch vehicle disintegrated, the core and strap-ons flying in random directions and crashing into the steppe. Flight controllers sent a command to jettison the payload shroud and separate the descent module, but due to the low altitude, the parachutes only deployed partially, and the dogs were killed on impact with the ground. It was believed that the combustion chamber disintegration was due to longitudinal vibrations. ",
“created_at”: “2021-01-07T11:06:27-08:00”,
“updated_at”: “2021-01-07T11:06:27-08:00”,
“status”: “active”,
“teams”: [
{
“id”: “PGVXG6U”,
“type”: “team_reference”,
“summary”: “Space Cosmonauts”,
“self”: “https://api.pagerduty.com/teams/PGVXG6U”,
“html_url”: “https://pdt-apidocs.pagerduty.com/teams/PGVXG6U
}
],
“alert_creation”: “create_alerts_and_incidents”,
“addons”: [],
“scheduled_actions”: [],
“support_hours”: null,
“last_incident_timestamp”: “2021-01-07T19:32:58Z”,
“escalation_policy”: {
“id”: “PH601HN”,
“type”: “escalation_policy_reference”,
“summary”: “Korabl-Sputnik 1”,
“self”: “https://api.pagerduty.com/escalation_policies/PH601HN”,
“html_url”: “https://pdt-apidocs.pagerduty.com/escalation_policies/PH601HN
},
“incident_urgency_rule”: {
“type”: “constant”,
“urgency”: “high”
},
“acknowledgement_timeout”: null,
“auto_resolve_timeout”: null,
“alert_grouping”: null,
“alert_grouping_timeout”: null,
“alert_grouping_parameters”: {
“type”: null,
“config”: null
},
“integrations”: [],
“response_play”: null,
“type”: “service”,
“summary”: “Korabl-Sputnik 1”,
“self”: “https://api.pagerduty.com/services/P703E9Q”,
“html_url”: “https://pdt-apidocs.pagerduty.com/service-directory/P703E9Q
},
{
“id”: “PR6MHNF”,
“name”: “Korabl-Sputnik 2”,
“description”: “Korabl-Sputnik 2 (Russian: Корабль-Спутник 2 meaning Ship-Satellite 2), also known as Sputnik 5 in the West, was a Soviet artificial satellite, and the third test flight of the Vostok spacecraft. It was the first spaceflight to send animals into orbit and return them safely back to Earth. Launched on 19 August 1960, it paved the way for the first human orbital flight, Vostok 1, which was launched less than eight months later.”,
“created_at”: “2021-01-08T07:31:15-08:00”,
“updated_at”: “2021-01-08T07:31:15-08:00”,
“status”: “active”,
“teams”: [
{
“id”: “PGVXG6U”,
“type”: “team_reference”,
“summary”: “Space Cosmonauts”,
“self”: “https://api.pagerduty.com/teams/PGVXG6U”,
“html_url”: “https://pdt-apidocs.pagerduty.com/teams/PGVXG6U
}
],
“alert_creation”: “create_alerts_and_incidents”,
“addons”: [],
“scheduled_actions”: [],
“support_hours”: null,
“last_incident_timestamp”: null,
“escalation_policy”: {
“id”: “PDWYA7V”,
“type”: “escalation_policy_reference”,
“summary”: “Korabl-Sputnik 2”,
“self”: “https://api.pagerduty.com/escalation_policies/PDWYA7V”,
“html_url”: “https://pdt-apidocs.pagerduty.com/escalation_policies/PDWYA7V
},
“incident_urgency_rule”: {
“type”: “constant”,
“urgency”: “high”
},
“acknowledgement_timeout”: null,
“auto_resolve_timeout”: null,
“alert_grouping”: null,
“alert_grouping_timeout”: null,
“alert_grouping_parameters”: {
“type”: null,
“config”: null
},
“integrations”: [],
“response_play”: null,
“type”: “service”,
“summary”: “Korabl-Sputnik 2”,
“self”: “https://api.pagerduty.com/services/PR6MHNF”,
“html_url”: “https://pdt-apidocs.pagerduty.com/service-directory/PR6MHNF
},
{
“id”: “PQVUB8D”,
“name”: “Korabl-Sputnik 3”,
“description”: “Korabl-Sputnik 3 (Russian: Корабль-Спутник 3 meaning Ship-Satellite 3) or Vostok-1K No.3, also known as Sputnik 6 in the West, was a Soviet spacecraft which was launched in 1960. It was a test flight of the Vostok spacecraft, carrying two dogs;”,
“created_at”: “2021-01-08T07:35:05-08:00”,
“updated_at”: “2021-01-08T07:35:05-08:00”,
“status”: “active”,
“teams”: [
{
“id”: “PGVXG6U”,
“type”: “team_reference”,
“summary”: “Space Cosmonauts”,
“self”: “https://api.pagerduty.com/teams/PGVXG6U”,
“html_url”: “https://pdt-apidocs.pagerduty.com/teams/PGVXG6U
}
],
“alert_creation”: “create_alerts_and_incidents”,
“addons”: [],
“scheduled_actions”: [],
“support_hours”: null,
“last_incident_timestamp”: “2021-01-08T15:36:37Z”,
“escalation_policy”: {
“id”: “PCI3U5T”,
“type”: “escalation_policy_reference”,
“summary”: “Korabl-Sputnik 3”,
“self”: “https://api.pagerduty.com/escalation_policies/PCI3U5T”,
“html_url”: “https://pdt-apidocs.pagerduty.com/escalation_policies/PCI3U5T
},
“incident_urgency_rule”: {
“type”: “constant”,
“urgency”: “high”
},
“acknowledgement_timeout”: null,
“auto_resolve_timeout”: null,
“alert_grouping”: null,
“alert_grouping_timeout”: null,
“alert_grouping_parameters”: {
“type”: null,
“config”: null
},
“integrations”: [],
“response_play”: null,
“type”: “service”,
“summary”: “Korabl-Sputnik 3”,
“self”: “https://api.pagerduty.com/services/PQVUB8D”,
“html_url”: “https://pdt-apidocs.pagerduty.com/service-directory/PQVUB8D
},
{
“id”: “P8SWW3O”,
“name”: “Korabl-Sputnik 4”,
“description”: “Korabl-Sputnik 4 (Russian: Корабль-Спутник 4 meaning Ship-Satellite 4) or Vostok-3KA No.1, also known as Sputnik 9 in the West, was a Soviet spacecraft which was launched in 1961. Carrying the mannequin Ivan Ivanovich, a dog named Chernushka, some mice and a guinea pig, it was a test flight of the Vostok spacecraft.”,
“created_at”: “2021-01-11T11:56:04-08:00”,
“updated_at”: “2021-01-11T11:56:22-08:00”,
“status”: “active”,
“teams”: [
{
“id”: “PGVXG6U”,
“type”: “team_reference”,
“summary”: “Space Cosmonauts”,
“self”: “https://api.pagerduty.com/teams/PGVXG6U”,
“html_url”: “https://pdt-apidocs.pagerduty.com/teams/PGVXG6U
}
],
“alert_creation”: “create_alerts_and_incidents”,
“addons”: [],
“scheduled_actions”: [],
“support_hours”: null,
“last_incident_timestamp”: null,
“escalation_policy”: {
“id”: “PETT7VA”,
“type”: “escalation_policy_reference”,
“summary”: “Korabl-Sputnik 4”,
“self”: “https://api.pagerduty.com/escalation_policies/PETT7VA”,
“html_url”: “https://pdt-apidocs.pagerduty.com/escalation_policies/PETT7VA
},
“incident_urgency_rule”: {
“type”: “constant”,
“urgency”: “high”
},
“acknowledgement_timeout”: null,
“auto_resolve_timeout”: null,
“alert_grouping”: null,
“alert_grouping_timeout”: null,
“alert_grouping_parameters”: {
“type”: null,
“config”: null
},
“integrations”: [],
“response_play”: null,
“type”: “service”,
“summary”: “Korabl-Sputnik 4”,
“self”: “https://api.pagerduty.com/services/P8SWW3O”,
“html_url”: “https://pdt-apidocs.pagerduty.com/service-directory/P8SWW3O
},
{
“id”: “POQPQDZ”,
“name”: “Korabl-Sputnik 5”,
“description”: “Korabl-Sputnik 5 (Russian: Корабль-Спутник 5 meaning Ship-Satellite 5) or Vostok-3KA No.2, also known as Sputnik 10 in the West, was a Soviet spacecraft which was launched in 1961, as part of the Vostok programme. It was the last test flight of the Vostok spacecraft design prior the first crewed flight, Vostok 1. It carried the mannequin Ivan Ivanovich, a dog named Zvezdochka (“Starlet”, or “Little star”), television cameras and scientific apparatus.”,
“created_at”: “2021-01-11T11:59:28-08:00”,
“updated_at”: “2021-01-11T11:59:28-08:00”,
“status”: “active”,
“teams”: [
{
“id”: “PGVXG6U”,
“type”: “team_reference”,
“summary”: “Space Cosmonauts”,
“self”: “https://api.pagerduty.com/teams/PGVXG6U”,
“html_url”: “https://pdt-apidocs.pagerduty.com/teams/PGVXG6U
}
],
“alert_creation”: “create_alerts_and_incidents”,
“addons”: [],
“scheduled_actions”: [],
“support_hours”: null,
“last_incident_timestamp”: null,
“escalation_policy”: {
“id”: “PCRKCPU”,
“type”: “escalation_policy_reference”,
“summary”: “Korabl-Sputnik 5”,
“self”: “https://api.pagerduty.com/escalation_policies/PCRKCPU”,
“html_url”: “https://pdt-apidocs.pagerduty.com/escalation_policies/PCRKCPU
},
“incident_urgency_rule”: {
“type”: “constant”,
“urgency”: “high”
},
“acknowledgement_timeout”: null,
“auto_resolve_timeout”: null,
“alert_grouping”: null,
“alert_grouping_timeout”: null,
“alert_grouping_parameters”: {
“type”: null,
“config”: null
},
“integrations”: [],
“response_play”: null,
“type”: “service”,
“summary”: “Korabl-Sputnik 5”,
“self”: “https://api.pagerduty.com/services/POQPQDZ”,
“html_url”: “https://pdt-apidocs.pagerduty.com/service-directory/POQPQDZ
},
{
“id”: “PINLDO6”,
“name”: “Mercury-Atlas 6”,
“description”: “Mercury-Atlas 6 (MA-6) was the first American orbital spaceflight, which took place on February 20, 1962. Piloted by astronaut John Glenn and operated by NASA as part of Project Mercury, it was the fifth human spaceflight, preceded by Soviet orbital flights Vostok 1 and 2 and American sub-orbital flights Mercury-Redstone 3 and 4.”,
“created_at”: “2021-01-18T13:20:28-08:00”,
“updated_at”: “2021-01-18T13:20:28-08:00”,
“status”: “active”,
“teams”: [
{
“id”: “PQZPQGI”,
“type”: “team_reference”,
“summary”: “North American Space Agency (NASA)”,
“self”: “https://api.pagerduty.com/teams/PQZPQGI”,
“html_url”: “https://pdt-apidocs.pagerduty.com/teams/PQZPQGI
}
],
“alert_creation”: “create_alerts_and_incidents”,
“addons”: [],
“scheduled_actions”: [],
“support_hours”: null,
“last_incident_timestamp”: null,
“escalation_policy”: {
“id”: “P7A280A”,
“type”: “escalation_policy_reference”,
“summary”: “Mercury-Atlas 6”,
“self”: “https://api.pagerduty.com/escalation_policies/P7A280A”,
“html_url”: “https://pdt-apidocs.pagerduty.com/escalation_policies/P7A280A
},
“incident_urgency_rule”: {
“type”: “constant”,
“urgency”: “high”
},
“acknowledgement_timeout”: null,
“auto_resolve_timeout”: null,
“alert_grouping”: null,
“alert_grouping_timeout”: null,
“alert_grouping_parameters”: {
“type”: null,
“config”: null
},
“integrations”: [],
“response_play”: null,
“type”: “service”,
“summary”: “Mercury-Atlas 6”,
“self”: “https://api.pagerduty.com/services/PINLDO6”,
“html_url”: “https://pdt-apidocs.pagerduty.com/service-directory/PINLDO6
},
{
“id”: “PEBACYG”,
“name”: “Mercury-Atlas 7”,
“description”: “Mercury-Atlas 7, launched May 24, 1962, was the fourth crewed flight of Project Mercury. The spacecraft, named Aurora 7, was piloted by astronaut Scott Carpenter. He was the sixth human to fly in space. The mission used Mercury spacecraft No. 18 and Atlas launch vehicle No. 107-D.”,
“created_at”: “2021-01-18T13:21:22-08:00”,
“updated_at”: “2021-01-18T13:21:22-08:00”,
“status”: “active”,
“teams”: [
{
“id”: “PQZPQGI”,
“type”: “team_reference”,
“summary”: “North American Space Agency (NASA)”,
“self”: “https://api.pagerduty.com/teams/PQZPQGI”,
“html_url”: “https://pdt-apidocs.pagerduty.com/teams/PQZPQGI
}
],
“alert_creation”: “create_alerts_and_incidents”,
“addons”: [],
“scheduled_actions”: [],
“support_hours”: null,
“last_incident_timestamp”: null,
“escalation_policy”: {
“id”: “PEOQH2A”,
“type”: “escalation_policy_reference”,
“summary”: “Mercury-Atlas 7”,
“self”: “https://api.pagerduty.com/escalation_policies/PEOQH2A”,
“html_url”: “https://pdt-apidocs.pagerduty.com/escalation_policies/PEOQH2A
},
“incident_urgency_rule”: {
“type”: “constant”,
“urgency”: “high”
},
“acknowledgement_timeout”: null,
“auto_resolve_timeout”: null,
“alert_grouping”: null,
“alert_grouping_timeout”: null,
“alert_grouping_parameters”: {
“type”: null,
“config”: null
},
“integrations”: [],
“response_play”: null,
“type”: “service”,
“summary”: “Mercury-Atlas 7”,
“self”: “https://api.pagerduty.com/services/PEBACYG”,
“html_url”: “https://pdt-apidocs.pagerduty.com/service-directory/PEBACYG
},
{
“id”: “PXT1B73”,
“name”: “Mercury-Atlas 8”,
“description”: “Mercury-Atlas 8 (MA-8) was the fifth United States crewed space mission, part of NASA’s Mercury program. Astronaut Walter M. Schirra Jr., orbited the Earth six times in the Sigma 7 spacecraft on October 3, 1962, in a nine-hour flight focused mainly on technical evaluation rather than on scientific experimentation. This was the longest U.S. crewed orbital flight yet achieved in the Space Race, though well behind the several-day record set by the Soviet Vostok 3 earlier in the year. It confirmed the Mercury spacecraft’s durability ahead of the one-day Mercury-Atlas 9 mission that followed in 1963.”,
“created_at”: “2021-01-18T13:22:26-08:00”,
“updated_at”: “2021-01-18T13:22:26-08:00”,
“status”: “active”,
“teams”: [
{
“id”: “PQZPQGI”,
“type”: “team_reference”,
“summary”: “North American Space Agency (NASA)”,
“self”: “https://api.pagerduty.com/teams/PQZPQGI”,
“html_url”: “https://pdt-apidocs.pagerduty.com/teams/PQZPQGI
}
],
“alert_creation”: “create_alerts_and_incidents”,
“addons”: [],
“scheduled_actions”: [],
“support_hours”: null,
“last_incident_timestamp”: null,
“escalation_policy”: {
“id”: “PTTTELX”,
“type”: “escalation_policy_reference”,
“summary”: “Mercury-Atlas 8”,
“self”: “https://api.pagerduty.com/escalation_policies/PTTTELX”,
“html_url”: “https://pdt-apidocs.pagerduty.com/escalation_policies/PTTTELX
},
“incident_urgency_rule”: {
“type”: “constant”,
“urgency”: “high”
},
“acknowledgement_timeout”: null,
“auto_resolve_timeout”: null,
“alert_grouping”: null,
“alert_grouping_timeout”: null,
“alert_grouping_parameters”: {
“type”: null,
“config”: null
},
“integrations”: [],
“response_play”: null,
“type”: “service”,
“summary”: “Mercury-Atlas 8”,
“self”: “https://api.pagerduty.com/services/PXT1B73”,
“html_url”: “https://pdt-apidocs.pagerduty.com/service-directory/PXT1B73
},
{
“id”: “PQ7SZFQ”,
“name”: “Mercury-Atlas 9”,
“description”: “Mercury-Atlas 9 was the final crewed space mission of the U.S. Mercury program, launched on May 15, 1963 from Launch Complex 14 at Cape Canaveral, Florida. The spacecraft, named Faith 7, completed 22 Earth orbits before splashing down in the Pacific Ocean, piloted by astronaut Gordon Cooper, then a United States Air Force major. The Atlas rocket was No. 130-D, and the Mercury spacecraft was No. 20. This mission marks the last time an American was launched alone to conduct an entirely solo orbital mission.”,
“created_at”: “2021-01-18T13:23:17-08:00”,
“updated_at”: “2021-01-18T13:23:17-08:00”,
“status”: “active”,
“teams”: [
{
“id”: “PQZPQGI”,
“type”: “team_reference”,
“summary”: “North American Space Agency (NASA)”,
“self”: “https://api.pagerduty.com/teams/PQZPQGI”,
“html_url”: “https://pdt-apidocs.pagerduty.com/teams/PQZPQGI
}
],
“alert_creation”: “create_alerts_and_incidents”,
“addons”: [],
“scheduled_actions”: [],
“support_hours”: null,
“last_incident_timestamp”: “2021-01-18T21:24:02Z”,
“escalation_policy”: {
“id”: “PA0XAO8”,
“type”: “escalation_policy_reference”,
“summary”: “Mercury-Atlas 9”,
“self”: “https://api.pagerduty.com/escalation_policies/PA0XAO8”,
“html_url”: “https://pdt-apidocs.pagerduty.com/escalation_policies/PA0XAO8
},
“incident_urgency_rule”: {
“type”: “constant”,
“urgency”: “high”
},
“acknowledgement_timeout”: null,
“auto_resolve_timeout”: null,
“alert_grouping”: null,
“alert_grouping_timeout”: null,
“alert_grouping_parameters”: {
“type”: null,
“config”: null
},
“integrations”: [],
“response_play”: null,
“type”: “service”,
“summary”: “Mercury-Atlas 9”,
“self”: “https://api.pagerduty.com/services/PQ7SZFQ”,
“html_url”: “https://pdt-apidocs.pagerduty.com/service-directory/PQ7SZFQ
},
{
“id”: “P310DDP”,
“name”: “Mercury-Redstone 3”,
“description”: “Mercury-Redstone 3, or Freedom 7, was the first United States human spaceflight, on May 5, 1961, piloted by astronaut Alan Shepard. It was the first crewed flight of Project Mercury. The project had the ultimate objective of putting an astronaut into orbit around the Earth and return him safely. Shepard’s mission was a 15-minute suborbital flight with the primary objective of demonstrating his ability to withstand the high g-forces of launch and atmospheric re-entry.”,
“created_at”: “2021-01-18T13:18:12-08:00”,
“updated_at”: “2021-01-18T13:18:12-08:00”,
“status”: “active”,
“teams”: [
{
“id”: “PQZPQGI”,
“type”: “team_reference”,
“summary”: “North American Space Agency (NASA)”,
“self”: “https://api.pagerduty.com/teams/PQZPQGI”,
“html_url”: “https://pdt-apidocs.pagerduty.com/teams/PQZPQGI
}
],
“alert_creation”: “create_alerts_and_incidents”,
“addons”: [],
“scheduled_actions”: [],
“support_hours”: null,
“last_incident_timestamp”: null,
“escalation_policy”: {
“id”: “PZ4NNH3”,
“type”: “escalation_policy_reference”,
“summary”: “Mercury-Redstone 3”,
“self”: “https://api.pagerduty.com/escalation_policies/PZ4NNH3”,
“html_url”: “https://pdt-apidocs.pagerduty.com/escalation_policies/PZ4NNH3
},
“incident_urgency_rule”: {
“type”: “constant”,
“urgency”: “high”
},
“acknowledgement_timeout”: null,
“auto_resolve_timeout”: null,
“alert_grouping”: null,
“alert_grouping_timeout”: null,
“alert_grouping_parameters”: {
“type”: null,
“config”: null
},
“integrations”: [],
“response_play”: null,
“type”: “service”,
“summary”: “Mercury-Redstone 3”,
“self”: “https://api.pagerduty.com/services/P310DDP”,
“html_url”: “https://pdt-apidocs.pagerduty.com/service-directory/P310DDP
},
{
“id”: “PLK9E0W”,
“name”: “Mercury-Redstone 4”,
“description”: “Mercury-Redstone 4 was the second United States human spaceflight, on July 21, 1961. The suborbital Project Mercury flight was launched with a Mercury-Redstone Launch Vehicle, MRLV-8. The spacecraft, Mercury capsule #11, was nicknamed the Liberty Bell 7. It was piloted by astronaut Virgil “Gus” Grissom.”,
“created_at”: “2021-01-18T13:19:14-08:00”,
“updated_at”: “2021-01-18T13:19:14-08:00”,
“status”: “active”,
“teams”: [
{
“id”: “PQZPQGI”,
“type”: “team_reference”,
“summary”: “North American Space Agency (NASA)”,
“self”: “https://api.pagerduty.com/teams/PQZPQGI”,
“html_url”: “https://pdt-apidocs.pagerduty.com/teams/PQZPQGI
}
],
“alert_creation”: “create_alerts_and_incidents”,
“addons”: [],
“scheduled_actions”: [],
“support_hours”: null,
“last_incident_timestamp”: null,
“escalation_policy”: {
“id”: “PRIB9SQ”,
“type”: “escalation_policy_reference”,
“summary”: “Mercury-Redstone 4”,
“self”: “https://api.pagerduty.com/escalation_policies/PRIB9SQ”,
“html_url”: “https://pdt-apidocs.pagerduty.com/escalation_policies/PRIB9SQ
},
“incident_urgency_rule”: {
“type”: “constant”,
“urgency”: “high”
},
“acknowledgement_timeout”: null,
“auto_resolve_timeout”: null,
“alert_grouping”: null,
“alert_grouping_timeout”: null,
“alert_grouping_parameters”: {
“type”: null,
“config”: null
},
“integrations”: [],
“response_play”: null,
“type”: “service”,
“summary”: “Mercury-Redstone 4”,
“self”: “https://api.pagerduty.com/services/PLK9E0W”,
“html_url”: “https://pdt-apidocs.pagerduty.com/service-directory/PLK9E0W
},
{
“id”: “PG9JLO3”,
“name”: “Voskhod 1”,
“description”: “Voskhod 1 (Russian: Восход-1; Восход is Russian for Sunrise) was the seventh crewed Soviet space flight. In October 1964 it achieved a number of “firsts” in the history of crewed spaceflight, being the first space flight to carry more than one crewman into orbit, the first flight without the use of spacesuits, and the first to carry either an engineer or a physician into outer space. It also set a crewed spacecraft altitude record of 336 km (209 mi).”,
“created_at”: “2021-01-20T08:29:38-08:00”,
“updated_at”: “2021-01-20T08:29:38-08:00”,
“status”: “active”,
“teams”: [
{
“id”: “PGVXG6U”,
“type”: “team_reference”,
“summary”: “Space Cosmonauts”,
“self”: “https://api.pagerduty.com/teams/PGVXG6U”,
“html_url”: “https://pdt-apidocs.pagerduty.com/teams/PGVXG6U
}
],
“alert_creation”: “create_alerts_and_incidents”,
“addons”: [],
“scheduled_actions”: [],
“support_hours”: null,
“last_incident_timestamp”: null,
“escalation_policy”: {
“id”: “P3VQWH4”,
“type”: “escalation_policy_reference”,
“summary”: “Voskhod 1”,
“self”: “https://api.pagerduty.com/escalation_policies/P3VQWH4”,
“html_url”: “https://pdt-apidocs.pagerduty.com/escalation_policies/P3VQWH4
},
“incident_urgency_rule”: {
“type”: “constant”,
“urgency”: “high”
},
“acknowledgement_timeout”: null,
“auto_resolve_timeout”: null,
“alert_grouping”: null,
“alert_grouping_timeout”: null,
“alert_grouping_parameters”: {
“type”: null,
“config”: null
},
“integrations”: [],
“response_play”: null,
“type”: “service”,
“summary”: “Voskhod 1”,
“self”: “https://api.pagerduty.com/services/PG9JLO3”,
“html_url”: “https://pdt-apidocs.pagerduty.com/service-directory/PG9JLO3
},
{
“id”: “PJCSLRA”,
“name”: “Vostok 1”,
“description”: “Vostok 1 (Russian: Восто́к, East or Orient 1) was the first spaceflight of the Vostok programme and the first manned spaceflight in history. The Vostok 3KA space capsule was launched from Baikonur Cosmodrome on April 12, 1961, with Soviet cosmonaut Yuri Gagarin aboard, making him the first human to cross into outer space.”,
“created_at”: “2021-01-18T12:52:42-08:00”,
“updated_at”: “2021-01-18T12:52:42-08:00”,
“status”: “active”,
“teams”: [
{
“id”: “PGVXG6U”,
“type”: “team_reference”,
“summary”: “Space Cosmonauts”,
“self”: “https://api.pagerduty.com/teams/PGVXG6U”,
“html_url”: “https://pdt-apidocs.pagerduty.com/teams/PGVXG6U
}
],
“alert_creation”: “create_alerts_and_incidents”,
“addons”: [],
“scheduled_actions”: [],
“support_hours”: null,
“last_incident_timestamp”: null,
“escalation_policy”: {
“id”: “P2JBBS2”,
“type”: “escalation_policy_reference”,
“summary”: “Vostok 1”,
“self”: “https://api.pagerduty.com/escalation_policies/P2JBBS2”,
“html_url”: “https://pdt-apidocs.pagerduty.com/escalation_policies/P2JBBS2
},
“incident_urgency_rule”: {
“type”: “constant”,
“urgency”: “high”
},
“acknowledgement_timeout”: null,
“auto_resolve_timeout”: null,
“alert_grouping”: null,
“alert_grouping_timeout”: null,
“alert_grouping_parameters”: {
“type”: null,
“config”: null
},
“integrations”: [],
“response_play”: null,
“type”: “service”,
“summary”: “Vostok 1”,
“self”: “https://api.pagerduty.com/services/PJCSLRA”,
“html_url”: “https://pdt-apidocs.pagerduty.com/service-directory/PJCSLRA
},
{
“id”: “PG6HW8H”,
“name”: “Vostok 1K-4 (Unnamed)”,
“description”: “The next Vostok 1K spacecraft was launched on December 22, 1960, but it was unnamed because it failed to reach orbit.”,
“created_at”: “2021-01-08T10:37:51-08:00”,
“updated_at”: “2021-01-08T10:38:29-08:00”,
“status”: “active”,
“teams”: [
{
“id”: “PGVXG6U”,
“type”: “team_reference”,
“summary”: “Space Cosmonauts”,
“self”: “https://api.pagerduty.com/teams/PGVXG6U”,
“html_url”: “https://pdt-apidocs.pagerduty.com/teams/PGVXG6U
}
],
“alert_creation”: “create_alerts_and_incidents”,
“addons”: [],
“scheduled_actions”: [],
“support_hours”: null,
“last_incident_timestamp”: “2021-01-08T18:40:08Z”,
“escalation_policy”: {
“id”: “P24Y8QQ”,
“type”: “escalation_policy_reference”,
“summary”: “Vostok 1K-4 (Unnamed)”,
“self”: “https://api.pagerduty.com/escalation_policies/P24Y8QQ”,
“html_url”: “https://pdt-apidocs.pagerduty.com/escalation_policies/P24Y8QQ
},
“incident_urgency_rule”: {
“type”: “constant”,
“urgency”: “high”
},
“acknowledgement_timeout”: null,
“auto_resolve_timeout”: null,
“alert_grouping”: null,
“alert_grouping_timeout”: null,
“alert_grouping_parameters”: {
“type”: null,
“config”: null
},
“integrations”: [],
“response_play”: null,
“type”: “service”,
“summary”: “Vostok 1K-4 (Unnamed)”,
“self”: “https://api.pagerduty.com/services/PG6HW8H”,
“html_url”: “https://pdt-apidocs.pagerduty.com/service-directory/PG6HW8H
},
{
“id”: “P0KV854”,
“name”: “Vostok 2”,
“description”: “Vostok 2 (Russian: Восток-2, Orient 2 or East 2) was a Soviet space mission which carried cosmonaut Gherman Titov into orbit for a full day on August 6, 1961 to study the effects of a more prolonged period of weightlessness on the human body. Titov orbited the Earth over 17 times, exceeding the single orbit of Yuri Gagarin on Vostok 1 − as well as the suborbital spaceflights of American astronauts Alan Shepard and Gus Grissom aboard their respective Mercury-Redstone 3 and 4 missions. Indeed, Titov’s number of orbits and flight time would not be surpassed by an American astronaut until Gordon Cooper’s Mercury-Atlas 9 spaceflight in May 1963.”,
“created_at”: “2021-01-18T12:58:55-08:00”,
“updated_at”: “2021-01-18T12:58:55-08:00”,
“status”: “active”,
“teams”: [
{
“id”: “PGVXG6U”,
“type”: “team_reference”,
“summary”: “Space Cosmonauts”,
“self”: “https://api.pagerduty.com/teams/PGVXG6U”,
“html_url”: “https://pdt-apidocs.pagerduty.com/teams/PGVXG6U
}
],
// Some stuff deleted
],
“limit”: 25,
“offset”: 0,
“total”: null,
“more”: false
}

Am using the following links:
https://developer.pagerduty.com/api-reference/e960cca205c0f-list-services
https://developer.pagerduty.com/api-reference/165ad96a22ffd-get-a-service