Why it stayed obscure
It is an accessory to Termux with no interface of its own, so only people already writing shell scripts ever learn it exists.
What it actually does
Termux:API is a companion app that adds the termux-api command set to Termux. A script can read the battery state, query sensors, put text in the clipboard, raise a notification, list SMS messages, take a photo, toggle the torch or vibrate, and parse the JSON the commands return. Each call is a separate process talking to the companion app, so it composes with ordinary shell tools. It grants no root and cannot read another app's private data.
Core features
- Battery, sensor and telemetry values as JSON
- Notifications, clipboard, SMS and camera access
- Torch, vibration and audio controls
- Composes with ordinary shell tools
Who it is for
- You automate the phone from Termux
- You log sensors on a fixed schedule
- You write maintenance scripts for a device
Before you install
Download
This edition links to F-Droid where the app is published there, and to the developer's own page otherwise. Nothing is mirrored here. If an app is offered through several channels, keep one: the signatures differ and the system will refuse to update across them.
The package name com.termux.api is the most reliable way to
check authenticity: confirm it in the system installer before installing, then compare
the developer name with the table above.
Questions
Can it read messages from other apps?
No. It reaches system services such as SMS, notifications and the clipboard, not another application's private storage or database, and it cannot bypass that boundary.
Why does a command return an error?
Usually a missing permission or the companion app not being installed alongside Termux. Grant the specific permission the failing command needs and run it again.