Skip to content

Commit 94ab18e

Browse files
committed
update docs for account api tokens lk-1497
1 parent f267730 commit 94ab18e

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

docs/codacy-api/api-tokens.md

Lines changed: 11 additions & 3 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
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
3339
You can create multiple account API tokens. This can be useful to have a more flexible control by revoking only a specific token.
3440

35-
![Creating an account API token](images/codacy-api-tokens-account.png)
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.
42+
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)