Skip to main content
GET
/
webhooks
/
{webhook_id}
Python
import requests

webhook_id = "your-webhook-id"
response = requests.get(
    f"https://api.roe-ai.com/webhooks/{webhook_id}/",
    headers={"Authorization": "Bearer YOUR_API_KEY"}
)
webhook = response.json()
print(f"Webhook: {webhook['name']} -> {webhook['url']}")
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "url": "<string>",
  "alerts": [
    "<string>"
  ],
  "failure_count": 123,
  "created_by": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "secret": "<string>",
  "headers": {},
  "events": [
    "<string>"
  ],
  "is_active": true,
  "last_triggered_at": "2023-11-07T05:31:56Z",
  "last_success_at": "2023-11-07T05:31:56Z",
  "last_failure_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

webhook_id
string<uuid>
required

Response

200 - application/json

Serializer for Webhook model

id
string<uuid>
required
name
string
required

User-friendly name for this webhook

Maximum string length: 255
url
string<uri>
required

Webhook endpoint URL

Maximum string length: 500
alerts
string[]
required

Alert IDs

failure_count
integer
required

Number of consecutive failures

created_by
integer
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
secret
string
Maximum string length: 255
headers
object

Custom headers to include in webhook requests (key-value pairs)

events
string[]

List of events to trigger this webhook (e.g., ['triggered'])

is_active
boolean
last_triggered_at
string<date-time>
last_success_at
string<date-time>
last_failure_at
string<date-time>