Menu
Grafana Cloud
Grafana Incident
Grafana Incident APIs
Grafana Incident JSON/HTTP RPC API
Client libraries and examples
Grafana Cloud
Note: This feature is currently experimental or under active development. Some details may change when the feature is released.
Client libraries and examples
You can use the following client libraries and SDKs to interact with the Grafana Incident JSON/HTTP RPC API.
Something missing?
If there is something missing, please open an issue in the grafana/incident-community GitHub repo.
Make your own HTTP requests
You can interact with the Grafana Incident JSON/HTTP RPC API by making HTTP POST requests.
- Figure out the correct endpoint by combining your host, API path, service and methods. For example,
.../api/IncidentService.CreateIncident
. - Look up the relevant request and response objects from the reference documentation (they match the method name, for example,
CreateIncidentRequest
andCreateIncidentResponse
). - Construct a JSON object representing the request object and set that as the body of the request.
- Set the
Authorization
header toBearer your_service_account_token_here
. - Set the
Content-Type
andAccept
headers toapplication/json; charset=utf-8
. - Make a
POST
request. - Parse the appropriate response object.
Related resources from Grafana Labs
Additional helpful documentation, links, and articles: