You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1d1caa5
Browse filesBrowse the repository at this point in the historyBrowse files
Apify Console now shows the value of an API token only once, right after
you create or rotate it. Existing tokens can't be viewed or copied from
the token list.
## Changes
- **API integration page**: explains the show-once behavior, adds a
**Create an API token** procedure (`#create-api-token`), covers what to
do when a token is lost, notes that `apify login` creates its own token,
and notes that rotation shows the new token only once.
- **Account settings**: the **API & Integrations** section mentions that
a token is shown only once.
- **Organization accounts**: members can't see the value of their
assigned token, so the page points them to creating or rotating one.
- **API reference**: the OpenAPI Authentication intro and the
`httpBearer` and `apiKey` security scheme descriptions say to create a
token instead of finding an existing one.
Updating the integration and tutorial pages that tell readers to copy
their token from Console is in a follow-up PR stacked on this one.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: apify-api/openapi/components/securitySchemes/apiKey.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ in: query
4
4
description: |-
5
5
API token provided as a query parameter (e.g., `?token=your_token`—less secure).
6
6
7
-
Use your API token to authenticate requests. You can find it on the [Integrations page](https://console.apify.com/account#/integrations) in Apify Console.
7
+
Use your API token to authenticate requests. You can create one on the [Integrations page](https://console.apify.com/settings/integrations) in Apify Console. The Console shows the token only once, right after you create or rotate it, so copy it and store it somewhere safe.
Copy file name to clipboardExpand all lines: apify-api/openapi/components/securitySchemes/httpBearer.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ scheme: bearer
3
3
description: |-
4
4
Bearer token provided in the `Authorization` header (e.g., `Authorization: Bearer your_token`—recommended). For details, see the [`Authorization` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization) on MDN.
5
5
6
-
Use your API token to authenticate requests. You can find it on the [Integrations page](https://console.apify.com/account#/integrations) in Apify Console. This method is more secure than query parameters, as headers are not logged in browser history or server logs.
6
+
Use your API token to authenticate requests. You can create one on the [Integrations page](https://console.apify.com/settings/integrations) in Apify Console. The Console shows the token only once, right after you create or rotate it, so copy it and store it somewhere safe. This method is more secure than query parameters, as headers are not logged in browser history or server logs.
Copy file name to clipboardExpand all lines: sources/platform/account/collaboration/organization/how_to_use.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,13 +40,11 @@ The organization, its Actors, and its integrations will keep running as they are
40
40
41
41
While you cannot manage an organization account's settings and members via API, you can access its Actor and task runs, webhooks, schedules, and storages just as you would with any other account.
42
42
43
-
As a member of an organization, you are assigned an [API token](/integrations) (under the **API & Integrations** tab) and proxy password (click the **Proxy** button in the left menu) for accessing the Apify platform via REST API.
43
+
As a member of an organization, you are assigned an [API token](/integrations/api) (under the **API & Integrations** tab) and proxy password (select the **Proxy** button in the left menu) for accessing the Apify platform via REST API. Apify Console doesn't show the value of an existing token, so to use the API, [create a new token](/integrations/api#create-api-token) or [rotate](/integrations/api#rotation) the assigned one and copy it.
The API tokens' functionality reflects your account's permissions in the organization, so if you only have the **read** and **run** permissions for Actors, you will only be able to view and run Actors via API. Only you can view your API token and password.
48
-
49
-
> Do not share your API token or password with untrusted parties.
47
+
The API tokens' functionality reflects your account's permissions in the organization, so if you only have the **read** and **run** permissions for Actors, you will only be able to view and run Actors via API. Only you can view your proxy password. Do not share your API token or proxy password with untrusted parties.
50
48
51
49
If you have the **manage organization access keys** permission, you are able to view and use organization-wide API tokens. These are shared across the organization, so everyone with the **manage organization access keys** permission can use them for organization-wide integrations.
Copy file name to clipboardExpand all lines: sources/platform/account/settings/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ In the **Session** section, you can adjust the session configuration. You can mo
42
42
43
43
## API & Integrations
44
44
45
-
The **API & Integrations** tab provides essential tools for accessing the Apify platform programmatically. Here, you can manage your **API tokens**, which are necessary for using the [Apify API](https://docs.apify.com/api/v2). The tab also shows **third-party apps and services** connected to your account, **account-level integrations**, and **Actor OAuth accounts**. For detailed guidance on utilizing these integrations, refer to the [Integrations documentation](https://docs.apify.com/integrations).
45
+
The **API & Integrations** tab provides essential tools for accessing the Apify platform programmatically. Here, you can manage your **API tokens**, which are necessary for using the [Apify API](https://docs.apify.com/api/v2). Apify Console shows a token's value only once, right after you create or rotate it, so copy it and store it somewhere safe. For details, see [Create an API token](/integrations/api#create-api-token). The tab also shows **third-party apps and services** connected to your account, **account-level integrations**, and **Actor OAuth accounts**. For detailed guidance on utilizing these integrations, refer to the [Integrations documentation](https://docs.apify.com/integrations).
Copy file name to clipboardExpand all lines: sources/platform/integrations/programming/api.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,15 +15,30 @@ You are not required to those packages - the REST API works with any HTTP client
15
15
16
16
## API token
17
17
18
-
To access the Apify API in your integrations, you need to authenticate using your secret API token. You can find it on the [API & Integrations](https://console.apify.com/settings/integrations) page in Apify Console. Give your token a reasonable description, and never use one token for several services, much like you shouldn't use the same password for different accounts.
18
+
To access the Apify API in your integrations, you need to authenticate using your secret API token. You manage your tokens on the [API & Integrations](https://console.apify.com/settings/integrations) page in Apify Console. Give each token a reasonable description, and never use one token for several services, much like you shouldn't use the same password for different accounts.
19
19
20
20

21
21
22
+
Apify Console shows the value of an API token only once, right after you create or [rotate](#rotation) it. The token list shows each token's description, but you can't view or copy the value of an existing token.
23
+
24
+
The Apify CLI doesn't need a copied token. When you sign in with [`apify login`](/cli/docs/reference#apify-auth-login--apify-login) in the browser, it creates a token for your device and stores it for you.
25
+
22
26
:::caution Protect your API token
23
27
Do not share the API token with untrusted parties, or use it directly from client-side code,
24
28
unless you fully understand the consequences! You can also consider [limiting the permission scope](#limited-permissions) of the token, so that it can only access what it really needs.
25
29
:::
26
30
31
+
### Create an API token {#create-api-token}
32
+
33
+
1. Go to [**Settings > API & Integrations**](https://console.apify.com/settings/integrations) in Apify Console.
34
+
1. In the **Personal API tokens** section, select **Create a new token**.
35
+
1. Enter a description. Optionally, [limit the token's permissions](#limited-permissions) or [set an expiration date](#expiration).
36
+
1. Select **Create**.
37
+
1. Copy the token and store it somewhere safe, such as a password manager.
38
+
1. Select **Done**.
39
+
40
+
If you lose a token, [rotate it](#rotation) to get a new value, or create a new token and delete the old one.
41
+
27
42
## Authentication
28
43
29
44
You can authenticate the Apify API in two ways. You can either pass the token via the `Authorization` HTTP header or the URL `token` query parameter. We always recommend you use the authentication via the HTTP header as this method is more secure.
@@ -43,6 +58,8 @@ If you suspect that a token has been compromised or accidentally exposed, you ca
43
58
44
59

45
60
61
+
After you confirm the rotation, Apify Console shows the new token. This is the only time you can copy it, so store it somewhere safe.
62
+
46
63
For better security awareness, the UI marks tokens identified as compromised, making it easy to identify and take action on them.
47
64
48
65

0 commit comments