Bootstrap FreeKB - OpsGenie - List Teams using REST API
OpsGenie - List Teams using REST API

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter 4c98e0 in the box below so that we can be sure you are a human.