Skip to main content
Secret manages credentials Superserve attaches to outbound requests; Provider lists the built-in shortcuts. Python ships both sync (Secret, Provider) and async (AsyncSecret, AsyncProvider) variants with identical method names.

Import

The SDK reads SUPERSERVE_API_KEY from the environment by default; pass apiKey / api_key to override.

Factory methods

Secret.create

Create a secret. Provide either a provider shortcut or a custom auth config with hosts — they’re mutually exclusive.
Options: Returns a Secret.

Secret.get

Fetch an existing secret by name. Returns a Secret.

Secret.list

List all secrets for the team. Returns an array of SecretInfo.

Secret.deleteByName / Secret.delete_by_name

Delete a secret by name. Idempotent. Revokes the secret everywhere immediately — bound stand-in tokens stop working.

Methods on secret

rotate

Replace the value. Bound sandboxes keep their env var; the new value is used on subsequent requests. Returns the updated Secret.

getAudit / get_audit

Requests made with this secret, across all sandboxes, newest first. Returns an array of ProxyAuditEvent.

getSandboxes / get_sandboxes

Sandboxes this secret is currently bound to. Returns an array of SecretSandboxBinding.

getInfo / get_info · delete

getInfo() re-fetches the latest SecretInfo; delete() removes this secret (idempotent).

Provider.list

List the built-in provider shortcuts. Returns an array of ProviderShortcut.

Types

SecretInfo

ProviderShortcut

ProxyAuditEvent

SecretSandboxBinding

For the network log types (NetworkEvent, NetworkLogPage), see Sandbox.getNetworkLog.