---
title: Get DNS requests sent by user
canonical: https://openvpn.net/cloud-docs/developer/cloudconnexa-beta-api-v0-16-0/dns-logs/get-dns-requests-sent-by-user/
product: CloudConnexa Docs
---

# Get DNS requests sent by user

`GET /api/beta/dns-log/user-dns-resolutions/page`

## Introduction

An endpoint to retrieve DNS resolutions that were performed by the user. The reply is aggregated within an hour interval. Has pagination and page size for paginated data retrieval.

For example:

`GET /api/beta/dns-log/user-dns-resolutions/page?startHour=2024-11-08T14:00:00Z&hoursBack=1&page=1&size=1000`

```
{
    "content": [
        {
            "time": 1731412800000,
            "domain": "connectivity-check.ubuntu.com",
            "memberId": "memberId@tenant",
            "internalDomain": false,
            "allowedCount": 23,
            "blockedCount": 0,
            "failedCount": 0
        },
        {
            "time": 1731416400000,
            "domain": "reddit.com",
            "memberId": "memberId@tenant",
            "internalDomain": false,
            "allowedCount": 2,
            "blockedCount": 0,
            "failedCount": 0
        }
    ],
    "totalElements": 2,
    "totalPages": 1,
    "numberOfElements": 2,
    "page": 1,
    "size": 1000
}
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| startHour | query | string(date-time) | true | A String date-time, according to ISO 8601 in UTC timezone, of an hour to start collecting data from. Value is rounded to the past hour if more granular value is provided. Max 30 days of history available. If value is before (now - 30 days), an error will be returned. Should use `ISO_INSTANT` format, e.g. `2024-11-08T14:00:00Z`. |
| page | query | string | true | page |
| size | query | string | true | size |

## Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | Inline |
| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | Bad Request | None |
| 401 | [Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1) | Unauthorized | None |
| 403 | [Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3) | Access Forbidden | None |
| 404 | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) | Not Found | None |
| 406 | [Not Acceptable](https://tools.ietf.org/html/rfc7231#section-6.5.6) | Not Acceptable | None |
| 429 | [Too Many Requests](https://tools.ietf.org/html/rfc6585#section-4) | Too Many Requests | None |
| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | Internal Server Error | None |

To perform this operation, you must be authenticated by means of one of the following methods: OAuth\_authorization

```json
{
  "content": [
    {
      "allowedCount": 0,
      "blockedCount": 0,
      "domain": "string",
      "failedCount": 0,
      "internalDomain": true,
      "memberId": "string",
      "time": 0
    }
  ],
  "numberOfElements": 0,
  "page": 0,
  "size": 0,
  "success": true,
  "totalElements": 0,
  "totalPages": 0
}
```

---

Prev: [DNS Logs](https://openvpn.net/cloud-docs/developer/cloudconnexa-beta-api-v0-16-0/dns-logs.md)
Next: [DNS Record](https://openvpn.net/cloud-docs/developer/cloudconnexa-beta-api-v0-16-0/dns-record.md)
Index: https://openvpn.net/cloud-docs/llms.txt
