Test and debug REST, WebSocket, GraphQL and SSE APIs from your Android phone. Pocket Code ships a full HTTP client — auth, scripts, environments, mock server and code generation — built into the IDE.
An API breaks at the worst possible moment: you're away from your desk, the webhook isn't firing, and your laptop with Postman is at home. On Android, the usual answer is "wait until you're back." Pocket Code removes that wait — it ships a full HTTP client built into the IDE, so you can test and debug REST APIs from your phone without a second app or a single line of glue code.
This is not a stripped-down toy. It's a functional equivalent to Postman or Insomnia, and it lives right next to your editor, terminal and database manager.
The API Tester speaks four protocols, selectable from a chip above the editor:
| Protocol | What it's for |
|---|---|
| REST (HTTP) | The classic request/response client — 8 methods |
| WebSocket | Live bidirectional connections (ws:// / wss://) |
| GraphQL | Queries, mutations, subscriptions + schema introspection |
| SSE | Server-Sent Events streams in real time |
For REST it covers all eight HTTP methods — GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS and TRACE — each colour-coded so you can scan a collection at a glance.
The request editor is organised as a sticky URL bar plus a set of collapsible sections, each with its own accent colour:
Anywhere you can type a value — URL, headers, body, auth, cookies — you can drop
a {{variable}} and it gets interpolated at send time (more on that below).
This is where mobile API clients usually fall short. Pocket Code supports ten auth schemes, split into common cards and an advanced section:
If you sign requests against AWS or hit an enterprise NTLM endpoint, you can do it from the phone — no compromises.
Two JavaScript hooks run around every request:
pm.test, pm.expect, pm.response.There's a menu of ready-made assertions so you don't have to write them by hand: status is 200, status is 2xx, response time < 500 ms, has JSON body, body not empty, has Content-Type header, JSON schema validation, body contains string, and array length > 0. A console panel below the editor logs everything at LOG / INFO / WARN / ERROR levels.
The response panel gives you the numbers that matter up top — status code (with a colour by range), total time in milliseconds, body size, and the negotiated protocol plus remote IP. Below that, tabs:
| Tab | What you get |
|---|---|
| Body | Pretty (formatted JSON/XML/HTML), Raw, Preview (rendered HTML), and a collapsible Tree view for JSON |
| Headers | A copy-friendly table |
| Cookies | Rows with Secure / HttpOnly badges |
| Timeline | DNS · TCP · TLS · TTFB · content transfer |
| Tests | Assertion results (name, pass/fail, duration) |
| Info | Metadata and the full redirect chain |
You can copy the body, share it, save it, or search inside it with highlighted matches — handy on a small screen.
retry, and
Last-Event-ID tracking to resume the stream.{{variable}} sets. Each variable has an initial and
a current value, a description, an enabled toggle, an isSecret flag that
hides the value, and a scope (Global / Environment / Collection / Local).
Resolution goes Local → Collection → Environment → Global.Set-Cookie and shows
Secure / HttpOnly badges.requests, Java
OkHttp, Kotlin Ktor, Swift URLSession, Go net/http, PHP, Ruby, C#, Rust,
Dart and more — imports, headers, body and auth included./users/:id), status, headers, body and a simulated delay — with a live log
of incoming calls.Collections, history, environments and cookies are stored in a local database on your phone — we never keep your requests or connection data on our servers. For development you can toggle SSL verification off for self-signed certs, route through an HTTP/HTTPS/SOCKS proxy, or attach a client certificate. And because it's part of the IDE, the AI assistant can even see your collections when you ask it about your APIs.
Testing an API used to mean "get back to your computer." It doesn't anymore. Pocket Code puts a professional HTTP client — REST, WebSocket, GraphQL and SSE — in the same app where you write and ship the code.
Pocket Code is heading to Google Play. Join the pre-registration to be among the first to try it on your own device.