> Documentation index: https://nao-rs.lukaloehr.com/llms.txt, a list of every page in this documentation.

# Safety

> REST API: Death switch status and stop. Generated from the OpenAPI document.

## Death switch status

`GET /v1/safety`

Whether the switch is tripped, why and since when, and whether the driver confirmed all-off frames. Re-arming is never possible over the API.

**Token:** required · **Lease:** not needed

| Status | Meaning | Body |
| --- | --- | --- |
| 200 | Death switch status | [Safety](https://nao-rs.lukaloehr.com/reference/rest-api/schemas.md#safety) |
| 401 | Missing or wrong token | [ErrorBody](https://nao-rs.lukaloehr.com/reference/rest-api/schemas.md#errorbody) |

```bash
curl -H "Authorization: Bearer $TOKEN" http://$ROBOT:7702/v1/safety
```

## Stop: all motors off

`POST /v1/safety/stop`

Trips the death switch (page with reason `Api` and the guard's UDP stop). Latched until re-armed on the robot. Public: needs no token and no lease. Re-arming stays `naoctl rearm` on the robot; see [Safety model](https://nao-rs.lukaloehr.com/safety.md).

**Token:** not needed · **Lease:** not needed

| Status | Meaning | Body |
| --- | --- | --- |
| 200 | Stopped (at least one way worked) | [StopResult](https://nao-rs.lukaloehr.com/reference/rest-api/schemas.md#stopresult) |
| 503 | Neither the page nor the UDP stop could be reached | [ErrorBody](https://nao-rs.lukaloehr.com/reference/rest-api/schemas.md#errorbody) |

```bash
curl -X POST http://$ROBOT:7702/v1/safety/stop
```

## Related topics

- [REST API](https://nao-rs.lukaloehr.com/reference/rest-api.md)
- [System](https://nao-rs.lukaloehr.com/reference/rest-api/system.md)
- [Robot](https://nao-rs.lukaloehr.com/reference/rest-api/robot.md)
- [State](https://nao-rs.lukaloehr.com/reference/rest-api/state.md)
- [Events](https://nao-rs.lukaloehr.com/reference/rest-api/events.md)
- [Control](https://nao-rs.lukaloehr.com/reference/rest-api/control.md)
- [LEDs](https://nao-rs.lukaloehr.com/reference/rest-api/leds.md)
- [Audio](https://nao-rs.lukaloehr.com/reference/rest-api/audio.md)
- [Cameras](https://nao-rs.lukaloehr.com/reference/rest-api/cameras.md)
- [Power](https://nao-rs.lukaloehr.com/reference/rest-api/power.md)
- [Motion](https://nao-rs.lukaloehr.com/reference/rest-api/motion.md)
- [Schemas](https://nao-rs.lukaloehr.com/reference/rest-api/schemas.md)
- Previous: [Events](https://nao-rs.lukaloehr.com/reference/rest-api/events.md)
- Next: [Control](https://nao-rs.lukaloehr.com/reference/rest-api/control.md)
