IRB and Data Privacy

This page answers the data storage, security, and privacy questions institutional review boards (IRBs) and university IT security teams typically ask about studies hosted on Pairit.

Where study data is stored

Data type Where it lives Notes
Participant study data (sessions, survey responses, interaction events, chat messages, groups, workspaces, timers) MongoDB Atlas (managed cloud MongoDB) Production uses a dedicated pairit database, isolated from staging.
Application servers (lab interface and manager API) Google Cloud Platform (Cloud Run, us-central1, United States) Stateless containers running as dedicated, least-privilege service accounts; secrets are stored in Google Cloud Secret Manager.
Uploaded study media (stimuli images, audio, video) Google Cloud Storage (us-central1, United States) Objects are public to anyone with the URL (though the bucket is not listable). Use media storage only for study stimuli—never upload participant data or sensitive files.

Encryption and transport security

  • In transit: All traffic between participant browsers, the CLI, Cloud Run services, MongoDB Atlas (with TLS certificate verification), and Google Cloud Storage is encrypted over HTTPS/TLS.
  • At rest: Data in MongoDB Atlas and Google Cloud Storage are encrypted at rest (managed AES-256).
  • LLM API keys: If your study uses AI agents, your OpenAI or Anthropic API key is additionally encrypted at the application layer (AES-256-GCM, bound to your configId and provider) before storage.

What Pairit collects (and does not collect)

Prolific and anonymous studies

When participants join via a Prolific link (?PROLIFIC_PID=...&STUDY_ID=...&SESSION_ID=...) or on a study with requireAuth: false, Google sign-in is skipped.

  • Stored in the study database:
  • A random session UUID (sessionId), configId, and configRevision / labVersion provenance.
  • Pseudonymous Prolific URL parameters (PROLIFIC_PID, STUDY_ID, SESSION_ID), when present.
  • Study responses defined by your config: session_state values, survey answers, component interaction events, chat messages, workspace edits, and timestamps.
  • Not stored in the study database:
  • Names, email addresses, IP addresses, geolocation, device fingerprints, or third-party analytics/trackers.
  • Cookies and browser headers:
  • Pairit sets one strictly necessary HttpOnly, Secure, SameSite=Lax cookie (pairit_s_<sessionId>) containing a random session secret (only its SHA-256 hash is stored on the server). This prevents another browser from accessing or resuming a participant's session.
  • Lab pages set Referrer-Policy: no-referrer and Content-Security-Policy: frame-ancestors 'none' so Prolific IDs in URLs do not leak to external sites via the Referer header.
  • In multi-participant studies, peers see only opaque per-group member IDs (p_...), never each other's sessionId or PROLIFIC_PID.
  • Standard cloud HTTP logs:
  • While the Pairit application does not record IP addresses in the study database, Google Cloud Run's standard HTTP request logs automatically retain transient network metadata (such as client IP address, user-agent, and request URL) under Google Cloud's default 30-day log retention.

Google sign-in studies

If a study leaves requireAuth: true (the default) and participants sign in with Google instead of joining via Prolific parameters, Pairit's authentication layer (Better Auth) stores the participant's Google account name, email, and login session metadata (ipAddress, userAgent) in MongoDB. Set requireAuth: false or recruit via Prolific URL parameters if your protocol should not collect Google account identities.

Custom HTML embeds

Custom html components run inside a sandboxed iframe and only record what your script passes to pairit.setState() or pairit.logEvent(). Keep custom embeds self-contained (avoid loading external trackers, fonts, or third-party scripts) so participant browsers do not transmit data to outside hosts.

Access control

  • Researcher accounts: Researchers authenticate with an allowlisted Google account (pairit login).
  • Study isolation: Every config, data export, and data deletion endpoint enforces ownership (owner === user.id). Researchers can only access, export, or delete data for their own configIds.
  • Platform operators: Pairit platform administrators have underlying Google Cloud Platform and MongoDB Atlas access for system maintenance, backups, and operational support.

AI agents and LLM providers

  • If your config does not define agents:, no participant data is sent to any LLM provider.
  • If your config does define agents:, prompts and conversation/workspace context are sent server-side to OpenAI or Anthropic using the researcher's own API key uploaded with the config (Pairit never falls back to a shared platform key). Data retention and training policies for those API calls are governed by the researcher's own OpenAI or Anthropic API account terms.

Data export, de-identification, and deletion

  1. Export to institutional storage: Download your study data with pairit data export <configId> and store it on your institution's approved storage (e.g., encrypted university OneDrive, Box, or REDCap).
  2. Strip Prolific IDs after payout: Only {configId}-sessions.* contains prolific.prolificPid, prolific.studyId, and prolific.sessionId. All other export files (events, survey-responses, chat-messages, groups, workspace-*) key off the random sessionId UUID. Removing the prolific.* columns from the sessions export unlinks Prolific IDs from the dataset.
  3. Delete raw data from Pairit: Permanently delete all participant records for a study from Pairit's database with:

    pairit data delete <configId>
    

    This permanently removes all sessions, events, chat_messages, groups, workspace_documents, workspace_updates, and timers for <configId>, while keeping the config definition intact.

    Run pairit data delete before pairit config delete. Deleting a config removes only the config definition, not its participant data—and once the config is deleted, the API can no longer verify your ownership to export or delete its data. If you already deleted a config and need its orphaned records purged, contact the Pairit platform operator (harang@pairium.ai).

Sample IRB protocol language

Adapt the text below to match your study's recruitment platform, institutional storage, and retention timeline:

The online study interface is hosted on Pairit, an academic behavioral research platform running on Google Cloud Platform (Cloud Run, us-central1, United States) with study data stored in a managed MongoDB Atlas cloud database. All data are encrypted in transit (HTTPS/TLS) and at rest (AES-256). Access to exported study data is restricted to the researcher's authenticated Pairit account (platform administrators retain underlying cloud infrastructure access for maintenance and support).

For participants recruited through [Prolific], [Prolific] manages recruitment, screening, and payment and does not share participants' names, email addresses, or payment details with the research team or Pairit. Pairit records only study responses and interaction timestamps keyed to a random session identifier and the pseudonymous [Prolific ID / session ID] passed via URL parameter to verify completion and prevent duplicate submissions. The Pairit application does not store names, email addresses, IP addresses, or location data in the study database (standard cloud server HTTP request logs rotate automatically under default provider retention). [If your study uses AI agents, add: Participant messages sent to AI agents are transmitted server-side to OpenAI/Anthropic via the research team's institutional API key under zero-training API terms.]

Once compensation is verified (within [two weeks] of data collection closing), the research team will export the study data to encrypted, password-protected [institution-approved storage, e.g., university OneDrive], strip [Prolific IDs] from the analysis dataset, and permanently delete all raw participant records from Pairit (pairit data delete).