Skip to content

Commit ae67a8b

Browse files
authored
docs: update api tokens (#1641)
1 parent 2536d3d commit ae67a8b

File tree

6 files changed

+17
-0
lines changed

6 files changed

+17
-0
lines changed
Loading
Loading
Loading
Loading
Loading

sources/platform/integrations/programming/api.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,23 @@ You can authenticate the Apify API in two ways. You can either pass the token vi
3636
Note that some API endpoints, such as [Get list of keys](/api/v2#/reference/key-value-stores/key-collection/get-list-of-keys),
3737
do not require an authentication token because they contain a hard-to-guess identifier that effectively serves as an authentication key.
3838

39+
## Expiration
40+
41+
API tokens include security features to protect your account and data. You can set an expiration date for your API tokens, ensuring they become invalid after a specified period. This is particularly useful for temporary access or when working with third-party services.
42+
43+
![Creating token with expiration date in Apify Console](../images/api-token-expiration-date.png)
44+
45+
## Rotation
46+
47+
If you suspect that a token has been compromised or accidentally exposed, you can rotate it through the Apify Console. When rotating a token, you have the option to keep the old token active for 24 hours, allowing you to update your applications with the new token before the old one becomes invalid. After the rotation period, the token will be regenerated, and any applications connected to the old token will need to be updated with the new token to continue functioning.
48+
49+
![Rotate token in Apify Console](../images/api-token-rotate.png)
50+
51+
For better security awareness, the UI marks tokens identified as compromised, making it easy to identify and take action on them.
52+
53+
![Leaked token in Apify Console](../images/api-token-leaked.png)
54+
55+
3956
## Organization accounts
4057

4158
When working under an organization account, you will see two types of API tokens on the Integrations page.

0 commit comments

Comments
 (0)