Guide: Using the Morpheus API


Using the Morpheus API

Generating an API token

Sign in to the Morpheus dashboard and click on your username in the upper-right corner.

Choose User Settings from the list:

In the User panel, click on the API Access button at the bottom.

Your current API token is empty. In the row with morph-api click on Actions.

Click on Regenerate to obtain a new token.

Your API token has been created. Save it for future use and click on Done to finish the operation.

Accessing the Morpheus API

The Morpheus documentation can be found here.

As an example, you can get the list of instances in your tenant like this:

$ curl "" -H "Authorization: BEARER <token>" | python -m json.tool

replacing <token> with the token obtained above.