Get IAM token

    To get an IAM token:

    1. Log in to Yandex using your Yandex Passport account.

    2. Get an OAuth token from Yandex OAuth. To do this, follow the link, click Allow and copy the OAuth token that is issued.

    3. Exchange the OAuth token for an IAM token:

      curl -X POST \
           -H 'Content-Type: application/json' \
           -d '{"yandexPassportOauthToken": "<OAuth-token>"}' \

      The received IAM token is valid for 12 hours. After that period expires, get a new IAM token.