Personal API¶
| Endpoint | ||
|---|---|---|
| POST | Sign in account | /api/v2/signin |
| POST | Query RTK history | /api/v2/history |
Sign in account¶
POST https://rtk.geodnet.com/api/v2/signin
Request body
Content type: application/json
| Parameter | Example | Type | Required | Description |
|---|---|---|---|---|
| username | geoduser | String | Yes | Username |
| password | 9f86d081884c7d659a2feaa0c55ad015 | String | Yes | MD5 hash of the user's original password |
Response fields
Content type: application/json
| Parameter | Example | Type | Description |
|---|---|---|---|
| code | 0 | Number | Status code; 0 indicates success |
| msg | String | Status message | |
| data | eyJhbGciOiJIUzI1NiIs... | String | JWT authentication token |
Error codes
| Code | Message | Description |
|---|---|---|
| 201 | Invalid parameter | A required parameter is missing or invalid |
| 202 | Incorrect username or password | The username does not exist or the password is incorrect |
| 203 | Account disabled | The user account is disabled |
Status: 200 Success
Important
The password must be sent as the MD5 hash of the user's original password. Use the JWT returned in data as the token request header when calling authenticated APIs. Logging in again replaces the user's previous token.
Query RTK history¶
POST https://rtk.geodnet.com/api/v2/history
Request headers
| Header | Example | Type | Required | Description |
|---|---|---|---|---|
| token | eyJhbGciOiJIUzI1NiIs... | String | Yes | JWT returned by the sign-in API |
Request body
Content type: application/json
| Parameter | Example | Type | Required | Description |
|---|---|---|---|---|
| page | 1 | Number | Yes | Page number, minimum 1 |
| pageSize | 20 | Number | Yes | Number of records per page, range 1–20 |
| stime | 1718150400000 | Number | No | Start time in milliseconds; defaults to seven days before the default end time |
| etime | 1718755200000 | Number | No | End time in milliseconds; defaults to the start of tomorrow |
Response fields
Content type: application/json
| Parameter | Example | Type | Description |
|---|---|---|---|
| code | 0 | Number | Status code; 0 indicates success |
| msg | String | Status message | |
| data.rows | [...] | Array | RTK history records for the current page |
| data.page | 1 | Number | Current page number |
| data.total | 1 | Number | Total number of matching records |
| data.rows[].mountpoint | AUTO | String | NTRIP mountpoint |
| data.rows[].ip | 192.0.2.10 | String | Client IP address |
| data.rows[].status | 0 | Number | Connection status |
| data.rows[].msg | String | Connection status message | |
| data.rows[].loginTime | 1718150500000 | Number | Login time in milliseconds |
| data.rows[].duration | 3600 | Number/String | Connection duration in seconds; empty when logout time is unavailable |
| data.rows[].station | ADB6D | String | Station name; only the last five characters are returned when longer than five characters |
| data.rows[].distance | 23.59 | Number/String | Distance to the station; empty when unavailable |
| data.rows[].spp | 10 | Number | SPP count from GGA statistics |
| data.rows[].dgps | 5 | Number | DGPS count from GGA statistics |
| data.rows[].fix | 850 | Number | RTK fixed-solution count |
| data.rows[].float | 150 | Number | RTK float-solution count |
| data.rows[].fixRate | 85 | Number | RTK fix percentage, truncated to two decimal places |
Error codes
| Code | Message | Description |
|---|---|---|
| 201 | Invalid parameter | A request parameter is missing or invalid |
| 202 | Incorrect username or password | The token references a user that does not exist |
| 203 | Account disabled | The user account is disabled |
| 404 | Invalid token | The token is missing, invalid, or no longer matches the user's current token |
Status: 200 Success
{
"code": 0,
"msg": "",
"data": {
"rows": [
{
"mountpoint": "AUTO",
"ip": "192.0.2.10",
"status": 0,
"msg": "",
"loginTime": 1718150500000,
"duration": 3600,
"station": "ADB6D",
"distance": 23.59,
"spp": 10,
"dgps": 5,
"fix": 850,
"float": 150,
"fixRate": 85
}
],
"page": 1,
"total": 1
}
}
Time Range
The query includes records whose loginTime is greater than or equal to stime and less than etime. If no time range is provided, the API queries the most recent seven-day range ending at the start of tomorrow.