---
title: "Fetch one admission endpoint with its hourly counters for the last 7 days"
method: GET
path: "/api/hook-endpoints/{id}"
tags: ["HookEndpoints"]
---

# Fetch one admission endpoint with its hourly counters for the last 7 days

`GET /api/hook-endpoints/{id}`

## Request

- Base URL: `http://localhost:38200`
- URL: `http://localhost:38200/api/hook-endpoints/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `token`

## Response `200`

Endpoint plus aggregated counters.

- object
  - `name` string, required
  - `url` string, uri, required: https only, no credentials
  - `enabled` boolean
  - `priority` integer
  - `ops` string[]
  - `timeoutMs` integer
  - `failMode` 'closed' | 'open': What a failed call means on a single write.
  - `bulkFailMode` 'open' | 'closed': What a failed call means on a bulk write.
  - `id` integer
  - `contentGrant` 'text' | 'attributes', nullable
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `stats` object[]
    - `windowStart` string, date-time
    - `calls` integer
    - `allowed` integer
    - `patched` integer
    - `quarantined` integer
    - `denied` integer
    - `errors` integer
    - `timeouts` integer
    - `failedOpen` integer
    - `failedClosed` integer

## Other responses

- `401`: Missing or invalid credentials.
- `403`: Admin or owner role (or an API key with admin scope) required, or the plan lacks the webhooks feature.
- `404`: Resource not found (or not visible to the caller).

---

[API](https://skmtc.dev/contextq/apis/contextq-api.md) · [All operations](https://skmtc.dev/contextq/apis/contextq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/contextq/apis/contextq-api/revisions/7afc44056a22?raw)
