Skip to content

Commit ee19ce2

Browse files
committed
docs(webhooks): wait for delivery before endpoint cleanup
1 parent 22e9856 commit ee19ce2

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

‎docs/webhooks.md‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ client.webhooks.endpoints.enable(created.id)
5252
accepted = client.webhooks.endpoints.test(created.id)
5353
for endpoint in client.webhooks.endpoints.list(limit=20):
5454
print(endpoint.id)
55-
client.webhooks.endpoints.disable(created.id)
56-
client.webhooks.endpoints.delete(created.id)
5755
```
5856

5957
`AsyncForward` exposes the same methods: await individual requests and use
@@ -94,6 +92,18 @@ with 2xx. Retries share the same ID. The SDK does not supply a queue or a dedupl
9492
database. The examples only parse an authenticated delivery and list endpoints;
9593
they do not start a production receiver or create subscriptions automatically.
9694

95+
## Clean up a test endpoint
96+
97+
Run this step separately for a temporary test endpoint, after your receiver has
98+
confirmed receipt and successfully verified the expected test delivery. Keep the
99+
endpoint active while waiting: disabling or deleting it can discard queued
100+
deliveries. HTTP 202 and `delivery_rows` confirm queuing, not receipt.
101+
102+
```python
103+
client.webhooks.endpoints.disable(created.id)
104+
client.webhooks.endpoints.delete(created.id)
105+
```
106+
97107
## Validation boundary
98108

99109
Offline tests cover all eight HTTP contracts, errors, cursor paging, omitted/null/

0 commit comments

Comments
 (0)