You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(webhooks): add --name to CLI examples and correct multi-endpoint language
After the `endpoints create --name` CLI fix, three examples still showed the
old `tango webhooks endpoints create --url URL` shape. Without `--name` the
CLI now errors out (Click marks it required). Updated all three call sites
(lines 123, 243, 373) to include `--name`.
Also fixed the stale "one endpoint per user" wording in the troubleshooting
section. Endpoint uniqueness is on `(user, name)` post-tango#2256 — users can
have multiple endpoints with distinct names. The 400 case is name collision,
not a user-level cap.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
`create` returns the generated `secret` once — save it. `delete` prompts for confirmation; `--yes` skips. `--inactive` registers the endpoint disabled (no deliveries until you re-enable it).
247
+
`create` returns the generated `secret` once — save it. `--name` is required and must be unique per user (uniqueness is enforced on `(user, name)`, so you can have multiple endpoints with distinct names). `delete` prompts for confirmation; `--yes` skips. `--inactive` registers the endpoint disabled (no deliveries until you re-enable it).
tango webhooks endpoints create --name dev --url https://<id>.ngrok.io/tango/webhooks
374
374
# (save the `secret` from the response into TANGO_WEBHOOK_SECRET)
375
375
# 4. Create an alert via the SDK
376
376
python -c '
@@ -442,7 +442,7 @@ This is the shape your handler will receive — including the exact `X-Tango-Sig
442
442
443
443
**`fetch-sample` returns 401.** Set `TANGO_API_KEY` (or pass `--api-key`). `fetch-sample` reads from Tango's API.
444
444
445
-
**`endpoints create` returns 403 or "endpoint already exists".**Tango limits one endpoint per user. Use `endpoints list` to find the existing one, then either reuse it or delete it first.
445
+
**`endpoints create` returns 400 or "endpoint already exists".**Endpoint names are unique per user — if you've already created one with that `--name`, either pick a different name or use `endpoints list` to find the existing one and reuse it.
446
446
447
447
**`simulate --event-type X` fails with HTTP 4xx.** Tango doesn't recognize the event type. Run `list-event-types` to see the current list.
0 commit comments