---
title: "Retrieve a webhook subscription"
method: GET
path: "/webhooks/{id}"
tags: ["Webhooks"]
---

# Retrieve a webhook subscription

`GET /webhooks/{id}`

## Request

- Base URL: `https://api.automessage.app/v1`
- URL: `https://api.automessage.app/v1/webhooks/{id}`
- Auth: API key in header `X-API-KEY`

## Response `200`

The subscription (never the secret).

- object
  - `data` Webhook
    - `id` string, required
    - `url` string, uri, required
    - `events` string[], required
    - `createdAt` string, date-time, nullable, required
    - `lastDeliveryAt` string, date-time, nullable
    - `lastOutcome` 'delivered' | 'failed' | 'rejected', nullable: Outcome of the most recent delivery attempt.
    - `consecutiveFailures` integer, required: Reset to 0 by a successful delivery; 25 in a row switches the subscription off.
    - `disabled` boolean, required

## Other responses

- `404`: The requested resource does not exist.

---

[API](https://skmtc.dev/automessage/apis/automessage-rest-api.md) · [All operations](https://skmtc.dev/automessage/apis/automessage-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/automessage/apis/automessage-rest-api/revisions/129f369dee8b?raw)
