Skip to content

Commit 82cbc00

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

4 files changed

Lines changed: 9 additions & 2 deletions

File tree

docs/codacy-api/api-tokens.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,19 @@ 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+
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+
![Creating an account API token modal](images/codacy-api-tokens-account-modal.png)
36+
3237
!!! tip
3338
You can create multiple account API tokens. This can be useful to have a more flexible control by revoking only a specific token.
3439

35-
![Creating an account API token](images/codacy-api-tokens-account.png)
40+
When you have tokens created, you can view them inside the tokens table. By hovering a token, you are able to copy its value.
41+
42+
![Creating an account API token modal](images/codacy-api-tokens-account-table.png)
3643

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"}`.
44+
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"}`.
3845

3946
## Generating and revoking repository API tokens {: id="repository-api-tokens"}
4047

73.6 KB
Loading
41.6 KB
Loading
79.5 KB
Loading

0 commit comments

Comments
 (0)