HookSniff.Endpoints (hooksniff v1.1.1)

Manage webhook endpoints — create, list, update, delete, rotate secrets.

Summary

Functions

Create a new endpoint

Delete an endpoint

Get endpoint by ID

List endpoints (paginated). Accepts :limit and :offset opts.

List all endpoints (auto-paginate). Accepts :limit and :max_pages opts.

Rotate the signing secret for an endpoint

Update an endpoint

Functions

create(client, params)

@spec create(HookSniff.t(), map()) :: {:ok, map()} | {:error, term()}

Create a new endpoint

delete(client, id)

@spec delete(HookSniff.t(), String.t()) :: {:ok, map()} | {:error, term()}

Delete an endpoint

get(client, id)

@spec get(HookSniff.t(), String.t()) :: {:ok, map()} | {:error, term()}

Get endpoint by ID

list(client, opts \\ [])

@spec list(
  HookSniff.t(),
  keyword()
) :: {:ok, map()} | {:error, term()}

List endpoints (paginated). Accepts :limit and :offset opts.

list_all(client, opts \\ [])

@spec list_all(
  HookSniff.t(),
  keyword()
) :: {:ok, list()} | {:error, term()}

List all endpoints (auto-paginate). Accepts :limit and :max_pages opts.

rotate_secret(client, id)

@spec rotate_secret(HookSniff.t(), String.t()) :: {:ok, map()} | {:error, term()}

Rotate the signing secret for an endpoint

update(client, id, params)

@spec update(HookSniff.t(), String.t(), map()) :: {:ok, map()} | {:error, term()}

Update an endpoint