Authorization

You can find your Client ID and API key in the Profile section. Once you're logged in, click Settings → Profile.

Authenticate your account by including your Client ID and API key requests. Run the query where your_client_id your Client ID, and your_api_key is your API key

curl -H "client_id: your_client_id" -H "api_key: your_api_key" https://api.might.io/token

After a successful execution of the request you will receive JSON object:

{ "success": true, "data": { "expires_after_seconds": 10800, "token": "eyJhbGciOiJIBcGlLZXki...", } }

Where:

  • expires_after_seconds - Token expiration time in seconds
  • token - Your token, must be passed in all requests as:
    curl -H "token: your_token" https://api.might.io ...