When working with Yandex Wiki API, requests are made on behalf of a user. To perform actions through the API, the user on whose behalf the request is made must have the appropriate permissions in Wiki. For example, if the user does not have permission to edit a page, the corresponding API requests will be unavailable. For more information about user permissions, see Roles.
To access the Yandex Wiki API, you can use one of these authorization methods:
If you are using Wiki as part of a Yandex Cloud organization, you can authorize with the API using an IAM token.
An IAM token is a unique sequence of characters issued to a user after authentication. The user uses this token to authorize with the Yandex Wiki API and perform operations on resources. For more information about this authentication method, see the documentation of the identity and access management service.
The IAM token is valid for no more than 12 часов and is limited by the cookie lifetime for the federation. When the token expires, the 401 Unauthorized error is returned.