Production checklist

Check an integration before launch: the key kind, memory and rules on every request, idempotency, timeouts and retries, stream completion, request IDs, status.

Run through this list before a Cruxy integration serves real traffic. Each item says what to do, why, and where the details live. The request below already does most of it: a developer API key, memory and rules set explicitly, a pinned Cruxy-Version, an Idempotency-Key, a client timeout above the tier's deadline, and the IDs logged.

# One Idempotency-Key per logical request; reuse it on every retry of it.
# -i prints the X-Request-Id and Cruxy-Version headers to log with the body.
curl -i https://api.cruxy.ai/api/v1/chat \
  --max-time 120 \
  -H "Authorization: Bearer $CRUXY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Cruxy-Version: 2026-10-18" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "model": "saga",
    "memory": { "recall": false, "capture": false },
    "rules": false,
    "messages": [
      { "role": "user", "content": "Summarize a refund policy in two sentences." }
    ]
  }'

Keys

  • Run servers on a developer API key, never a signed-in credential. A key from device login carries its owner's memory and standing rules into every request by default, and expires 90 days after issue. A developer API key, created in the Cruxy Console, has memory and rules off by default, never expires, and is rotated or revoked in the Console. See Get your API key.
  • Confirm the key kind at startup. bucket on GET /api/v1/limits is apikey for a developer key and subscription for a signed-in credential; Security shows the check.
  • Keep the key in the environment or a secrets manager, one key per environment. See Security.

Memory and rules

  • Set memory and rules on every chat request. Left out, the key decides, and the two kinds of key decide differently. Sending memory: {"recall": false, "capture": false} and rules: false makes a request behave the same whichever key sends it. Opt in with true only where you mean it; see Memory and Standing rules.
  • Pin Cruxy-Version 2026-09-26 or later when you rely on false. A gateway that predates the field would ignore it and capture anyway; with the pin, it refuses the request instead.

Versioning

  • Pin Cruxy-Version on every request, at the version you tested against, and move it deliberately. Responses name the tier by its current id from 2026-10-18. See Request IDs and metadata.
  • Ignore JSON fields you do not recognize. New cruxy.* fields ship without a version change.

Timeouts and retries

  • Set client timeouts above the tier's deadline. A stream: false call gets one attempt: 90 seconds on canto and saga, 45 seconds on epos, then 504 upstream_timeout. A stream may run for up to five minutes. See Reliability.
  • Do not retry a 504 unchanged. It takes as long again. Stream the turn, or lower max_tokens or reasoning_effort.
  • Retry only what the API marks retryable, honouring Retry-After, with exponential backoff and jitter, and a cap on attempts and total wait. Stop on a budget or spend-cap 429: it clears only at its reset_at. See Errors and retries.

Idempotency

  • Send an Idempotency-Key on every request that takes one, and reuse it on every retry of the same logical request. A success is stored for 24 hours and replayed without billing again. The same key with a different body is 409 idempotency_conflict. See Errors and retries.
  • Expect a stream to replay nothing. A retried stream generates again; when both attempts complete, the request is billed once.

Streams

  • Accept a streamed answer only once it finished. On POST /api/v1/chat, data: [DONE] is the only success signal; on POST /api/v2/chat, the stream ends with exactly one finish or error frame. A stream that ends any other way failed: send the request again with the same Idempotency-Key. See Streaming.
  • Check choices before you read choices[0]. The usage frame on every successful stream has choices: [].
  • Treat finish_reason: "length" with empty content as a spent budget, not an empty answer. On canto, thinking spends max_tokens; see Reasoning effort.

Logging

  • Log the IDs of every call, success or failure: the X-Request-Id header, the per-call request_id (cruxy.request_id on a success), the Cruxy-Version header, and cruxy.routed_tier. With model: "auto", the router can pick differently for two similar requests, so log the tier that served. See Request IDs and metadata.
  • Log the key_id, never the key, and never the request body when it can carry personal data.

Status

  • Watch status.getcruxy.com, the Cruxy status page, and read GET /api/status from your own monitoring. It takes no key. GET /api/health reports only that the gateway's HTTP listener is up; do not read it as platform status. See Reliability.
  • Know where to report a problem. Support lists what to send.

Next steps

Was this page helpful?