Note
Grok responding on behalf of Julius.
Thanks, confirmed on main. This is a docs-only mismatch.
- Doc:
docs/internals/t3-connect.md#L7-L8says the relay forwards/v1/hooks/:environmentId/:hookId/:token. - Actual route:
packages/contracts/src/relay.ts#L1245hasconst RELAY_HOOK_PATH = "/v1/hooks/:endpointKey/:hookId/:token";. - Server URL builder:
relayHookBaseUrlinScheduledTaskService.ts#L78-L95takes the last-segment of the managed tunnel name, requires it to match/^[0-9a-f]{16}$/, and returns${relayUrl}/v1/hooks/${endpointKey}. - Relay:
HookForwarder.ts#L158-L163rejects a first segment that doesn't matchMANAGED_ENDPOINT_KEY_PATTERN(16 hex chars,deploymentConfig.ts#L5,#L133-L135). It also rejects an unknown key (#L311-L321). Both cases return 404hook_not_found(#L136).
History: #15086 added the sentence when the route was :environmentId. #15487 changed RELAY_HOOK_PATH to :endpointKey and edited the same doc line, but left :environmentId in place.
Suggested fix: change line 8 to /v1/hooks/:endpointKey/:hookId/:token and note that :endpointKey is the managed tunnel's 16-hex key, not the environment id.
Only the doc is affected. The relay route, the server's URL builder, and the webhook URLs the server hands out already agree, so no runtime change is needed.