Principia Effects API
Effect sizes (meta-analytic correlations)
Operations 4
GET
/api/v1/constructs/{id}/effects
Effect-size edges for one construct, in devplane's EffectEdge shape
#
Effect sizes (meta-analytic correlations)
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-effects-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 Effects 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: effects
description: Effect sizes (meta-analytic correlations)
paths:
/api/v1/constructs/{id}/effects:
get:
operationId: getConstructsByIdEffects
x-codeSamples:
- lang: Shell
label: curl
source: 'curl -s -H "Authorization: Bearer $PRINCIPIA_API_KEY" "https://peopleprincipia.com/api/v1/constructs/VAR_000405/effects?limit=5"
'
tags:
- effects
summary: Effect-size edges for one construct, in devplane's EffectEdge shape
description: Antecedent and consequence edges for a construct.* id, so a consumer can rank related constructs without reading the store. Researcher tier. Rows are returned as stored; rows that could not be shaped are counted in the `X-Principia-Skipped-Rows` header.
parameters:
- $ref: '#/components/parameters/idPath'
- name: direction
in: query
required: false
schema:
type: string
enum:
- in
- out
description: Omit for both directions.
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 2000
default: 500
- name: cursor
in: query
required: false
schema:
type: string
responses:
'200':
$ref: '#/components/responses/List'
'400':
description: bad_construct_id, bad_direction or bad_cursor
'401':
$ref: '#/components/responses/Unauthorized'
/api/v1/constructs/{id}/evidence:
get:
operationId: getConstructsByIdEvidence
x-codeSamples:
- lang: Shell
label: curl
source: 'curl -s -H "Authorization: Bearer $PRINCIPIA_API_KEY" "https://peopleprincipia.com/api/v1/constructs/VAR_000405/evidence?ref=string"
'
tags:
- effects
summary: Evidence records for one outcome construct (Loop B)
description: One record per canonical prior on the outcome, with effect rows, citations and N, or a single typed gap with a reader-facing sentence. A prior from a different outcome is never copied in. Researcher tier.
parameters:
- $ref: '#/components/parameters/idPath'
- name: ref
in: query
required: true
schema:
type: string
description: Pack slug + measure name, or walk id + hop index.
- name: target_kind
in: query
required: false
schema:
type: string
enum:
- measure_page
- walk_hop
default: measure_page
- name: function
in: query
required: false
schema:
type: string
- name: measure_kind
in: query
required: false
schema:
type: string
default: rate
description: Anything other than `rate` returns a not_a_rate gap.
responses:
'200':
$ref: '#/components/responses/List'
'400':
description: bad_construct_id, missing_ref, bad_target_kind or bad_measure_kind
'401':
$ref: '#/components/responses/Unauthorized'
/api/v1/effects:
get:
operationId: getEffects
x-codeSamples:
- lang: Shell
label: curl
source: 'curl -s -H "Authorization: Bearer $PRINCIPIA_API_KEY" "https://peopleprincipia.com/api/v1/effects?limit=5"
'
tags:
- effects
summary: Search effect sizes
description: Filterable EffectSize rows. May emit `X-Principia-Note` when gated/empty by design.
parameters:
- name: from
in: query
schema:
type: string
- name: to
in: query
schema:
type: string
- name: statistic_type
in: query
schema:
type: string
description: e.g. r
- $ref: '#/components/parameters/limit'
- $ref: '#/components/parameters/cursor'
responses:
'200':
$ref: '#/components/responses/List'
/api/v1/effects/{id}:
get:
operationId: getEffectsById
x-codeSamples:
- lang: Shell
label: curl
source: 'curl -s -H "Authorization: Bearer $PRINCIPIA_API_KEY" "https://peopleprincipia.com/api/v1/effects/<id>"
'
tags:
- effects
summary: Get one effect-size row by id
description: 'PRN-448. A retired id answers 410 with its tombstone (superseded_by when a successor exists); an id that never existed answers 404. Served numeric basis (value / k / N) is attached as on the search route. `value_basis.review_label` is stable and uses the same review-label vocabulary as findings and priors. PRN-463: the entity carries `attestation` (receipt id + Merkle path to the published daily root) and a `cite_as` line naming the receipt id; verify at `GET /api/v1/verify`.'
parameters:
- $ref: '#/components/parameters/idPath'
responses:
'200':
description: The effect-size row, with its attestation block
content:
application/json:
schema:
type: object
properties:
entity:
allOf:
- type: object
additionalProperties: true
- $ref: '#/components/schemas/AttestedFields'
'404':
$ref: '#/components/responses/NotFound'
'401':
$ref: '#/components/responses/Unauthorized'
components:
schemas:
AttestedFields:
type: object
description: PRN-463 additive keys on every attested prior / effect / construct result (REST and MCP).
properties:
attestation:
$ref: '#/components/schemas/Attestation'
cite_as:
type: string
description: A citation line that names the receipt id (identical to attestation.cite_as).
RefusalsWireUnavailable:
type: object
required:
- count
- note
properties:
count:
type: 'null'
note:
type: string
Attestation:
type: object
description: 'PRN-463. Proof that a served record is a leaf of a daily Merkle root Principia published
(PRN-387 receipts, PRN-420 external anchor). No new proof format: `receipt_id` is the
PRN-387 receipt content_hash, `path` is its Merkle path, `merkle_root` the day''s root.
`status` is `not_anchored` when the record is in no published root yet (added after the
latest anchor, or not an anchored kind, or a culture-conditioned sub-prior): then
`receipt_id`, `anchored_at` and `merkle_root` are null and `path` is empty. That is a gap,
never a finding that the value is wrong.
'
required:
- attestation_version
- status
- record_id
- receipt_id
- anchored_at
- merkle_root
- path
- external_anchor
- scope
- verify_url
- cite_as
properties:
attestation_version:
type: string
enum:
- '1'
status:
type: string
enum:
- anchored
- not_anchored
- anchor_unavailable
record_id:
type: string
receipt_id:
type:
- string
- 'null'
anchored_at:
type:
- string
- 'null'
description: UTC anchor date of the daily root.
merkle_root:
type:
- string
- 'null'
path:
type: array
items:
$ref: '#/components/schemas/MerklePathStep'
external_anchor:
type: object
required:
- service
- status
- summary
properties:
service:
type: string
status:
type: string
enum:
- pending
- confirmed
- failed
- not_submitted
bitcoin_block_height:
type: string
description: Confirmed only; a string so it is never read as a served statistic.
summary:
type: string
scope:
type: string
description: What the attestation covers and its limit.
verify_url:
type: string
cite_as:
type: string
ListEnvelope:
type: object
required:
- items
- next_cursor
properties:
items:
type: array
items:
type: object
additionalProperties: true
next_cursor:
type:
- string
- 'null'
description: Pass back as ?cursor= for the next page; null on the last page.
_refusals:
$ref: '#/components/schemas/RefusalsWireEnvelope'
note:
type: string
description: PRN-448. Present when the route has something to say about HOW the list was produced (a fan-out hop, an unknown id). Mirrors the X-Principia-Note header, which is Latin-1-sanitised; the body carries the note verbatim.
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'
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'
MerklePathStep:
type: object
required:
- hash
- side
properties:
hash:
type: string
description: Sibling hash (lowercase hex sha256).
side:
type: string
enum:
- left
- right
description: 'Which side the sibling sits on when hashing up: left => sha256(hash+current), right => sha256(current+hash).'
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
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
parameters:
limit:
name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 500
default: 50
description: Page size (clamped to 1..500).
idPath:
name: id
in: path
required: true
schema:
type: string
description: Entity identifier.
cursor:
name: cursor
in: query
schema:
type: string
description: Opaque pagination cursor from a prior response's next_cursor.
responses:
List:
description: Paginated list
content:
application/json:
schema:
$ref: '#/components/schemas/ListEnvelope'
Unauthorized:
description: Missing or invalid Bearer key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: Entity not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
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.
'