Skip to main content
Because Superserve attaches credentials to outbound requests, every use of a secret is recorded. You get a full trail of what was sent where, with what result — without any cooperation from the code, and without trusting the sandbox.

Requests made with a secret

getAudit() returns the requests authenticated with a secret, across every sandbox that used it, newest first:
Each event carries the sandbox that made it, the request line, and both the status returned to the sandbox and the upstreamStatus from the real service:
FieldDescription
tsWhen the request was made
sandboxId / sandboxNameThe sandbox that used the secret (sandboxName is null if it’s since been deleted)
method · host · pathThe request line
statusStatus returned to the sandbox
upstreamStatusStatus from the upstream service
latencyMsRound-trip time
errorCodeSet when the request was blocked or failed

Filtering

Narrow to a status class, or page back with the before cursor:
status accepts "2xx", "3xx", "4xx", "5xx", or "errors" (requests that failed before reaching the service).

Sandboxes using a secret

To see where a secret is bound, getSandboxes() lists the live bindings:
For the full picture of a single sandbox’s traffic — not just secret-bearing requests, but every connection it made — use the network log.