oncall-engine/docs/sources/oncall-api-reference/outgoing_webhooks.md

42 lines
774 B
Markdown
Raw Normal View History

---
canonical: https://grafana.com/docs/oncall/latest/oncall-api-reference/outgoing_webhooks/
title: Outgoing webhooks HTTP API
weight: 700
---
# Outgoing webhooks (actions)
Used in escalation policies with type `trigger_action`.
## List actions
```shell
curl "{{API_URL}}/api/v1/actions/" \
--request GET \
--header "Authorization: meowmeowmeow" \
--header "Content-Type: application/json"
```
The above command returns JSON structured in the following way:
```json
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": "KGEFG74LU1D8L",
"name": "Publish alert group notification to JIRA"
}
],
"current_page_number": 1,
"page_size": 50,
"total_pages": 1
}
```
**HTTP request**
`GET {{API_URL}}/api/v1/actions/`