This is an automated email from the ASF dual-hosted git repository.

zky pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake-website.git


The following commit(s) were added to refs/heads/main by this push:
     new e4f4100476 docs: add manuals for API keys (#673)
e4f4100476 is described below

commit e4f41004765146fbadbeeba1c8e31fcb51f0eced
Author: Louis.z <[email protected]>
AuthorDate: Wed Nov 8 17:10:25 2023 +0800

    docs: add manuals for API keys (#673)
    
    * docs: add manuals for API keys
    
    * docs: auto-generated API key will not be displayed
    
    ---------
    
    Co-authored-by: Startrekzky <[email protected]>
---
 docs/Configuration/APIKeys.md                      |  34 +++++++++++++++++++++
 docs/Configuration/images/api-key-list.png         | Bin 0 -> 45108 bytes
 .../images/auto-generated-api-key.png              | Bin 0 -> 118505 bytes
 3 files changed, 34 insertions(+)

diff --git a/docs/Configuration/APIKeys.md b/docs/Configuration/APIKeys.md
new file mode 100644
index 0000000000..b039c67f22
--- /dev/null
+++ b/docs/Configuration/APIKeys.md
@@ -0,0 +1,34 @@
+---
+title: "API Keys"
+sidebar_position: 11
+description: >
+  API Keys
+---
+## What is an 'API Key'
+![api-key-list](images/api-key-list.png)
+
+An API key, also known as an API token, is a string used for authentication 
when making requests to DevLake's open API or webhook. It serves as a form of 
identification to ensure authorized access.
+
+An API key contains three components:
+1. Name: This is the descriptive name assigned to the key for easy 
identification.
+2. Expiration: You have the option to set an expiration period for the API 
key, such as 7 days, 30 days, 90 days, or choose for it to never expire.
+3. Allowed Path: The API URL or endpoint that the API key is permitted to 
access. It defines the specific resources that the key can interact with.
+
+## How does an API key work?
+### Accessing DevLake Open APIs
+Check out the [API docs](/docs/Overview/References.md).
+
+### Utilizing API Key in [Incoming Webhooks](webhook.md)
+It is typically not necessary to manually create an API key from the 'API 
keys' page. Instead, you can follow these steps:
+
+1. Navigate to the 'Data Connection' page.
+2. Create a new webhook, and an API key will be automatically generated for 
you.
+3. You can copy the provided curl commands, which include the API key, and 
save them in your local environment for future use.
+4. If you happen to forget to save the API key, do not worry. You can view the 
webhook details and regenerate a new API key if needed. It is important to note 
that the API keys automatically generated for webhooks will not be displayed on 
the 'API keys' page.
+
+![api-key-list](images/auto-generated-api-key.png)
+
+
+## Troubleshooting
+
+If you run into any problems, please check the 
[Troubleshooting](/Troubleshooting/Installation.md) or [create an 
issue](https://github.com/apache/incubator-devlake/issues)
diff --git a/docs/Configuration/images/api-key-list.png 
b/docs/Configuration/images/api-key-list.png
new file mode 100644
index 0000000000..ac4a34dbfb
Binary files /dev/null and b/docs/Configuration/images/api-key-list.png differ
diff --git a/docs/Configuration/images/auto-generated-api-key.png 
b/docs/Configuration/images/auto-generated-api-key.png
new file mode 100644
index 0000000000..0eefa7658c
Binary files /dev/null and 
b/docs/Configuration/images/auto-generated-api-key.png differ

Reply via email to