Get Service IDs for multiple Teams is only returning the service IDs for the first team

I am trying to get the Service IDs for 3 teams in our PD instance. When I use the array team_ids[] and list 3 team IDs, I’m only getting the services related to the first team ID.
https://developer.pagerduty.com/api-reference/e960cca205c0f-list-services

Hi Bruce,

When a parameter can accept an array and you would like to include multiple values, you’ll need to specify this in the query string by repeating the same query parameter with each different value. This would look something like the below:

https://api.pagerduty.com/services?team_ids[]=TeamID1Here&team_ids[]=TeamID2Here

This is covered in our API documentation under Filtering.

Let me know if you have any other questions!

Cassie Champagne
Technical Support Specialist
PagerDuty Support

Register now to join us for PagerDuty Summit 2022!
Summit 2022