jmap.dev

JMAP capabilities

A server lists what it supports as capabilities in its session. Each one has a name like urn:ietf:params:jmap:mail. Apps put the ones they need in using on every request.

CapabilityName in the sessionWhat it doesDefined in
Coreurn:ietf:params:jmap:coreThe basics every server has: the session, requests, limits and errors.RFC 8620
Mailurn:ietf:params:jmap:mailMailboxes, messages, threads and search.RFC 8621
Sendingurn:ietf:params:jmap:submissionSending mail and choosing which address it comes from.RFC 8621
Away repliesurn:ietf:params:jmap:vacationresponseThe automatic away reply.RFC 8621
WebSocketurn:ietf:params:jmap:websocketRequests and alerts over one open connection.RFC 8887
Read receiptsurn:ietf:params:jmap:mdnSending and reading read receipts.RFC 9007
S/MIME checkurn:ietf:params:jmap:smimeverifyChecking S/MIME signatures on messages.RFC 9219
Bloburn:ietf:params:jmap:blobUploading and fetching files directly.RFC 9404
Quotasurn:ietf:params:jmap:quotaStorage and message limits.RFC 9425
Contactsurn:ietf:params:jmap:contactsAddress books and contact cards.RFC 9610
Sieve filtersurn:ietf:params:jmap:sieveMail filter rules written in Sieve.RFC 9661
Sharingurn:ietf:params:jmap:principalsOther people, groups and shared accounts.RFC 9670
Web Push keysurn:ietf:params:jmap:webpush-vapidSigned Web Push alerts, so push services know they came from the server.RFC 9749
Calendarsurn:ietf:params:jmap:calendarsCalendars, events and invitations.Draft
Calendar file importurn:ietf:params:jmap:calendars:parseReading .ics calendar files.Draft
Contact file importurn:ietf:params:jmap:contacts:parseReading vCard contact files.Draft
Free and busyurn:ietf:params:jmap:principals:availabilityWhen other people are free, for booking meetings.Draft
File storageurn:ietf:params:jmap:filenodeFiles and folders.Draft
Masked Emailhttps://www.fastmail.com/dev/maskedemailFastmail's own masked email addresses. Only on Fastmail.Fastmail

Drafts can still change before they're published, so servers and apps may differ on them. Paste your server's session into the session explainer to see which it lists and the limits that come with each.

Where they appear in the session

Capabilities show up in two places. The capabilities object at the top of the session lists what the server as a whole supports, with its settings and limits. Each account then has its own accountCapabilities, because a shared or read only account may not offer everything your own one does. primaryAccounts says which account to use by default for each capability.

{
  "capabilities": {
    "urn:ietf:params:jmap:core": {
      "maxSizeUpload": 50000000,
      "maxConcurrentRequests": 4,
      "maxCallsInRequest": 16,
      "maxObjectsInGet": 500
    },
    "urn:ietf:params:jmap:mail": {},
    "urn:ietf:params:jmap:submission": {}
  },
  "accounts": {
    "A1": {
      "name": "you@example.com",
      "isPersonal": true,
      "isReadOnly": false,
      "accountCapabilities": {
        "urn:ietf:params:jmap:mail": { "maxMailboxesPerEmail": null },
        "urn:ietf:params:jmap:submission": { "maxDelayedSend": 0 }
      }
    }
  },
  "primaryAccounts": {
    "urn:ietf:params:jmap:mail": "A1",
    "urn:ietf:params:jmap:submission": "A1"
  }
}

This is trimmed to show the shape. A real session also has the account's other capabilities, the addresses for requests, uploads and downloads, and a state string.

Using them in a request

Every request starts with using: the capabilities its methods need. Core is always needed. To read mail you add mail; to send you add submission too:

{
  "using": ["urn:ietf:params:jmap:core", "urn:ietf:params:jmap:mail"],
  "methodCalls": [["Mailbox/get", { "accountId": "A1", "ids": null }, "m"]]
}

If you ask for a capability the server doesn't have, the whole request fails with an unknownCapability error. If you leave out one a method needs, that step fails with unknownMethod. Both are quick to spot in the request playground.

A server's own extras

Anything that isn't an IETF standard uses a web address as its name instead of urn:ietf:params:jmap:, like Fastmail's Masked Email above. Apps should ignore any they don't know. Our session explainer marks those it doesn't recognise, so you can tell an extra from a mistake.

Check a server JMAP by example