Account API
If using the EU instance of Opsgenie, the URL needs to be https://api.eu.opsgenie.com for requests to be successful.
General Information
Create an API Integration and obtain your apiKey to make requests listed above. Please make sure that the integration is not restricted to access configurations.
Get Account Info
Get account info request is used to search and retrieve account information in Opsgenie.
HTTP Method | URL |
---|---|
GET | https://api.opsgenie.com/v2/account |
Sample Request
curl -X GET 'https://api.opsgenie.com/v2/account'
--header 'Authorization: GenieKey 50b71849-6b09-46d8-bd7b-046b9d942eb4'
Response:
{
"data": {
"name": "opsgenie",
"userCount": 1450,
"plan": {
"maxUserCount": 1500,
"name": "Enterprise",
"isYearly": true
}
},
"took": 0.084,
"requestId": "e5122017-f5c5-4681-88ec-84e2898a61ad"
}
Updated about 5 years ago