Skip to content

Commit 7bdfa65

Browse files
authored
Merge pull request #124 from gitplayer4/en/v2
Update api_manual.md
2 parents ed8b0a9 + e8ebf58 commit 7bdfa65

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/dev_manual/api_manual.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ This document details how to use custom Token verification to access panel APIs
2121
```text
2222
Token = md5('1panel' + API-Key + UnixTimestamp)
2323
```
24+
!!! note ""
2425

2526
Components:
2627

@@ -39,6 +40,8 @@ This document details how to use custom Token verification to access panel APIs
3940
| 1Panel-Token | Custom Token value |
4041
| 1Panel-Timestamp | Current Unix timestamp |
4142

43+
!!! note ""
44+
4245
Example request header:
4346

4447
```bash
@@ -87,6 +90,8 @@ This document details how to use custom Token verification to access panel APIs
8790

8891
The backend will return 401 Unauthorized with the prompt "API interface key error".
8992

93+
!!! note ""
94+
9095
- How to generate 1Panel-Token
9196

9297
Please refer to the following pseudocode:
@@ -95,6 +100,8 @@ This document details how to use custom Token verification to access panel APIs
95100
const token = md5('1panel' + clientToken + unixTimestamp);
96101
```
97102

103+
!!! note ""
104+
98105
- Why two Headers are required
99106

100107
To increase the complexity of verification and enhance security at the same time.

0 commit comments

Comments
 (0)