An Android app for storing and triggering HTTP request macros — perfect for quick API calls, webhooks, and automation.
- Macro management — Create, edit, and delete HTTP request macros with name, URL, method (GET/POST/PUT/DELETE), body, custom headers, and response options
- Persistent storage — All macros saved locally with Room database
- Dynamic shortcuts — Each macro gets a system launcher shortcut for one-tap triggering
- Custom URI scheme — Trigger macros externally via
httpmacro://trigger/{id} - Notifications — Response status code and body snippet shown in Toast + notification
- Clipboard — Save text or image responses to clipboard for quick paste elsewhere
app/src/main/java/com/httpmacro/app/
├── Database.kt # Room DB (MacroEntry, MacroDao, HttpMacroDatabase) + OkHttp executor
├── MainActivity.kt # Main UI — RecyclerView, add/edit dialog, shortcut management
└── TriggerActivity.kt # Headless trigger — fires HTTP request, shows result notification
| Component | Library |
|---|---|
| Persistence | Room 2.6.1 |
| HTTP client | OkHttp 4.12.0 |
| UI | Material Components |
| Language | Kotlin 2.0.21 |
Requires Android SDK 35 (compile), minSdk 26.
./gradlew assembleDebugThe debug APK is output to app/build/outputs/apk/debug/app-debug.apk.
- Open the app and tap + New to create a macro
- Fill in the name, URL, method, optional body/headers
- Tap ▶ Fire from the list, or use the launcher shortcut to trigger it
- Results appear as a Toast + notification with the HTTP status code and response body
MIT