---
metadata:
  - name: generator
    content: Diplodoc Platform v5.44.0
alternate:
  - https://yandex.ru/dev/webmaster/doc/en/reference/host-owners-get.md
  - https://yandex.ru/dev/webmaster/doc/ru/reference/host-owners-get.md
keywords:
  - s
  - i
  - t
  - e
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/webmaster/doc/en/llms.txt


# Getting a list of users who verified their rights to manage the site

Returns the list of users who verified their site management rights.

## Request format

```
GET https://api.webmaster.yandex.net/v4/user/{[user-id](*user-id)}/hosts/{[host-id](*host-id)}/owners
```



#|
||
`user-id`
|
<!-- source: en/_includes/popups.md -->
Type: `int64`. User ID. Required when calling all Yandex.Webmaster API resources. To get it, use the [GET /v4/user](https://yandex.ru/dev/webmaster/doc/en/reference/user.md) method.
<!-- endsource: en/_includes/popups.md -->
||
||
`host-id`
|
<!-- source: en/_includes/popups.md -->
Type: `host id (string)`. The site ID. To get it, use the [GET /v4/user/{user-id}/hosts](https://yandex.ru/dev/webmaster/doc/en/reference/hosts.md) method.
<!-- endsource: en/_includes/popups.md -->
||
|#

## Response format

### Examples

> 
> {% list tabs %}
> 
> - JSON
> 
>   
>   ```javascript
>   {
>     "users": [
>       {
>         "user_login": "vassily123",
>         "verification_uin": "1123",
>         "verification_type": "META_TAG",
>         "verification_date": "2016-01-01T00:00:00,000+0300"
>       }, ...
>     ]
>   }
>   ```
>   
> 
> - XML
> 
>   
>   ```xml
>   <Data>
>       <user>
>           <[user_login](*user_login)>vassily123</user_login>
>           <[verification_uin](*verification_uin_2)>1123</verification_uin>
>           <[verification_type](*verification_type_desc_2)>[META_TAG](*META_TAG_XML)</verification_type>
>           <[verification_date](*verification_date)>2016-01-01T00:00:00,000+0300</verification_date>
>       </user>
>       ...
>   </Data>
>   ```
> 
> {% endlist %}
>
> #|
> || **Name** | **Required** | **Type** | **Description** ||
> || `user_login` | Yes | `string` | Username. ||
> || `verification_uin` | Yes | `string` | Confirmation code. ||
> || `verification_type` | Yes | `string` ([ApiExplicitVerificationType ](#api-verification-type-explicit)) | Rights verification method. ||
> || `verification_date` | No | `timedate` | The confirmation date. ||
> |#

<!-- source: en/_includes/reference/api-explicit-verification-type.md -->
### Explicit methods of rights verification (ApiExplicitVerificationType) {#api-verification-type-explicit}

#|
||
**Verification method** | **Whether a verification check can be requested** | **Description**
||
||
`DNS` | Yes | Verifying rights with the DNS record.
||
||
`HTML_FILE` | Yes | Placing an HTML file in the site's root directory.
||
||
`META_TAG` | Yes | Adding a meta tag to the site's home page header.
||
|#
<!-- endsource: en/_includes/reference/api-explicit-verification-type.md -->

## Response codes

To view the response structure in detail, click the reason.

#|
||
**Code** | **Reason** | **Description**
||
||
200 | OK | 
||
||
403
|
[INVALID_USER_ID](https://yandex.ru/dev/webmaster/doc/en/reference/errors.md#invalid-user-id)
|
The ID of the user who issued the token differs from the one specified in the request. In the examples below, `{user_id}` shows the correct `uid` of the OAuth token owner.

{% list tabs %}

- JSON

  ```json 
  {   
      "error_code": "INVALID_USER_ID",   
      "available_user_id": 1,   
      "error_message": "Invalid user id. {user_id} should be used."
  }
  ```

- XML

  ```xml 
  <Data>     
      <[error_code](*error_code)>INVALID_USER_ID</error_code>     
      <[available_user_id](*available_user_id)>1</available_user_id>     
      <[error_message](*error_message)>Invalid user id. {user_id} should be used.</error_message> 
  </Data>
  ```

{% endlist %}
||
||
404
|
[HOST_NOT_VERIFIED](https://yandex.ru/dev/webmaster/doc/en/reference/errors.md#host-not-verif) | Site management rights are not verified.

{% list tabs %}

- JSON

  ```json
  {   
      "error_code": "HOST_NOT_VERIFIED",   
      "host_id": "http:ya.ru:80",   
      "error_message": "some string" }
  ```

- XML

  ```xml 
  <Data>   
      <[error_code](*error_code)>HOST_NOT_VERIFIED</error_code>     
      <[host_id](*host_id)>http:ya.ru:80</host_id>   
      <[error_message](*error_message)>some string</error_message>
  </Data>
  ```
||
|#

{% endlist %}

### Related information

- [Error codes and statuses](https://yandex.ru/dev/webmaster/doc/en/reference/errors.md)




[*user-id]: Type: `int64`. User ID. Required when calling all Yandex.Webmaster API resources. To get it, use the [GET /v4/user](https://yandex.ru/dev/webmaster/doc/en/reference/user.md) method.

[*host-id]: Type: `host id (string)`. The site ID. To get it, use the [GET /v4/user/{user-id}/hosts](https://yandex.ru/dev/webmaster/doc/en/reference/hosts.md) method.

[*error_code]: **Description**

Error code.

[*available_user_id]: **Description**

ID of the user who allowed access.

[*error_message]: **Description**

Error message.

[*host_id]: **Description**

ID of the requested site.

[*user_login]: **Required**

Yes

**Type**

`string`

**Description**

Username.

[*verification_uin_2]: **Required**

Yes

**Type**

`string`

**Description**

Confirmation code.

[*verification_type_desc_2]: **Required**

Yes

**Type**

`string` ([ApiExplicitVerificationType](#api-verification-type-explicit))

**Description**

Rights verification method.

[*verification_date]: **Required**

No

**Type**

`timedate`

**Description**

The confirmation date.

[*NONE]: ### The status of verifying the right to manage the site (ApiVerificationState) {#verification-state}

#|
|| **Status** | **Description** ||
|| `NONE` | Verification wasn't completed and rights are not confirmed. ||
|| `VERIFIED` | The rights are verified. ||
|| `IN_PROGRESS` | The rights verification is in progress. ||
|| `VERIFICATION_FAILED` | Verification was performed but rights are not confirmed. ||
|| `INTERNAL_ERROR` | An unexpected error occurred when verifying the rights. ||
|#

[*META_TAG]: ### Rights verification methods (ApiVerificationType) {#verification-type}

#|
||
**Verification method** | **Whether a verification check can be requested** | **Description**
||
|| `AUTO` | No | Automatic rights verification (deprecated; only for *.narod.ru sites). ||
|| `DELEGATED` | No | Rights were delegated. ||
|| `DNS` | Yes | Verifying rights with the DNS record. ||
|| `HTML_FILE` | Yes | Placing an HTML file in the site's root directory. ||
|| `META_TAG` | Yes | Adding a meta tag to the site's home page header. ||
|| `PDD` | No | Rights verification via Yandex.Mail for Domains. ||
|| `TXT_FILE` | No | Placing a text file in the site's root directory. ||
|#

[*META_TAG_NOT_FOUND]: ### Reasons for refusal to verify site management rights (ApiVerificationFailReason) {#verification-fail-reason}

#|
|| **Reason for refusal** | **Description** ||
|| `DELEGATION CANCELLED` | Delegation of site management rights was canceled. ||
|| `DNS_RECORD_NOT_FOUND` | The specified DNS record doesn't exist. ||
|| `META_TAG_NOT_FOUND` | The meta tag is missing in the site's home page header. ||
|| `PDD_VERIFICATION_CANCELLED` | Verification of site management rights via Yandex.Mail for Domain isn't allowed for this site. ||
|| `WRONG_HTML_PAGE_CONTENT` | The HTML file content is set incorrectly. ||
|#

[*META_TAG_XML]: ### Explicit methods of rights verification (ApiExplicitVerificationType) {#api-verification-type-explicit}

#|
||
**Verification method** | **Whether a verification check can be requested** | **Description**
||
||
`DNS` | Yes | Verifying rights with the DNS record.
||
||
`HTML_FILE` | Yes | Placing an HTML file in the site's root directory.
||
||
`META_TAG` | Yes | Adding a meta tag to the site's home page header.
||
|#