mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-04 15:06:54 +00:00
docs: update content and screenshots for accessing APIs
This commit is contained in:
@@ -13,36 +13,44 @@ NocoDB APIs can be authorized by either Auth Token or API Token.
|
||||
Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable `NC_JWT_EXPIRES_IN`. If you are passing Auth Token, make sure that the header is called `xc-auth`.
|
||||
|
||||
- Go to NocoDB Project, click the rightmost button and click ``Copy Auth Token``.
|
||||
|
||||
<img width="219" alt="image" src="https://user-images.githubusercontent.com/35857179/164874424-7622112f-9729-4514-81d2-5c6631b19ed0.png">
|
||||
|
||||

|
||||
<!-- <img width="219" alt="image" src="https://user-images.githubusercontent.com/35857179/164874424-7622112f-9729-4514-81d2-5c6631b19ed0.png"> -->
|
||||
|
||||
## API Token
|
||||
|
||||
NocoDB allows creating API tokens which allow it to be integrated seamlessly with 3rd party apps. API Token is a Nano ID with a length of 40. If you are passing API Token, make sure that the header is called `xc-token`.
|
||||
|
||||
|
||||
- Go to `Team & Settings` from the left navigation drawer
|
||||

|
||||
- Open `Project Menu`, click on `Team & Settings`
|
||||
|
||||
<img width="390" alt="image" src="https://user-images.githubusercontent.com/35857179/189115289-07657c15-deab-435f-b0f9-2948007f8c65.png">
|
||||
<!--  -->
|
||||
|
||||
- Click `API Tokens Management`
|
||||

|
||||
- Click `API Tokens Management` tab under `Team & Auth` section
|
||||
<!--  -->
|
||||
|
||||
- Click Add New Token
|
||||

|
||||
|
||||

|
||||
<!--  -->
|
||||
|
||||
- Type an recognizable name for your token and click `Generate`
|
||||

|
||||
|
||||

|
||||
<!--  -->
|
||||
|
||||
- Copy API token to your clipboard
|
||||

|
||||
- Copy API token to your clipboard; use action menu to the right of token list
|
||||
<!--  -->
|
||||
|
||||
## Swagger UI
|
||||
|
||||
You can interact with the API's resources via Swagger UI.
|
||||
|
||||
- Go to NocoDB Project, click the rightmost button and click ``Swagger APIs Doc``.
|
||||
|
||||
<img width="215" alt="image" src="https://user-images.githubusercontent.com/35857179/164874429-d8e8f129-9cca-4d47-92c4-0b34b6e0b922.png">
|
||||
|
||||

|
||||
<!-- <img width="215" alt="image" src="https://user-images.githubusercontent.com/35857179/164874429-d8e8f129-9cca-4d47-92c4-0b34b6e0b922.png"> -->
|
||||
|
||||
- Click ``Authorize``, paste the token you copied in above steps and click `Authorize` to save.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user