> For the complete documentation index, see [llms.txt](https://rtkdocs.geodnet.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rtkdocs.geodnet.com/rtk-service/enterprise-rtk-api-list/user-management/query-change-logs.md). Agents can also search and read this documentation through its [MCP server](https://rtkdocs.geodnet.com/~gitbook/mcp).

# Query change logs

## Api Description

`POST`  <https://rtk.geodnet.com/api/v3/user/logs>

## **Request Body**

<table><thead><tr><th>Parameter</th><th width="172.5916748046875">Example</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>appId</td><td>geodnet</td><td>String</td><td>Yes</td><td>Application ID</td></tr><tr><td>username</td><td>geoduser</td><td>String</td><td>Yes</td><td>username</td></tr><tr><td>start</td><td>1738922400000</td><td>Number</td><td>Yes</td><td>Start timestamp in ms</td></tr><tr><td>end</td><td>1738926000000</td><td>Number</td><td>Yes</td><td>End timestamp in ms</td></tr><tr><td>limit</td><td>10</td><td>Number</td><td>Yes</td><td>Number of logs, max 100</td></tr><tr><td>time</td><td>1718150400000</td><td>Number</td><td>Yes</td><td>Current server timestamp (ms)</td></tr><tr><td>sign</td><td>1526be641371c27c0e9c2857b636e6ab</td><td>String</td><td>Yes</td><td>Encrypted signature</td></tr></tbody></table>

## **Response Body**

| Parameter        | Example                | Type   | Description                                                                                            |
| ---------------- | ---------------------- | ------ | ------------------------------------------------------------------------------------------------------ |
| code             | 1000                   | Number | Status code                                                                                            |
| msg              | OK                     | String | Status code description                                                                                |
| data             | `[...]`                | Array  | Log list                                                                                               |
| data\[].username | geoduser               | String | username                                                                                               |
| data\[].action   | 5                      | Number | Change operation: 1 Create, 2 Update expiration, 3 Update status, 4 Update connections, 5 Update email |
| data\[].oldValue | <old.user@geodnet.com> | String | Value before change                                                                                    |
| data\[].newValue | <user@geodnet.com>     | String | Value after update                                                                                     |
| data\[].time     | 1738924143336          | Number | Update timestamp (ms)                                                                                  |

## **Request Example**

```json
{
  "appId": "geodnet",
  "username": "geoduser",
  "start": 1738922400000,
  "end": 1738926000000,
  "limit": 10,
  "time": 1718150400000,
  "sign": "1526be641371c27c0e9c2857b636e6ab"
}
```

## **cURL**

```sh
curl -X POST "https://rtk.geodnet.com/api/v3/user/logs" \
  -H "Content-Type: application/json" \
  -d '{
    "appId": "geodnet",
    "username": "geoduser",
    "start": 1738922400000,
    "end": 1738926000000,
    "limit": 10,
    "time": 1718150400000,
    "sign": "1526be641371c27c0e9c2857b636e6ab"
  }'
```

## **Response**

```json
{
  "code": 1000,
  "msg": "OK",
  "data": [
    {
      "username": "geoduser",
      "action": 5,
      "oldValue": "",
      "newValue": "user@geodnet.com",
      "time": 1738924143336
    },
    {
      "username": "geoduser",
      "action": 4,
      "oldValue": "1",
      "newValue": "1",
      "time": 1738924092345
    },
    {
      "username": "geoduser",
      "action": 3,
      "oldValue": "0",
      "newValue": "1",
      "time": 1738924070042
    },
    {
      "username": "geoduser",
      "action": 2,
      "oldValue": "1739528512591",
      "newValue": "1735689600000",
      "time": 1738923982974
    },
    {
      "username": "geoduser",
      "action": 1,
      "oldValue": "",
      "newValue": "",
      "time": 1738923712602
    }
  ]
}
```
