OpsGenie - List Teams using REST API

by
Jeremy Canfield |
Updated: October 13 2022
| OpsGenie articles
Here is an example of how to submit a GET request to api.opsgenie.com using curl.
~]$ curl --request GET https://api.opsgenie.com/v2/teams --header 'Authorization: GenieKey 6760afa9-5a94-4b45-bd77-54752d4d5292'
Which should return JSON that looks something like this.
{
"data": [
{
"description": "My Team",
"id": "0847efce-c378-48cb-8b74-f5bb514090e7",
"links": {
"api": https://api.opsgenie.com/v2/teams/0847efce-c378-48cb-8b74-f5bb514090e7,
"web": https://app.opsgenie.com/teams/dashboard/0847efce-c378-48cb-8b74-f5bb514090e7/main
},
"name": "my-team"
}
]
}
Did you find this article helpful?
If so, consider buying me a coffee over at