Skip to content

docs(webhooks): document the API contract - #421

Merged
mikewheeleer merged 2 commits into
Agentpay-Org:mainfrom
thlpkee20-wq:docs/webhooks-01-api
Jul 28, 2026
Merged

docs(webhooks): document the API contract#421
mikewheeleer merged 2 commits into
Agentpay-Org:mainfrom
thlpkee20-wq:docs/webhooks-01-api

Conversation

@thlpkee20-wq

Copy link
Copy Markdown
Contributor

Closes #380

Adds docs/webhooks.md covering list (with the pagination contract),
get-one, create, patch, test-delivery, and delete, the known event-type
values, and an error-codes table.

Test plan

  • npm run build
  • npm run lint

The GET /api/v1/webhooks handler inlined the same limit/offset parsing
and slicing preamble duplicated in the api-keys list handler. Extracted
it into applyOffsetPage() in src/listPagination.ts as a single reusable
entry point; behavior is unchanged (same defaults, same response shape).
Adds docs/webhooks.md covering list/get/create/patch/test/delete, the
known event-type values, and an error-codes table.
@mikewheeleer

Copy link
Copy Markdown
Contributor

polished work @thlpkee20-wq, merging it in 🚀

@mikewheeleer
mikewheeleer merged commit 2b25c24 into Agentpay-Org:main Jul 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document the webhooks API contract and error codes

2 participants