JMAP API Reference
Serverless Inbox implements JMAP (RFC 8620) and JMAP for Mail (RFC 8621).
Protocol overview
Section titled “Protocol overview”Endpoint: POST /jmap
All requests use a single endpoint. The body is a JSON object containing a using array (capability URIs) and a methodCalls array. Each method call is a 3-tuple [methodName, arguments, clientId].
Supported capabilities:
urn:ietf:params:jmap:coreurn:ietf:params:jmap:mailurn:ietf:params:jmap:submissionurn:ietf:params:jmap:contactsurn:ietf:params:jmap:principalshttps://specs.serverlessinbox.com/page-tokenhttps://specs.serverlessinbox.com/websocket
Result references
Section titled “Result references”Method arguments can reference a previous result in the same request by prefixing the argument key with #. For example, pass "#ids": { "resultOf": "r1", "name": "Email/query", "path": "/ids" } to use the ids from an Email/query call with client ID r1.