Packages

Webhook delivery, monitoring, and management API. All endpoints under `/v1` require authentication via `Authorization: Bearer <api_key>` header unless marked as **Public**.

Current section

Files

Jump to
hooksniff lib hooksniff resources health.ex
Raw

lib/hooksniff/resources/health.ex

defmodule HookSniff.Health do
@moduledoc "API health check."
alias HookSniff.Client
@doc "Check API health"
@spec check(HookSniff.t()) :: {:ok, map()} | {:error, term()}
def check(client), do: Client.request(:get, "/health", nil, client)
end