---
title: "Get webhook endpoint details"
method: GET
path: "/v1/webhooks/{webhook_id}"
tags: ["Webhooks"]
---

# Get webhook endpoint details

`GET /v1/webhooks/{webhook_id}`

## Request

- Base URL: `https://api.oilpriceapi.com`
- URL: `https://api.oilpriceapi.com/v1/webhooks/{webhook_id}`
- Auth: API key in header `Authorization`

Get details of a specific webhook endpoint.
**Requires the Scale plan.**

## Path parameters

- `webhook_id` string, required

## Response `200`

Webhook endpoint details

- WebhookResponse
  - `success` boolean
  - `webhook` Webhook
    - `id` string
    - `url` string, uri
    - `events` string[]
    - `secret` string: HMAC signing secret for verification
    - `active` boolean
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `last_delivery` object
      - `attempted_at` string, date-time
      - `status` 'success' | 'failed' | 'pending'
      - `response_code` integer

## Other responses

- `403`: Insufficient plan - Scale required
- `404`: Webhook not found
- `500`: Unexpected server error. Retry transient failures with bounded backoff and retain the request ID when contacting support.

---

[API](https://skmtc.dev/oilpriceapi/apis/oil-price-api-v1.md) - [All operations](https://skmtc.dev/oilpriceapi/apis/oil-price-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/oilpriceapi/apis/oil-price-api-v1/revisions/7f8b4d763210?raw)
