{"app":{"id":"openpsy","display_name":"OpenPsy","url":"https://openpsy.run","organization":"Open Group","category":"public, non-adult"},"contract":"oa.app-adapter/1","manifest_version":1,"transport":{"shape":"A","invoke":{"method":"POST","path":"/api/agent/v1/actions/{id}","body":{"input":{}}},"envelope":{"success":["ok","action","version","result"],"error":["ok","action","version","error.code","error.message"],"receipt":"result.receipt","items":"result.items"},"request_headers":{"Authorization":"Bearer <agent token>","Idempotency-Key":"Required for writes: 1-200 printable characters, scoped to the token","X-Correlation-Id":"Optional: logged and echoed","X-OpenAgents-Grant":"Optional: recorded as opaque context, not verified","X-OpenAgents-Workspace":"Optional: recorded as opaque context, not verified"}},"auth":{"modes":[{"id":"app_token","version":"v0","status":"active","header":"Authorization: Bearer","prefix":"opa_","create_url":"https://openpsy.run/profile#agent-access","scopes":{"study:start":{"title":"Start a Study","reveals":"For a Study it prepares: its link and id, its seals, its status, and if it counts in research. You make every guess."},"results:read":{"title":"Read my totals","reveals":"For Study and for Practice: trials, hits, rate, chance (20%), 95% range, p-value. No name, no sessions."},"sessions:read":{"title":"Read my sessions","reveals":"For each ended session: id, mode, protocol, end time, trials, hits. The id opens its public audit page, which shows guesses and targets."}},"default_days":90,"max_days":365,"revocable":true},{"id":"action_token","description":"Grant exchange","status":"not_supported_yet"}]},"actions":[{"id":"study.start","version":1,"title":"Start a Study","scope":"study:start","kind":"write","risk":"low","idempotency_key":"required","description":"Prepare a solo Study session for the human: 25 sealed targets, revealed only at the end. It does not begin: the human opens the link and makes every guess. Refused with session_in_progress while they have a solo session open; one nobody opens closes as incomplete, normally after 24 hours.","input_schema":{"type":"object","additionalProperties":false,"properties":{},"required":[]},"output_schema":{"type":"object","additionalProperties":false,"properties":{"receipt":{"type":"object","additionalProperties":false,"properties":{"external_id":{"type":"string","description":"Session id"},"url":{"type":"string","format":"uri","description":"Give this link to the human: it opens the session in their own browser"},"status":{"const":"awaiting_human"},"created_at":{"type":"string","format":"date-time"}},"required":["external_id","url","status","created_at"]},"research":{"type":"object","additionalProperties":false,"properties":{"counts":{"type":"boolean","description":"Whether this session counts in public research results as things stand"},"reason":{"enum":["opted_in","not_opted_in"]},"as_of":{"type":"string","format":"date-time"}},"required":["counts","reason","as_of"]},"protocol":{"const":"research"},"reveal":{"const":"end"},"trials":{"type":"integer"},"baseline":{"type":"number"},"commitments":{"type":"array","items":{"type":"string","description":"SHA-256 of a sealed target"},"description":"Published before any guess"}},"required":["receipt","research","protocol","reveal","trials","baseline","commitments"]}},{"id":"results.summary.get","version":1,"title":"Read totals","scope":"results:read","kind":"read","risk":"low","idempotency_key":"ignored","description":"The human's own totals, one item for Study and one for Practice, never merged: trials, hits, rate, the 20% baseline, Wilson 95% interval and exact p-value. Study sessions in progress are not in it. No name, session or date.","input_schema":{"type":"object","additionalProperties":false,"properties":{},"required":[]},"output_schema":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"protocol":{"enum":["study","practice"]},"trials":{"type":"integer","description":"Valid trials"},"hits":{"type":"integer"},"rate":{"anyOf":[{"type":"number","description":"hits / trials; null without trials"},{"type":"null"}]},"baseline":{"type":"number","description":"Chance: 0.2"},"ci95":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"low":{"type":"number"},"high":{"type":"number"}},"required":["low","high"]},{"type":"null"}]},"p_value":{"anyOf":[{"type":"number","description":"Exact one-sided binomial test against the baseline, not adjusted"},{"type":"null"}]},"source_url":{"type":"string","format":"uri","description":"The person's own Profile page"},"fetched_at":{"type":"string","format":"date-time"}},"required":["protocol","trials","hits","rate","baseline","ci95","p_value","source_url","fetched_at"]}},"note":{"type":"string"}},"required":["items","note"]}},{"id":"sessions.list","version":1,"title":"List ended sessions","scope":"sessions:read","kind":"read","risk":"low","idempotency_key":"ignored","description":"The human's own sessions that have ended and revealed every target, newest first: id, mode, protocol, end time, trials, hits. Invalidated sessions are left out.","input_schema":{"type":"object","additionalProperties":false,"properties":{"protocol":{"enum":["study","practice"]},"limit":{"type":"integer","minimum":1,"maximum":50,"default":20},"cursor":{"type":"string","description":"next_cursor of the previous page"}},"required":[]},"output_schema":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","description":"Session id"},"mode":{"type":"string"},"protocol":{"enum":["study","practice"]},"ended_at":{"type":"string","format":"date-time"},"trials":{"type":"integer","description":"Answered trials, incomplete sessions included"},"hits":{"type":"integer"},"source_url":{"type":"string","format":"uri","description":"The person's own Profile page"},"fetched_at":{"type":"string","format":"date-time"}},"required":["id","mode","protocol","ended_at","trials","hits","source_url","fetched_at"]}},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","next_cursor"]}}],"capabilities":{"method":"GET","path":"/api/agent/v1/actions","auth":"public"},"lookup":{"method":"GET","path":"/api/agent/v1/lookup","query":["idempotency_key"],"scope":"study:start","confirms":"study.start","statuses":["awaiting_human","in_progress","complete","incomplete","invalidated"]},"get":{"method":"GET","path":"/api/agent/v1/records/{id}","scope":"sessions:read","returns":"ended, revealed sessions only","output_schema":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","description":"Session id"},"mode":{"type":"string"},"protocol":{"enum":["study","practice"]},"ended_at":{"type":"string","format":"date-time"},"trials":{"type":"integer","description":"Answered trials, incomplete sessions included"},"hits":{"type":"integer"},"source_url":{"type":"string","format":"uri","description":"The person's own Profile page"},"fetched_at":{"type":"string","format":"date-time"}},"required":["id","mode","protocol","ended_at","trials","hits","source_url","fetched_at"]}},"errors":["auth_required","invalid_token","insufficient_scope","unknown_action","not_found","invalid_input","idempotency_key_required","idempotency_conflict","session_in_progress","rate_limited","internal"],"limits":{"calls_per_minute_per_token":60,"active_tokens_per_account":10},"health":{"method":"GET","path":"/api/health"},"revision":{"method":"GET","path":"/api/revision"},"rules":["Agents must never submit guesses or take part as a Sender/Receiver in any human experiment. Guesses are for humans only; answers faster than 350 ms are flagged for review.","Agents may read public Daily results and protocols. Daily session starts and guesses are for human participants only.","Agents can never see a concealed target. No endpoint returns a target before reveal.","Agents may read public research results and explain statistics. With an agent token a human made for them, and only within its scopes, they may prepare a Study for that human (who makes every guess) and read that human's own results.","Accounts belong to humans. Agents must not request sign-in links, open them, sign in for someone or create agent tokens.","Results are never altered. Report negative and inconclusive results as faithfully as positive ones.","OpenPsy does not claim that psychic abilities exist. Levels are participation achievements, not evidence."],"docs":{"start":"https://openpsy.run/agents","openapi":"https://openpsy.run/openapi.json","agents":"https://openpsy.run/AGENTS.md","llms":"https://openpsy.run/llms.txt","capabilities":"https://openpsy.run/api/v1/capabilities","methodology":"https://openpsy.run/api/v1/methodology","privacy":"https://openpsy.run/privacy"}}