This is the older REST API and is now deprecated.
Go to the dedicated apidocs.compose.com for details of the current API which works with all Compose databases with the exception of the MongoDB Classic deployments.
In order to authenticate and use the API, you must first have a Personal Access Token. Personal Access Tokens are static tokens created by you to access Compose via the API. Once tokens are created, they will last forever. When access is no longer required, the token should be deleted.
- Ensure you are on a paid account plan. API tokens are not available on sandbox accounts.
- Log in to your account, and click the "Account" icon on the left menu.
- Click the Manage OAuth Tokens link on the right side of the page.
curl https://api.compose.io/accounts -H "Authorization: Bearer <Personal Access Token>" -H "Accept-Version: 2014-06" -H "Content-Type: application/json"
If this article didn't solve things, summon a human and get some help!