> ## 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 terms

> Terms for the Neuroencoder API: research use only, data use settings, what you confirm when you contribute recordings, deletion, and who we are.

Version 2026-11-15. These terms apply to API keys for api.neuroencoder.com, together with the [terms of use](https://neuroencoder.com/terms) of neuroencoder.com. The [privacy notice](https://docs.neuroencoder.com/privacy.md) says how we handle personal data. "We" is Maximilian Kalcher, Zurich, Switzerland ([max@neuroencoder.com](mailto:max@neuroencoder.com)).

## Accepting these terms

You accept these terms when you tick the boxes on the signup page, or when you send `"accept_terms": true`. A call to `POST /v1/signup` with `"instant": true` accepts them only together with `"accept_terms": true`. Where data use applies, `GET /v1/me` shows the version your key accepted (`terms_version`).

## Your data

1. **Processing.** When you send a recording, we process it to return your results.
2. **Data use setting.** Each API key has one data use setting: Contribute or Zero retention. Free keys (trial and instant) issued after their holder accepted these terms use Contribute. Paid and collaboration keys choose. Keys under a clinical or HIPAA agreement use Zero retention. On a paid or collaboration key you can also mark a single request as zero retention with the header `Neuroencoder-Data: zero-retention`. [Data use](https://docs.neuroencoder.com/data-use.md) lists every case.
3. **Zero retention.** We do not store the recording or the embeddings after the response is sent. A job keeps its upload until it ends and its result for 7 days, or until you delete the job. We keep request metadata, as the [privacy notice](https://docs.neuroencoder.com/privacy.md) describes.
4. **Contribute.** We store a de-identified copy of the signal (the [data use](https://docs.neuroencoder.com/data-use.md) page lists what we keep and what we remove) and may use it to develop, train and evaluate our models. For this use we act as an independent controller. You grant us a worldwide, non-exclusive, royalty-free, perpetual licence for that purpose. We own the models we train. We do not sell, publish or give your recordings to anyone else, except our hosting providers.
5. **Your promise.** For every recording you contribute, you confirm that (a) you have the right and a lawful basis under the laws that apply to you to share it with us for model training, such as your participants' consent, an ethics approval or an applicable research law; (b) you have told participants what the law requires you to tell them; (c) it is not protected health information under HIPAA, unless we have signed an agreement that allows it; and (d) you have removed names and other direct identifiers you control. If any of this is not true for a recording, do not send it with a free key, and use Zero retention on a paid key. You will compensate us for claims that arise because it was not true.
6. **Deleting.** You can delete contributed recordings at any time with `DELETE /v1/recordings`. Deletion removes them from storage at once. We do not use them in training that starts after deletion. Models trained before deletion are not changed, unless the law requires it.
7. **Research use only.** Neuroencoder is not a medical device. Do not use it to diagnose, treat or make decisions about anyone.

## Keys

A key is personal to you or your organisation. Keep it secret. Limits and expiry per tier are in the [API reference](https://docs.neuroencoder.com/api.md#keys). Do not use the API to re-identify people from neural data, or for anything unlawful.

## Changes

We publish changes here with a new version date.

## Law

Swiss law applies. Place of jurisdiction is Zurich, Switzerland.


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