-
Notifications
You must be signed in to change notification settings - Fork 1k
URLS
Bjarni R. Einarsson edited this page Jan 27, 2014
·
21 revisions
The URL space is divided into three main classes:
- Versioned API endpoints
- Nice looking shortcuts to common data
- Shorthand paths to API endpoints (current version only)
Depending on the endpoint, it is often possible to request alternate
rendering templates or generate output in a variety of machine readable
formats, such as JSON, XML or VCard. This is done by appending a
psuedo-filename to the path. If ending in .html
, the full filename is
used to choose an alternate rendering template, for other extensions the
name is ignored but the extension used to choose an output format.
The default rendering for API endpoints is JSON, for other endpoints it is HTML. It is strongly recommended that only the versioned API endpoints be used for automation.
/api/0/filter/list/ [<search>|=<id>]/
/api/0/help/ [<command-group>|variables]/
/api/0/help/splash/
/api/0/help/urlmap/
/api/0/help/variables/
/api/0/message/ [raw]/<message>/
?mid=[metadata-ID]
/api/0/message/download/ <msgs>/<att>/[><fn>]/
/api/0/message/draft/ [<messages>]/
?mid=[metadata-ID]
/api/0/message/unthread/
... POST only: mid=[message-id]
/api/0/page/
/api/0/search/ [@<start>]/<terms>/
?q=[search terms]&start=[start position]&end=[end position]&order=[sort order]
/api/0/settings/ <var>/
?var=[section.variable]
/api/0/tag/list/ [<wanted>|!<wanted>]/[...]/
/api/0/message/attach/ <messages>/[<path/to/file>]/
... POST only: file-data=[file data]&mid=[metadata-ID]
/api/0/message/compose/ [ephemeral]/
... POST only: body=[..]&to=[..]&from=[..]&cc=[..]&encryption=[..]&bcc=[..]&mid=[metadata-ID]&subject=[..]
/api/0/message/forward/ [att|ephemeral]/<messages>/
?mid=[metadata-ID]
/api/0/message/reply/ [all|ephemeral]/<messages>/
?mid=[metadata-ID]
/api/0/message/send/ <messages>/[<emails>]/
... POST only: to=[recipients]&mid=[metadata-ID]
/api/0/message/update/ <messages>/<<filename>/
... POST only: body=[..]&file-data=[file data]&from=[..]&cc=[..]&encryption=[..]&mid=[metadata-ID]&bcc=[..]&to=[..]&subject=[..]
/api/0/message/update/send/
... POST only: body=[..]&file-data=[file data]&from=[..]&cc=[..]&encryption=[..]&mid=[metadata-ID]&bcc=[..]&to=[..]&subject=[..]
/api/0/settings/add/ <section.variable>/<value>/
... POST only: section.variable=[value|json-string]
/api/0/settings/set/ <section.variable>/<value>/
... POST only: section.variable=[value|json-string]
/api/0/settings/unset/ <var>/
... POST only: var=[section.variables]
/api/0/tag/ <[+|-]tags>/<msgs>/
... POST only: add=[tags]&del=[tags]&mid=[message-ids]
/api/0/tag/add/ <tag>/
... POST only: parent=[parent tag ID]&label_color=[label color]&name=[tag name]&template=[tag template type]&display=[tag display type]&label=[display as label in search results, or not]&search_terms=[magic search terms associated with this tag]&slug=[tag slug]&icon=[tag icon]
/api/0/tag/delete/ <tag>/
/api/0/message/attach/ <messages>/[<path/to/file>]/
... POST only: file-data=[file data]&mid=[metadata-ID]
/api/0/message/update/ <messages>/<<filename>/
... POST only: body=[..]&file-data=[file data]&from=[..]&cc=[..]&encryption=[..]&mid=[metadata-ID]&bcc=[..]&to=[..]&subject=[..]
/api/0/message/update/send/
... POST only: body=[..]&file-data=[file data]&from=[..]&cc=[..]&encryption=[..]&mid=[metadata-ID]&bcc=[..]&to=[..]&subject=[..]
/api/0/settings/add/ <section.variable>/<value>/
... POST only: section.variable=[value|json-string]
/api/0/settings/set/ <section.variable>/<value>/
... POST only: section.variable=[value|json-string]
/api/0/tag/delete/ <tag>/
/ Redirects to /in/inbox/ for now. (FIXME)
/in/ Map /in/TAG_NAME/[@<pos>]/ to tag searches.
/static/ RESERVED FOR LATER.
/thread/ Map /thread/METADATA_ID/... to view or extract commands.
These accept the same arguments as the API calls above.
/filter/list/
/help/
/help/splash/
/help/urlmap/
/help/variables/
/message/
/message/attach/
/message/compose/
/message/download/
/message/draft/
/message/forward/
/message/reply/
/message/send/
/message/unthread/
/message/update/
/message/update/send/
/page/
/search/
/settings/
/settings/add/
/settings/set/
/settings/unset/
/tag/
/tag/add/
/tag/delete/
/tag/list/