# Stimulation

## Request a tES (tDCS/tACS) session (HALO+ only)

> Locked behind clinician & regulator gates. Enforces absolute safety limits in software & firmware.

```json
{"openapi":"3.0.3","info":{"title":"HALO Forehead BCI Wearable API","version":"v0.1.0"},"tags":[{"name":"stimulation"}],"servers":[{"url":"https://api.haloproject.com/v1"},{"url":"https://sandbox.api.haloproject.com/v1","description":"Sandbox"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"TESRequest":{"type":"object","description":"tDCS/tACS parameters. Enforced limits: max_current <= 2.0 mA; max_current_density <= 0.5 mA/cm^2; duration <= 20 min; cooldown >= 24h per site. Requires clinician approval.","properties":{"type":{"type":"string","enum":["tDCS","tACS"]},"montage":{"type":"string"},"current_mA":{"type":"number","maximum":2},"frequency_Hz":{"type":"number","nullable":true,"description":"For tACS only"},"phase_lock":{"type":"boolean","description":"If true, aligns to EEG phase (research)"},"duration_minutes":{"type":"integer","maximum":20},"rationale":{"type":"string"}},"required":["type","montage","current_mA","duration_minutes"]},"OpAck":{"type":"object","properties":{"status":{"type":"string"},"id":{"type":"string"}}}}},"paths":{"/stimulation/tes":{"post":{"tags":["stimulation"],"summary":"Request a tES (tDCS/tACS) session (HALO+ only)","description":"Locked behind clinician & regulator gates. Enforces absolute safety limits in software & firmware.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TESRequest"}}}},"responses":{"202":{"description":"Accepted (if enabled)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpAck"}}}},"403":{"description":"Locked in this environment"}}}}}}
```
