Environments¶
Use separate environments when integrating the partner API into your own backend or operational systems.
These are API environments for B2B integrations, not the public checkname.ch website experience.
Environment matrix¶
| Environment | Base URL | Swagger / OpenAPI UI | Purpose |
|---|---|---|---|
| Sandbox | https://api.test.checkname.ch |
https://api.test.checkname.ch/docs |
Integration testing and pre-production validation |
| Production | https://api.checkname.ch |
https://api.checkname.ch/docs |
Live partner traffic |
Required client configuration¶
- Configure a unique API key per environment.
- Set request timeout and retry policy in your HTTP client.
- Persist
traceIdon every response. - If your logging stack is header-oriented, also capture
X-Trace-Id, which mirrors the same identifier. - Monitor 4xx/5xx error rates and latency percentiles.
Suggested environment variables¶
CHECKNAME_API_BASE_URL=https://api.test.checkname.ch
CHECKNAME_API_KEY=<sandbox-or-production-key>
Keep sandbox and production values separate and switch them together.
Retry and timeout posture¶
- Do not retry unchanged
400or422requests. - Treat
401as a configuration or credential problem, not a retry case. - For
429, respectRetry-Afterbefore retrying gradually. - For transient
5xxresponses, use bounded backoff with jitter. - Choose a client timeout that fits your own workflow and user experience, then keep it consistent across environments.
Logging fields to capture¶
- environment
- endpoint
- HTTP status
traceId- request timestamp in UTC
- rate-limit headers when present
Promotion recommendations¶
- Validate schema handling in sandbox.
- Validate business decision mapping on realistic payloads.
- Confirm logging, retry behavior, and support handoff details before live traffic.
- Promote to production behind a feature flag or equivalent control.
- Roll out progressively and monitor.
Use Getting Started > Production Checklist as the final go-live gate.