Note

The note interface is for creating simple text posts and optionally adding images.

Adding Photos

If your Micropub server supports a Media Endpoint, then at the time you select a photo, Quill uploads the file to your Media Endpoint and shows a preview in the interface. The image URL will be sent as a string in the request.

If your Micropub server does not support a Media Endpoint, then when you add an image, it is not uploaded until you click "post", and then is sent to your Micropub endpoint as a file.

Post Properties

The following properties will be sent in the Micropub request. This request will be sent as either a form-encoded or a multipart-encoded request, depending on whether there are photos and whether you have a Media Endpoint.

If you have a Media Endpoint, then you'll always get a form-encoded request with the URL of any photos. If you do not have a Media Endpoint, and if there is a photo, you'll get a multipart request so that photos are uploaded directly to your Micropub endpoint.

The access token is sent in the Authorization HTTP header:

Authorization: Bearer XXXXXXXXX
  • h=entry - This indicates that this is a request to create a new h-entry post.
  • content - The text of your post. Your endpoint is expected to treat this as plaintext, and handle all escaping as necessary.
  • category[] - This property will be repeated for each tag you've entered in the "tags" field.
  • in-reply-to - If you tap the Reply button and enter a URL, the URL will be sent in this property.
  • location - If you check the "location" box, then this property will be a Geo URI with the location the browser detected. You will see a preview of the value in the note interface along with a map.
  • photo or photo[] - If your server supports a Media Endpoint, this will be set to the URL that your endpoint returned when it uploaded the photo. Otherwise, this will be one of the parts in the multipart request with the image file itself.
  • mp-slug - If you enter a slug, this will be sent in the request. You can customize the name of this property in settings.
  • mp-syndicate-to[] - Each syndication destination selected will be sent in this property. The values will be the uid that your endpoint returns. See Syndication for more details. (If you are using an older Micropub endpoint that expects syndicate-to, you can customize this property in the settings.)

Back to Creating Posts