Developer layer

API reference

Core endpoints of the scientific engine. Authenticate with an API key (Authorization: Bearer csi_…) for domain routes, or with a session for governance and account surfaces.

Base URL: https://camileai.com/scientific-intelligence

Authentication & account

POST/api/auth/signuppublicCreate an account.
POST/api/auth/loginpublicSign in; returns the session cookie.
GET/api/auth/mepublicIdentity, memberships and active tenant scope.
POST/api/auth/logoutsessionRevoke the current session.
POST/api/auth/forgotpublicStart password recovery.
POST/api/auth/resetpublicComplete password recovery.

Research campaigns

GET/api/research/campaignskeyList the tenant's campaigns.
POST/api/research/campaignskeyCreate a campaign (entitlement-checked; budgetCycles clamped to the plan).
GET/api/research/campaigns/{id}publicCampaign detail (PUBLIC campaigns are world-readable).*
POST/api/research/campaigns/{id}/cyclekeyRun one research cycle (monthly cycle cap enforced).
GET/api/research/metricskeyTenant research metrics.
GET/api/research/benchmarkpublicPublic benchmark leaderboard.

CSIM engine

GET/api/csim/healthpublicInstitutional status (summary).
GET/api/csim/overviewkeyEngine overview: ledger, portfolio, campaigns.
GET/api/csim/campaignskeyEngine campaigns of the tenant.
POST/api/csim/campaigns/{id}/cyclekeyAdvance an engine campaign by one cycle.
GET/api/csim/ledgerkeyIntegrity ledger (hash-chained).
GET/api/csim/telemetrykeyRuntime telemetry.
GET/api/csim/registrykeyResearch registry.

Tenancy & usage

GET/api/tenantssessionTenants you belong to (scoped by membership).
GET/api/tenants/{id}/usagesessionMonthly usage report and plan limits.
GET/api/tenants/{id}/keyssessionList API keys (ADMIN+; hash never returned).
POST/api/tenants/{id}/keyssessionIssue a key (full secret returned once) or revoke (action=revoke).
GET/api/tenants/{id}/auditsessionTenant audit chain.

Public surface

GET/api/public/researchpublicOpen research gallery.
POST/api/public/translatepublicInterface translation bridge.

* Campaigns marked PUBLIC are world-readable by design (open research). Everything else follows the tenant boundary: a key resolves exactly one tenant; sessions resolve by membership.