> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neuroencoder.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Neuroencoder is a hosted EEG embeddings API (https://api.neuroencoder.com/v1). The model runs only on its servers. Python package `neuroencoder` on PyPI: client and command line tool; it does not contain the model. Precomputed real outputs need no key: GET https://api.neuroencoder.com/v1/samples lists two samples from the public Sleep-EDF data (ODC-By 1.0, attribution required): a full night's embeddings with scored sleep stages, and a 10-minute EDF with its embeddings. An instant key needs no email: POST /v1/signup with {"instant": true, "accept_terms": true} accepts the API terms (https://docs.neuroencoder.com/terms) and returns a provisional key at once (2 h of EEG, 20 requests/min, at most 120 windows per request or job, 7 days) and a claim_url that a person can open to turn the same key into a trial key. GET /v1/models also needs no key. From nothing to your own file in five commands: https://docs.neuroencoder.com/quickstart. A trial key also comes from `neuroencoder login --email <address>` or the HTTP device flow (POST /v1/signup with "device": true, then POST /v1/signup/token); a person ticks the terms boxes and approves the emailed link once. Data use (https://docs.neuroencoder.com/data-use): a response with "data_use": "contribute" stored a de-identified copy of the signal that may train our models; a response without data_use, or with "zero_retention", kept no copy (jobs keep their upload until they end and their result for 7 days). Terms: https://docs.neuroencoder.com/terms. Privacy: https://docs.neuroencoder.com/privacy. Security and vulnerability reports (security@neuroencoder.com): https://docs.neuroencoder.com/security. Main endpoint: POST /v1/embeddings with an EDF, BDF, FIF or NPY file or a JSON array; any montage, any sampling rate; one 768-dimensional vector per window. Errors are JSON with a `fix` field. Versions (https://docs.neuroencoder.com/versioning): `neuroencoder-eeg` is an alias, `neuroencoder-eeg-2026-11` a dated snapshot that never changes; pin with `model` or the Neuroencoder-Model header; responses carry model, model_snapshot and pipeline_version; deprecations get at least 6 months' notice. Support: support@neuroencoder.com (best effort, reply within 3 business days); status: https://neuroencoder.com/status. Reference: https://docs.neuroencoder.com/api. Getting started without signing up: https://docs.neuroencoder.com/instant-keys. OpenAPI: https://api.neuroencoder.com/v1/openapi.json. Sleep staging: a whole-night PSG (.edf/.bdf, at least 2 h, at least one EEG channel with a 10-20 label at 100 Hz or more; EOG used when present) as a job with "task": "sleep_staging" (POST /v1/files, PUT, POST /v1/jobs, poll, download) returns W/N1/N2/N3/REM per 30 s epoch with probabilities, a low-confidence flag, summary metrics (TST, sleep efficiency, latencies, WASO) and a CSV; it counts nights per week (trial 3, instant 1), weeks start Monday 00:00 UTC. Model neuroencoder-sleep-2026-11, trained on 1,629 nights from eight public datasets licensed for commercial use. On nights it never trained on, Cohen's kappa with EOG is 0.755 on 44 Sleep-EDF telemetry nights and 0.687 on 128 BOAS nights (YASA's pretrained classifier on the same nights: 0.732 and 0.659), and 0.672 to 0.807 across eight leave-one-site-out folds. It is behind that reference on CAP and ANPHY, and slightly below on DOD (within the confidence intervals). Guide: https://docs.neuroencoder.com/sleep-staging. Benchmark: https://docs.neuroencoder.com/sleep-benchmark.

# API privacy notice

> How the Neuroencoder API handles the recordings you send, request logs and account data: who decides, what is kept, where, for how long, and your rights.

Last updated November 23, 2026. This notice covers the API at api.neuroencoder.com. The [privacy policy](https://neuroencoder.com/privacy) of neuroencoder.com covers the website and contact form.

## Who is responsible

Maximilian Kalcher, Zurich, Switzerland, is responsible for the data described here. Contact: [max@neuroencoder.com](mailto:max@neuroencoder.com). We apply the Swiss Federal Act on Data Protection (FADP) and, where it applies, the EU General Data Protection Regulation (GDPR).

## Recordings you send

* **Who decides.** To compute your results, your organisation decides and we follow its instructions. For contributed recordings, we decide how they are used to train our models.
* **What we keep.** It depends on the key's [data use](https://docs.neuroencoder.com/data-use.md) setting; responses say which applied while data use is in effect. Zero retention: request metadata only, plus a job's upload until the job ends and its result for 7 days. Contribute: the samples of the channels the model uses, resampled to 250 Hz, the number of samples, the channel names from a standard electrode list (no label text from the file; other names become `ch0`, `ch1`, ...) and their scalp regions, the unit, a random recording id, the account the key belongs to, the terms version, the month of the upload, the model version, the key's tier and how it was obtained (for instant keys, a keyed hash of the network it was requested from). We never keep the file or its name, names, birth dates, sex, hospital or recording codes, the recording date or time, device, transducer, filter or technician fields, annotations, any other field you send, or a hash of the file. So that the same account does not store the same signal twice, each stored recording carries a keyed fingerprint of its signal (an HMAC under our secret key, specific to the account); it is deleted with the recording and kept at most 13 months.
* **Why.** To train and test models that turn EEG into embeddings.
* **Where.** Requests are processed on Amazon Web Services in the United States (AWS us-east-1). Contributed recordings are sent from there to Amazon Web Services in Frankfurt, Germany (AWS eu-central-1), and stored there encrypted.
* **How long.** Contributed recordings: until you delete them or close your account, and at most 5 years after upload. Uploads with an instant key nobody has claimed are never used for training and are deleted after 30 days unless the key is claimed. You can delete them at any time with `DELETE /v1/recordings`; deletion is immediate. Models trained before a deletion are not changed.
* **Participants in recordings.** We cannot identify you and do not try. If you took part in a study and want your recordings removed, ask the lab that recorded you; it can delete them by recording id. You can also write to [max@neuroencoder.com](mailto:max@neuroencoder.com).

Please do not send recordings that contain names or other identifiers in the signal itself.

How recordings and keys are protected, and how to report a vulnerability: [Security](https://docs.neuroencoder.com/security.md).

## Request logs and account data

For each request we log a request ID, the endpoint, the status, the response time, your key ID, your IP address and technical metadata (amount of EEG, number of channels, sampling rate, payload size and format, and the data use that applied), for billing, security and reliability. These logs contain no signal data or channel labels and are kept for 90 days.

Account data is the email address you sign up with, the account record (ID, owner address, tier, limits, data use setting, accepted terms version, creation and expiry dates, and the IDs of its keys), key metadata (ID, the name you give it, tier, limits, creation, last use and expiry dates; the key itself is stored only as a keyed hash) and monthly usage counters. An index from a hash of the owner address to the account lets an emailed link find the account. Key records are deleted 30 days after a key expires; keys without an expiry date are kept until you ask us to delete them. The account record and its index are deleted 30 days after the account expires, or, without an expiry date, when you ask us. A rolled key's record is kept as long as the key that replaced it (so that revoking the old key can still revoke the new one), and then deleted the same way. A security record of key and account events (creation, requests for new keys, revocation, rolling, data use changes, claims, replacements, leak reports and changes we make: the key or account ID, what happened, what triggered it, the request ID and the time; no email or IP address) is kept for about 13 months (400 days). Usage counters are deleted after about 13 months. When you request a trial key or a new key for your account, your email address is held for 30 minutes with the single-use link, and counters keyed by hashes of your email and IP address are kept for up to three days to limit abuse. Account data is used to run and bill the service, not to train models.

Uploads for jobs are deleted when the job ends, and job results 7 days after it ends. A contributed copy of the signal is separate and follows the rules above.

## Analytics

neuroencoder.com and docs.neuroencoder.com use PostHog (PostHog Inc.; our project is on PostHog's EU cloud in Frankfurt, Germany) as our processor for cookieless analytics. It sets no cookies and stores nothing in your browser, does not store your IP address and does not record sessions. It counts page views (the address without its fragment and without query parameters other than utm\_ campaign tags), referring sites and the links and buttons you click, with browser, operating system, device type and screen size; on the documentation, the text of what you click is not collected. Unique visitors are estimated with a privacy-preserving hash computed on PostHog's servers. The console and playground do not load it. Events are kept for one year. To opt out, turn on Do Not Track or Global Privacy Control in your browser; the analytics script then does not load.

## Service providers and transfers

The API runs on Amazon Web Services (hosting, key database, logs, email, storage of contributed recordings). Processing in the United States relies on the Swiss-US and EU-US Data Privacy Frameworks where the provider is certified, and otherwise on the standard contractual clauses in its data processing terms. We do not sell personal data.

## Your rights

You can ask for access to, correction, deletion or a copy of your data, or object to its processing, by emailing [max@neuroencoder.com](mailto:max@neuroencoder.com). You can also complain to the Swiss Federal Data Protection and Information Commissioner (FDPIC) or, in the EU or EEA, to your local data protection authority.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.