JMAP request playground
Connect to your own server, pick a request or write your own, and see exactly what comes back. The ready made requests only read. Anything you write yourself runs on your real account, so take care with /set methods.
Reading a request
using lists the capabilities the request needs. methodCalls is a list of steps, each with a method name, its arguments and a short label of your choosing. A step can use another step's result with a back reference, such as "#ids": {"resultOf": "q", "name": "Email/query", "path": "/ids"}. See JMAP by example for more.
The ready made requests
| Request | What it shows | Needs |
|---|---|---|
| List my folders | Every mailbox, with its role and how many messages are unread | |
| Newest 10 in my inbox | Who sent your newest messages and a preview of each, found in one request with a back reference | |
| Search my mail | Full text search across your mailbox | |
| Unread mail | The newest messages not yet marked as read | |
| My sending addresses | The identities you can send from | Sending |
| What's changed | The current state, so you can ask for only what changed next time | |
| My away reply | Whether your automatic away reply is on, and what it says | Away replies |
| My storage | How much space you're using and how much you have | Quotas |
| My address books | Your address books, on servers with JMAP Contacts | Contacts |
| Echo test | Sends back exactly what you sent, so you know requests get through | Core only |
A request whose capability your server doesn't list won't work there. The capabilities reference explains each one, and the checker shows which your server has.
What you need
- Your domain, or your server's session URL if it has no
/.well-known/jmapredirect (see Find your session URL). - An API token or app password. Make an API token shows how for Fastmail, Mail App and self hosted servers. A read only token is enough for every ready made request.
It says my browser wasn't allowed
Your server doesn't let web pages call it (CORS). That's common and doesn't affect apps. Copy the curl command and run it on your own computer instead.