Skip to main content
Every request carries a partner key of your firm as a bearer token. The same key calls the partner endpoints and the Melso API for any company of your firm.

Test and live keys

A key is for one environment. An mk_test_ key works only in Melso’s test environment, where nothing is filed with the AEAT. An mk_live_ key works only in production. A key sent to the other environment answers 401. Build with a test key, and ask hello@melso.ai for the test environment’s address.

Create a key

1

Open the console

Sign in to Melso as the firm’s owner or an admin, and go to Settings › Developers.
2

Choose its permissions

Give the key only what it needs. A backend that onboards customers, sends their books and approves their returns needs companies:write, incorporations:write, fiscal_profile:write, certificates:write, books:write, taxes:write and webhooks:write. Each :write includes its :read.
3

Copy the secret

The secret is shown once. Store it in your server’s secret manager, such as an environment variable MELSO_PARTNER_KEY.

Keep it safe

  • Use the key only from your servers. Never in a browser, a mobile app, a log or a repository.
  • Revoke a key from the same page in Settings › Developers. It stops working at once.
  • A key also stops working when the person who created it leaves the firm. Create the key from an account that stays.

Errors

Acting for your companies lists every permission and the endpoints it opens. A firm has at most 20 keys.