---
title: "Retrieves a webhook for an account"
method: GET
path: "/accounts/{account_id}/webhooks/{webhook_id}"
tags: ["Notifications Webhooks"]
---

# Retrieves a webhook for an account

`GET /accounts/{account_id}/webhooks/{webhook_id}`

## Request

- Base URL: `https://api.cint.com/v1`
- URL: `https://api.cint.com/v1/accounts/{account_id}/webhooks/{webhook_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/cint/apis/demand-api/docs/accounts/:account_id/webhooks/:webhook_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves the details of a specific webhook subscription. Note the `ETag` header in the response, which is required for making updates or deletions.

## Response `200`

The webhook was retrieved successfully.

- Webhook: Contains the details of a webhook subscription, excluding the secret.
  - `id` string, ulid: The ID of the webhook.
  - `url` string, url: The HTTPS endpoint where webhook notifications will be sent.
  - `events` WebhookEventType[]: An array of webhook event type names.
  - `compression` 'gzip' | 'null', nullable: The compression applied to the body of every webhook request for this subscription. To receive compressed request bodies, set this field to `gzip`. Each request then carries the `Content-Encoding: gzip` header. The `Content-Type` header remains `application/json`, because compression changes only how the body is encoded, not its media type. Compression is not enabled by default. To receive uncompressed request bodies, omit this field, or set it to `null` or an empty string. Updating a webhook replaces the subscription, so an update that omits `compression` disables it. To keep compression enabled, include the field in every update.
  - `created_at` string, date-time: The timestamp when the webhook was created, in RFC3339 UTC format.
  - `updated_at` string, date-time: The timestamp when the webhook was last updated, in RFC3339 UTC format.

## Other responses

- `401`: A request is unauthorized.
- `403`: A requested is forbidden.
- `404`: A requested resource isn't found.
- `500`: A request failed due to an internal error.

---

[API](https://skmtc.dev/cint/apis/demand-api.md) - [All operations](https://skmtc.dev/cint/apis/demand-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cint/apis/demand-api/revisions/077a4bdda5cb?raw)
