Skip to content

Moraya Integration

Configure Moraya to upload images to Picora by pasting a single JSON configuration snippet.

Prerequisites

  • Moraya installed
  • A Picora account with an API key (see Quick Start)

Configuration Steps

1. Open Moraya Preferences

In Moraya, go to Preferences → Image Upload → Custom Provider.

2. Paste the JSON Config

Copy and paste the following JSON configuration, replacing sk_live_YOUR_KEY with your actual API key:

{
"name": "Picora",
"url": "https://api.picora.com/v1/images",
"method": "POST",
"headers": {
"Authorization": "Bearer sk_live_YOUR_KEY"
},
"bodyType": "multipart",
"fileField": "file",
"responseUrlPath": "data.url"
}

3. Save and Test

Click Save, then drag an image onto the Moraya window to test the upload. The permanent URL will be returned and ready to copy.

Config Field Reference

FieldDescription
urlThe Picora upload endpoint
methodAlways POST for uploads
headers.AuthorizationYour API key in Bearer format
bodyTypeMust be multipart for file uploads
fileFieldThe form field name (file)
responseUrlPathJSON path to extract the URL from the response

Notes

  • The data.url path extracts the url field from the nested data object in Picora’s response
  • Each uploaded image gets a unique 11-character ID, e.g., https://img.picora.com/xK9mR2pQ7vB.webp
  • Images are permanently stored — URLs never expire