Skip to content

Build with music notation

Embed interactive sheet music, automate scores over the REST API, turn PDFs into editable music, and plug Flat into your LMS.

index.html
<div id="embed"></div>
<script src="https://prod.flat-cdn.com/embed-js/v2.12.1/embed.min.js"></script>
<script>
  const embed = new Flat.Embed('embed', {
    score: '56ae21579a127715a02901a6',
    embedParams: { appId: 'YOUR_APP_ID', mode: 'edit' }
  });
  embed.play();
</script>

Try the API in 5 minutes

  1. Create an app for your script or project.
  2. In the left menu, open Flat API > Personal Tokens, then choose a name and the authorization scopes for your first token.
  3. Send the token in the Authorization header of your requests:
bash
curl -H 'Authorization: Bearer <my_api_personal_access_token>' https://api.flat.io/v2/me

That is enough to work with your own account. When you want other Flat or Flat for Education users to connect their account to your app, for example to open their scores or to run the OMR API behind your own product, you will need OAuth2 credentials. Read the authentication guide for the scopes, the OAuth2 flows, and how to request credentials.

Going further

Reading these docs with an AI agent? The whole site is available as plain text at llms.txt and llms-full.txt.

Questions, feedback or feature requests? Email developers@flat.io.

Copyright © Tutteo Limited