Authentication

API request

POST /developers/oauth/token

Exchange client credentials for a bearer access token.

curl -X POST "https://api.mainmoney.net/api/v2/developers/oauth/token" \
  -H "Content-Type: application/json" \
  -d '{"grant_type":"client_credentials","client_id":"mm_test_...","client_secret":"your_client_secret"}'

Authentication

Mainmoney developer APIs use OAuth 2.0 client credentials.

Token request

Exchange your app client_id and client_secret for a short-lived bearer token.

Response

{
  "data": {
    "access_token": "...",
    "token_type": "Bearer",
    "expires_in": 3600
  }
}

Use the token on developer routes:

Authorization: Bearer <access_token>

Sandbox apps use mm_test_ client IDs; live apps use mm_live_.