---
title: "Read Accesslog"
method: GET
path: "/accesslog"
tags: ["Access Log"]
---

# Read Accesslog

`GET /accesslog`

## Request

- Base URL: `https://ns-api.com/ns-api/v2`
- URL: `https://ns-api.com/ns-api/v2/accesslog`
- Auth: HTTP bearer

## Query parameters

- `datetime-start` string, rfc3339: This is the start of the time window for a given query. The format is based on RFC3339 but also will support additonal params for use in providing a timezone which will allow the API to give the correct range for a given set of data and will be formated in respone using the same format. Supported formats include. * 2023-11-27 13:00:00 * 2023-11-27T13:00:00Z * 2023-11-27T13:00:00-08:00 * 2023-11-27T13:00:00-08:00[US/Pacific] * 2023-11-27T13:00:00Z[America/Phoenix]
- `datetime-end` string, rfc3339: This is the end of the time window for a given query. The format is based on RFC3339 but also will support additonal params for use in providing a timezone which will allow the API to give the correct range for a given set of data and will be formated in respone using the same format. Allowed values same as datetime-start.
- `by-ip` string
- `action-type` string
- `target-domain` string
- `target-object` string
- `target-host` string
- `target-user` string
- `by-client` string
- `by-domain` string

## Response `200`

- Auditlog[]
  - `by-ip` string, required
  - `timestamp-datetime` string, required
  - `by-domain` string, required
  - `by-user` string, required
  - `by-client` string, required
  - `action-type` string, required
  - `target-host` string, required
  - `target-domain` string, required
  - `target-user` string, required
  - `target-object` string, required
  - `auditlog-details` object

## Changes

- **2026-11-03** `bce16087d479`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ns-api/apis/netsapiens-api-v2/changes/accesslog/get.md)

---

[API](https://skmtc.dev/ns-api/apis/netsapiens-api-v2.md) - [All operations](https://skmtc.dev/ns-api/apis/netsapiens-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/ns-api/apis/netsapiens-api-v2/revisions/bce16087d479?raw)
