---
title: "Validate Action"
method: POST
path: "/validate"
tags: ["execution"]
---

# Validate Action

`POST /validate`

## Request

- Base URL: `https://api.babyblueviper.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.babyblueviper.com/validate`
- Auth: none declared

Paid backtest reality-check (EdgeProof).

Submit a strategy's realized returns (or trade rows) — NOT the strategy itself —
and get a verdict: likely_real / borderline / overfit_or_noise. Scored with the
Deflated Sharpe Ratio (haircut for the number of variants tried), a sign-flip
permutation test against a coin-flip null, and purged k-fold out-of-sample decay.
Inputs are not retained beyond a redacted audit hash.

4th check (S226, additive): submit trade rows with 'coin' and 'ts'/'timestamp' fields
to also get a concentration jackknife (does the total depend on one trade/coin) and a
BTC-regime overlay (does the sign depend on riding a BTC melt-up window) under a
'concentration_and_regime' key. Built directly from a real, repeated finding in this
platform's own trading history: both mistakes recurred across independent strategies
and were rediscovered by hand more than once before this check existed.

## Headers

- `authorization` string, nullable

## Request body

- ValidateRequest, nullable: EdgeProof backtest reality-check. Submit realized P&L (never your strategy); get a verdict on whether the edge is real or curve-fit noise.
  - `returns` number[], nullable: Per-trade (or per-period) realized returns.
  - `trades` object[], nullable: Alternative to 'returns': rows with a return field (ret/pnl/net_bps) and optional 'entry'/'exit' bar indices for honest purged k-fold timing. Include 'coin' and 'ts'/'timestamp' on each row to also unlock a 4th check (S226): a concentration jackknife (does the total sign flip once you exclude the single best trade or the single dominant coin) and a BTC-regime overlay (does the sign differ inside vs outside a BTC melt-up window). Both are additive — never change verdict/DSR/permutation_p_value/kfold_decay_rho, they surface under a separate 'concentration_and_regime' key only when coin/ts context is present.
  - `n_trials` integer: How many strategy variants/params you tried before selecting this one. Be honest — more trials = bigger Deflated-Sharpe haircut.
  - `trial_sharpes` number[], nullable: Optional: Sharpes of all variants tried → exact DSR variance.
  - `k_folds` integer
  - `n_perms` integer
  - `periods_per_year` number, nullable: Optional, for annualized-Sharpe display only.
  - `agent_id` string

## Response `200`

Successful Response

- unknown

## Other responses

- `402`: Payment Required — pay in USDC via x402 (or Lightning/L402) and retry with the X-PAYMENT header.
- `422`: Validation Error

---

[API](https://skmtc.dev/babyblueviper/apis/invinoveritas.md) - [All operations](https://skmtc.dev/babyblueviper/apis/invinoveritas/llms.txt) - [OpenAPI document](https://skmtc.dev/babyblueviper/apis/invinoveritas/revisions/8b07f40b15e9?raw)
