Server request pattern
const response = await fetch(`${origin}/knowledge/facts`, {
headers: { Authorization: `Bearer ${token}` },
signal: AbortSignal.timeout(5000)
});Start with one customer action, then define authentication, workspace scope, permission, request identity, retries, errors, evidence, and the owner of unresolved work.
Handle invalid input, permission errors, conflicts, throttling, and temporary failures separately.

/knowledge/factsThe published contract is normative. Examples explain the pattern and do not grant an operation or credential.
Build a server-side connection whose scope and failure behavior are visible.
The published contract is normative. Examples explain the pattern and do not grant an operation or credential.
const response = await fetch(`${origin}/knowledge/facts`, {
headers: { Authorization: `Bearer ${token}` },
signal: AbortSignal.timeout(5000)
});if (!response.ok) {
const failure = await decodeFailure(response);
return handleByStatus(failure);
}Do not send credentials, customer secrets, or raw payment data. Include the contract version, environment, operation, timestamp, and non-sensitive correlation ID.
Confirm authentication, permissions, timeouts, duplicate handling, and failure evidence for the approved deployment.