Use our Import API to quickly allow people to edit and import your web content (MusicXML and MIDI) with Flat. Simply add a link to Flat following to specification below.
Want to do it with a script or server-side, create multiple files, or export files? You can do it with our REST API.
|Name||Description||Required / Default values|
||The full URL of the MusicXML or MIDI file to import. The file must be publicly accessible and served with CORS||Required|
||The title of the file you are importing||Optional, default:
||If you have an app id, you can provide it here. Your App name and logo will be displayed on the landing page, and a dedicated collection with your app name will be created in the user account.||Optional|
<a href="https://flat.io/score/import-url?url=https%3A%2F%2Fflat.io%2Fexamples%2Fhello-world.xml&title=Hello%20World"> <img src="https://flat.io/img/assets/edit-with-flat-white.svg" alt="Edit with Flat"> </a>
The file is downloaded by the user’s browser, so you will need to add correct CORS when replying to the request:
$ORIGIN is the
Origin header of the request, i.e.
[domain].flat.io for private websites).