S
S
Stanislav2018-09-16 18:24:34
API
Stanislav, 2018-09-16 18:24:34

Why is access denied using Yandex api?

I don’t understand what’s the matter, I need to upload turbo pages to Yandex webmaster in batches.
I got the token on the tab of the turbo page. Then I get the user ID
using the POST method from the link . https://api.webmaster.yandex.net/v3/user/there are no problems with this.
Next, I know host_id = https:site.ru:443
I'm trying to check the rights to manage the site

https://api.webmaster.yandex.net/v3/user/${USER_ID}/hosts/${HOST_ID}/verification/

The token is also transmitted in the headers
I get an error
Access to this resource is not allowed with scopes available for this application

I don’t understand whether I’m doing unnecessary actions, or whether I need to register the user ID somewhere, but the token has already been received!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Alekseev, 2018-09-16
@Zatmil

I tried to quickly set up this service now and got exactly the same result. There are 2 options:
1. Incorrect service configuration
2. An error on the service side, which is sometimes written about.
I would advise you to contact the service support, they will definitely be able to indicate the reason and solution

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question