X-Callback-URL Scheme
Written Down has an x-callback-url scheme to allow for automation and data sharing with other apps. You can use the url scheme with apps like Apple’s Workflow app and others to create & edit entries, open journals etc.
URL Example
writtendown://x-callback-url/[action]?[action parameters]&[x-callback parameters]
URL Actions
/create
Create a new entry in a journal.
action parameters (all are optional)
text
body text for the new entryjournalID
a unique identifier for the journal to create an entry in, defaults to first journal if omittedtags
comma separated list of tags to add the entrylatlng
comma separated latitude & longitude values for entry location, defaults to current location if omitteddate
date & time for the entry in IOS 8601 format, example2017-12-19T16:39:57-08:00
, defaults to current date & time if omitted
x-success return parameters
id
unique identifier of the new entrytext
body text of the new entryjournalID
unique identifier of the new entry journal
example
/open-entry
Open and display an entry in Written Down.
action parameters
id
required unique identifier for entry to be opened
x-success return parameters
id
unique identifier of the opened entrytext
body text of the opened entryjournalID
unique identifier of the opened entry journal
example
writtendown://x-callback-url/open-entry?id=4739C5F8-AF19-49A3-B6BD-2561962C75CC
/edit-entry
Edit text, tags, date or location of an existing entry.
action parameters
id
required unique identifier of the entry to edittext
text to be added to the entrymode
whether toappend
,replace
orprepend
the text to the entry, defaults toappend
if omittedtags
comma separated list of tags to apply to the entrytagMode
whether toappend
,replace
existing tags withtags
, ordelete
thesetags
from the entry, defaults toappend
if omittedlatlng
comma separated latitude & longitude values for entry location. Entry location is not changed if omitted. Passlatlng=delete
to remove location from the entry.date
date & time for the entry in IOS 8601 format, example2017-12-19T16:39:57-08:00
, unchanged if omitted
x-success return parameters
id
unique identifier of the modified entrytext
body text of the modified entryjournalID
unique identifier of the entry journal
example
/open-journal
Open and display a journal in Written Down.
action parameters
journalID
required unique identifier for journal to be opened
x-success return parameters
journalID
unique identifier of the opened journal
example
writtendown://x-callback-url/open-journal?journalID=4739C5F8-AF19-49A3-B6BD-2561962C75CC