API
Mocked endpoints stay compatible with Cortex contracts.
Use the sandbox path to exercise request shape, response shape, and verification without production credentials.
- Sbox mock: https://sbox.ucotron.com
- Local mock: http://127.0.0.1:8787
Documentación de la API — once guías por flujo y el modelo de dominio
Local fixture path
This console gives developers one mocked path through sandbox key setup, AOI creation, webhook preview, report download, and signature verification. Every state is backed by checked-in fixtures.
API
Use the sandbox path to exercise request shape, response shape, and verification without production credentials.
Changelog
The local portal points at the generated changelog and GA lifecycle gate before SDK or insurer integrations consume a route.
Sandbox
The local guide mirrors the expected sandbox journey before any external provider is called.
Auth
Docs can explain the production posture while keeping this app free of secrets and runtime mutation.
Trust
The repo now owns the source for status, security disclosure, and subprocessors without changing DNS or runtime state.
Environment selector
The default target is fixture-backed and uses placeholder auth only. Production API hosts are intentionally excluded from this selector.
Sandbox alias
Treat sbox.ucotron.com as the canonical sandbox surface. The longer sandbox.ucotron.com alias is expected to redirect or route to the same sandbox experience when DNS and edge routing are approved separately.
Fixture auth flow
export UCOTRON_FIXTURE_TOKEN="ucotron_fixture_token_non_secret"
curl -sS https://sbox.ucotron.com/v1/sandbox/api-keys \
-H "Authorization: Bearer $UCOTRON_FIXTURE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"tenantId":"tenant_demo","mode":"sandbox_fixture_only"}'curl -sS https://sbox.ucotron.com/v1/sbox/reset \
-H "Authorization: Bearer ucotron_fixture_token_non_secret" \
-H "Idempotency-Key: idem_sbox_reset_demo_001" \
-H "Content-Type: application/json" \
-d '{"reason":"developer_fixture_reset","datasetId":"sbox_dataset_demo"}'curl -sS https://sbox.ucotron.com/v1/sbox/webhooks/preview \
-H "Authorization: Bearer ucotron_fixture_token_non_secret" \
-H "Content-Type: application/json" \
-d '{"eventType":"claim.created","targetUrl":"https://webhook.local.invalid/sbox"}'import { createCortexApiClient, createSboxFixtureAuthHeaders } from "@ucotron-cortex/api-client";
const client = createCortexApiClient();
const dataset = await client.getSboxFixtureDataset();
const headers = createSboxFixtureAuthHeaders("ucotron_fixture_token_non_secret", "idem_sbox_demo_001");
console.log(dataset.metadata.datasetId, headers["idempotency-key"]);import os
import requests
token = os.getenv("UCOTRON_FIXTURE_TOKEN", "ucotron_fixture_token_non_secret")
response = requests.post(
"https://sbox.ucotron.com/v1/sandbox/api-keys",
headers={"Authorization": f"Bearer {token}"},
json={"tenantId": "tenant_demo", "mode": "sandbox_fixture_only"},
timeout=10,
)
print(response.json())Verification gate
`/v1/verify` recomputes the claims dossier evidence hash and checks an Ed25519 manifest signature with the published public key, without DB, network, or cloud runtime access.