Operations 2
POST
/api/v1/relationship-evidence
Record a primary-deployment construct→outcome relationship effect size
#
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/peopleprincipia-com:peopleprincipia-com-ingest-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Principia Registry Ingest API
version: 0.1.0
description: 'Read API for the **Principia** canonical registry of organizational-science
measurement: constructs, instruments, survey items, citations, effect sizes,
synthesized Bayesian priors, theoretical models, instrument equivalences,
methodology critiques, and interventions.
This document describes the **REST surface** (`/api/v1/*` + `/api/health`).
Principia also exposes a **Model Context Protocol (MCP)** server at
`POST /api/mcp` for AI agents — that surface is JSON-RPC, not REST, and is
documented in `api-consumer-guide.md` (it is summarized here for discovery only).
## Conventions
- All `/api/v1/*` responses are JSON with `Cache-Control: no-store`.
- **List** endpoints return `{ "items": [...], "next_cursor": string | null }`.
- **Single-entity** endpoints return `{ "entity": {...} }`.
- **Errors** return `{ "error": { "code": string, "message": string } }`.
- Pagination is opaque-cursor based: pass the previous response''s
`next_cursor` back as `?cursor=`. `limit` is clamped to 1..500 (default 50).
- Every authenticated response carries `X-RateLimit-Limit`,
`X-RateLimit-Remaining`, and `X-RateLimit-Reset` headers.
- Every route answers errors with the one envelope above, including the
first-party routes under `/api/free`, `/api/support`, `/api/hadl`,
`/api/study-design` and `/api/workspace`, and an unknown path under `/api`
(404 `not_found`). The MCP list tools page with the same `limit` and
`cursor` names and answer `next_cursor`.
## Rate limits
The numbers below are the ones the limiter enforces (counting: sliding
window of the last 60 seconds; REST and MCP share one counter per consumer,
and each MCP `tools/call` counts as one request).
- Unkeyed (free researcher tier): **30 requests per 60 seconds** per client
IP address; `limit` is capped at **5** rows per request; no `cursor`.
- Keyed: **60 requests per 60 seconds** per key by default. A key can be
issued a different rate; `X-RateLimit-Limit` on any response carries the
rate that applies to the caller.
- Feedback form (`POST /api/feedback/...`): **5 submissions per 600 seconds**
per client IP address and entity.
- `X-RateLimit-Reset` is an ISO 8601 UTC timestamp, not epoch seconds.
- Exceeded: HTTP `429` with `Retry-After` in seconds.'
contact:
name: People Analyst / Principia
url: https://peopleprincipia.com
servers:
- url: https://peopleprincipia.com
description: Production
security:
- bearerAuth: []
tags:
- name: Ingest
description: Write endpoints (scoped)
paths:
/api/v1/deployment-evidence:
post:
operationId: postDeploymentEvidence
x-codeSamples:
- lang: Shell
label: curl
source: 'curl -s -X POST -H "Authorization: Bearer $PRINCIPIA_API_KEY" -H "Content-Type: application/json" -d ''{"source":"reincarnation","metric_type":"cronbach_alpha","value":1,"n_observations":1,"collected_at":"2026-01-01T00:00:00Z"}'' "https://peopleprincipia.com/api/v1/deployment-evidence"
'
tags:
- Ingest
summary: Record a production psychometric observation
description: '**Requires scope `write:deployment_evidence`** (held by the
`toolbox-reincarnation` consumer). The Reincarnation round-trip:
production reliability/IRT measurements flow back as DeploymentEvidence.
GET → 405.'
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DeploymentEvidenceRequest'
responses:
'200':
$ref: '#/components/responses/Entity'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'405':
$ref: '#/components/responses/MethodNotAllowed'
/api/v1/relationship-evidence:
post:
operationId: postRelationshipEvidence
x-codeSamples:
- lang: Shell
label: curl
source: 'curl -s -X POST -H "Authorization: Bearer $PRINCIPIA_API_KEY" -H "Content-Type: application/json" -d ''{"from_construct_id":"VAR_000405","predicate":"predicts","to_construct_id":"VAR_000405","source":"primary-deployment","value":1,"n_observations":1,"n_orgs":1,"collected_at":"2026-01-01T00:00:00Z"}'' "https://peopleprincipia.com/api/v1/relationship-evidence"
'
tags:
- Ingest
summary: Record a primary-deployment construct→outcome relationship effect size
description: '**Requires scope `write:deployment_evidence`** (held by the
`toolbox-reincarnation` consumer). PRN-065 — the Living-layer keystone.
A construct→outcome RELATIONSHIP effect size observed (aggregated,
anonymized, consented) in real client deployments — the primary-evidence
sibling of a literature EffectSize. Distinct from
`/api/v1/deployment-evidence` (which records item/instrument
*psychometrics*). Once ingested, the row is read back FUSED with the
published prior on `GET /api/v1/priors` and the per-tuple prior route
(PRN-066 evidence-source provenance + fused posterior). GET → 405.
Idempotent on (from, predicate, to, source, collected_at). Soft-fails
with `extraction_status: "needs_review"` (never drops data) when the
tuple has no synthesized CanonicalPrior yet. D4: never writes
`effect_size`, never flips a Citation.'
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RelationshipEvidenceRequest'
responses:
'200':
description: 'Ingest result, including `prior_movement` (PRN-427 / HO-2798) —
whether and how the tuple''s FUSED POSTERIOR moved.
'
content:
application/json:
schema:
$ref: '#/components/schemas/RelationshipEvidenceResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'405':
$ref: '#/components/responses/MethodNotAllowed'
components:
responses:
Forbidden:
description: Consumer lacks the required scope
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: Invalid request (validation, bad cursor, bad enum)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
MethodNotAllowed:
description: Wrong HTTP method (these endpoints are POST-only)
headers:
Allow:
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Entity:
description: Single entity
content:
application/json:
schema:
$ref: '#/components/schemas/EntityEnvelope'
Unauthorized:
description: Missing or invalid Bearer key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
RefusalsWireUnavailable:
type: object
required:
- count
- note
properties:
count:
type: 'null'
note:
type: string
RelationshipEvidenceResponse:
type: object
required:
- entity
properties:
entity:
type: object
required:
- relationship_evidence_id
- created
- warnings
- prior_movement
properties:
relationship_evidence_id:
type: string
created:
type: boolean
warnings:
type: array
items:
type: string
prior_movement:
$ref: '#/components/schemas/PriorMovement'
RefusalsWireClasses:
type: object
required:
- grounding
- unresolved_construct
- instrument_facet
- scope
- do_not_mint
- tombstone
- curator_hold
- grounding_basis
- unresolved_construct_basis
- instrument_facet_basis
- scope_basis
- do_not_mint_basis
- tombstone_basis
- curator_hold_basis
properties:
grounding:
type: integer
minimum: 0
unresolved_construct:
type: integer
minimum: 0
instrument_facet:
type: integer
minimum: 0
scope:
type: integer
minimum: 0
do_not_mint:
type: integer
minimum: 0
tombstone:
type: integer
minimum: 0
curator_hold:
type: integer
minimum: 0
grounding_basis:
$ref: '#/components/schemas/RefusalsWireBasis'
unresolved_construct_basis:
$ref: '#/components/schemas/RefusalsWireBasis'
instrument_facet_basis:
$ref: '#/components/schemas/RefusalsWireBasis'
scope_basis:
$ref: '#/components/schemas/RefusalsWireBasis'
do_not_mint_basis:
$ref: '#/components/schemas/RefusalsWireBasis'
tombstone_basis:
$ref: '#/components/schemas/RefusalsWireBasis'
curator_hold_basis:
$ref: '#/components/schemas/RefusalsWireBasis'
DeploymentEvidenceRequest:
type: object
required:
- source
- metric_type
- value
- n_observations
- collected_at
properties:
canonical_item_id:
type: string
canonical_variable_id:
type: string
instrument_id:
type: string
source:
type: string
enum:
- reincarnation
- survey_respondent
- preference_modeler
- manual
metric_type:
type: string
enum:
- cronbach_alpha
- omega
- irt_discrimination
- irt_difficulty
- virtue_score
- test_retest
- convergent_r
- factor_loading
value:
type: number
ci_lower:
type: number
ci_upper:
type: number
n_observations:
type: integer
collected_at:
type: string
format: date-time
context:
type: object
properties:
study_id:
type: string
population:
type: string
locale:
type: string
toolbox_deployment_id:
type: string
Predicate:
type: string
enum:
- predicts
- moderates
- mediates
- correlates
- causes
RefusalsWireEnvelope:
description: PRN-388 — refusal rate per served answer, attached to every successful list/entity JSON response.
oneOf:
- $ref: '#/components/schemas/RefusalsWireBlock'
- $ref: '#/components/schemas/RefusalsWireUnavailable'
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
description: 'Stable machine code: unauthorized | forbidden | rate_limited | bad_request | not_found | bad_cursor | bad_predicate | bad_min_informativeness | bad_min_freshness_score | method_not_allowed | no_prior_synthesized | internal | store_unavailable'
message:
type: string
RelationshipEvidenceRequest:
type: object
required:
- from_construct_id
- predicate
- to_construct_id
- source
- value
- n_observations
- n_orgs
- collected_at
description: 'PRN-065 — a construct→outcome relationship effect size observed in real
client deployments (aggregated, anonymized, consented). The
primary-evidence sibling of a literature EffectSize.
'
properties:
from_construct_id:
type: string
description: Source construct (CanonicalVariable.variable_id).
predicate:
$ref: '#/components/schemas/Predicate'
to_construct_id:
type: string
description: Target construct / outcome (CanonicalVariable.variable_id).
source:
type: string
enum:
- primary-deployment
- reincarnation
- survey_respondent
- preference_modeler
- manual
description: Provenance label. `primary-deployment` is the RECOMMENDED Living-layer tag (publication-bias-free by construction); the upstream measurement-source literals are also accepted.
value:
type: number
description: Observed correlation r in (-1, 1).
ci_lower:
type: number
ci_upper:
type: number
n_observations:
type: integer
minimum: 1
description: Pooled respondent count across contributing deployments.
n_orgs:
type: integer
minimum: 1
description: Distinct organizations contributing — the convenience-sample honesty signal.
collected_at:
type: string
format: date-time
moderators:
type: object
description: PRN-065 population moderators. Absent keys = pooled over that dimension.
properties:
industry:
type: string
role:
type: string
region:
type: string
era:
type: string
description: Time window, e.g. "2018-2024".
context:
type: object
properties:
study_id:
type: string
population:
type: string
locale:
type: string
toolbox_deployment_id:
type: string
PosteriorSnapshot:
type: object
required:
- mu
- sigma
- n_observations
- n_orgs
description: Fisher-z-scale posterior parameters — the same scale CanonicalPrior.parameters.{mu,sigma} is stored on — plus the primary-deployment evidence backing them.
properties:
mu:
type: number
description: Fisher-z mean.
sigma:
type: number
description: Fisher-z standard deviation.
n_observations:
type: integer
description: Pooled respondent count across primary-deployment evidence backing this snapshot (0 = published-prior-only, no deployment evidence yet).
n_orgs:
type: integer
description: Pooled distinct-org count across those rows (0 = published-prior-only).
EntityEnvelope:
type: object
required:
- entity
properties:
entity:
type: object
additionalProperties: true
_refusals:
$ref: '#/components/schemas/RefusalsWireEnvelope'
RefusalsWireBlock:
type: object
required:
- count
- count_basis
- classes
properties:
count:
type: integer
minimum: 0
count_basis:
$ref: '#/components/schemas/RefusalsWireBasis'
classes:
$ref: '#/components/schemas/RefusalsWireClasses'
RefusalsWireBasis:
type: object
required:
- command
- measured_at
properties:
command:
type: string
measured_at:
type: string
PriorMovement:
type: object
required:
- canonical_prior_id
- had_prior
- posterior_before
- posterior_after
- moved
- delta_mu
- basis
description: 'PRN-427 / HO-2798 — whether and how the FUSED POSTERIOR for this tuple
moved. This NEVER means the published-literature CanonicalPrior itself
was revised (only synthesis, PRN-021, writes that row, and this ingest
never touches it) — only the read-side fusion of the prior with pooled
primary-deployment evidence (PRN-052 `/posterior`, PRN-066
`deriveEvidenceProvenance`) can move. `basis` names exactly what was
compared, and is honest about the cold-start case where no published
prior exists yet.
'
properties:
canonical_prior_id:
oneOf:
- type: string
- type: 'null'
description: null when no published CanonicalPrior exists for this tuple — never fabricated.
had_prior:
type: boolean
posterior_before:
oneOf:
- $ref: '#/components/schemas/PosteriorSnapshot'
- type: 'null'
description: null only when there was NOTHING to compare against yet (no published prior AND no prior primary-deployment evidence for this tuple).
posterior_after:
allOf:
- $ref: '#/components/schemas/PosteriorSnapshot'
description: Always present — once this row lands there is always at least one estimate.
moved:
type: boolean
description: Did the posterior change at all (mu or sigma, beyond floating-point noise)?
delta_mu:
oneOf:
- type: number
- type: 'null'
description: posterior_after.mu - posterior_before.mu; null when posterior_before is null.
basis:
type: string
description: One sentence naming exactly what was compared.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: '`Authorization: Bearer <key>`. Keys are provisioned per consumer via
`PRINCIPIA_KEY_*` environment variables and map to a named consumer
(`toolbox`, `pa-site`, `internal`, `toolbox-reincarnation`) with a scope
set. Default scope is `read:public`; `read:internal` and
`write:deployment_evidence` gate specific endpoints.
'