Skip to content

Commit c70000b

Browse files
update docs for account api tokens [LK-1497] (#2427)
update docs for account api tokens lk-1497
1 parent f267730 commit c70000b

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

docs/codacy-api/api-tokens.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,20 @@ You can create new account API tokens programmatically [using the Codacy API](ex
2929

3030
1. Click the button **Create API token** under **Account API tokens**.
3131

32-
!!! tip
33-
You can create multiple account API tokens. This can be useful to have a more flexible control by revoking only a specific token.
32+
1. Select an expiration date from the modal options. You can select between a range of 7 days to 90 days, create a custom expiration date, or create a token with no expiration.
33+
34+
![Creating an account API token](images/codacy-api-tokens-account.png)
35+
36+
![Creating an account API token modal](images/codacy-api-tokens-account-modal.png)
37+
38+
!!! tip
39+
You can create multiple account API tokens. This can be useful to have a more flexible control by revoking only a specific token.
40+
41+
When you have tokens created, you can view them inside the tokens table. By hovering a token, you are able to copy its value.
3442

35-
![Creating an account API token](images/codacy-api-tokens-account.png)
43+
![Creating an account API token modal](images/codacy-api-tokens-account-table.png)
3644

37-
To revoke an account API token, click the "X" next to the token. After this, all applications or services using that token to access the Codacy API will fail to authenticate and will receive the reply `{"error":"not found"}`.
45+
To delete an account API token, click the trash icon in the Actions column of the table. After this, all applications or services using that token to access the Codacy API will fail to authenticate and will receive the reply `{"error":"not found"}`.
3846

3947
## Generating and revoking repository API tokens {: id="repository-api-tokens"}
4048

Loading
Loading
Loading

0 commit comments

Comments
 (0)