RepostClient.create() reads the environment. To configure explicitly, build ClientOptions and pass it to create(ClientOptions):
Credential and endpoint precedence
Credential precedence, highest first: a.apiKeyProvider(...) (resolved per send) → a fixed .apiKey(...) → the REPOST_SEND_API_KEY environment variable → the REPOST_TOKEN environment variable. With none set, the first send fails with a CONFIGURATION error and never touches the network. Base URI: an explicit .baseUri(...) → REPOST_API_URL → the default https://api.repost.sh. Plain http:// is accepted only for loopback hosts.
Defaults
The defaults are production-ready:ClientOptions.toString() is redacted — it never prints your credential.
Proxy, TLS, and mTLS
BuildHttpTransportOptions and pass it via .httpTransportOptions(...): an explicit HttpProxyOptions (with an optional credentials provider), a borrowed SSLContext for a custom truststore or mutual TLS, and an allowlisted TLS protocol (TLS 1.2/1.3) and cipher list. HTTP redirects are disabled.
Continue
Reliability
Idempotency, the five delivery states, cancellation, and backpressure.
Observability
Diagnostics, lifecycle observers, Micrometer, and OpenTelemetry.
Frameworks
Spring Boot properties, Jakarta CDI config, and container lifecycle.