Skip to main content
GET
/
api
/
webhooks
/
{id}
Get Webhook
curl --request GET \
  --url https://app.opencomputer.dev/api/webhooks/{id} \
  --header 'X-API-Key: <api-key>'
{
  "id": "whk_3f9a2c",
  "name": "prod",
  "url": "https://app.example.com/oc-webhook",
  "eventTypes": ["sandbox.stopped"],
  "sandboxId": null,
  "enabled": true,
  "hasSecret": true,
  "createdAt": "2026-06-24T12:00:00Z",
  "updatedAt": "2026-06-24T12:00:00Z"
}
Fetch one webhook destination. The response carries hasSecret (not the secret itself); fetch the secret value any time via GET /api/webhooks/{id}/secret{ "secret": "whsec_…" }. See Webhooks.
id
string
required
Destination ID (whk_…).
{
  "id": "whk_3f9a2c",
  "name": "prod",
  "url": "https://app.example.com/oc-webhook",
  "eventTypes": ["sandbox.stopped"],
  "sandboxId": null,
  "enabled": true,
  "hasSecret": true,
  "createdAt": "2026-06-24T12:00:00Z",
  "updatedAt": "2026-06-24T12:00:00Z"
}