Craft Create (URL Scheme) Drafts Action

Updated 11102022-175952


craftdocs://createdocument?spaceId=a25fbb2VopyLtegVgh7g53b&title=Test&content=This%20is%20a%20test&folderId=

Description

Directory Description


JS


Install


Craft URL Scheme

Using URL Scheme

Ulysses


Craft URL Scheme

The URL scheme lets users and developers of other apps send commands to Craft. This page explain how it works and what are the current capabilities.

Note: We are planning to add more capabilities to the existing ones in the future.

Here are the available commands that Craft understands:

Open page

Inputs:

Example: craftdocs://open?spaceId=&blockId=

Note: It does not work when you are not the member of the space

Open space

Inputs:

Example: craftdocs://openspace?spaceId=&tab=

Note: It does not work when you are not the member of the space

Create document

Inputs:

Example: craftdocs://createdocument?spaceId=&title=&content=&folderId=

Append to doc

Inputs:

Example: craftdocs://createblock?parentBlockId=&spaceId=&content=&index=

Search in Workspace

Starts a search in a given workspace and prefills search textfield with the query contents

Inputs:

Example: craftdocs://opensearch?spaceId=&query=

Access to Daily Notes

Yesterday - craftdocs://openByQuery?query=yesterday&spaceId=

Today - craftdocs://openByQuery?query=today&spaceId=

Tomorrow - craftdocs://openByQuery?query=tomorrow&spaceId=