Skip to content

Commit 45d8dd1

Browse files
committed
fix: Add a paragraph about authentication to Actor Standby
1 parent 36c1e19 commit 45d8dd1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

sources/platform/actors/running/actor_standby.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Traditional Actors are designed to run a single job and then stop. They're mostl
1414
However, in some applications, waiting for an Actor to start is not an option. Actor Standby mode solves this problem by letting you have the Actor ready
1515
in the background, waiting for the incoming HTTP requests. In a sense, the Actor behaves like a real-time web server or standard API server.
1616

17-
## How do I know if Standby mode is enabled?
17+
## How do I know if Standby mode is enabled
1818

1919
You will know that the Actor is enabled for Standby mode if you see the **Standby** tab on the Actor's detail page.
2020
In the tab, you will find the hostname of the server, the description of the Actor's endpoints,
@@ -31,6 +31,14 @@ If you're using an Actor built by someone else, see its Information tab to find
3131

3232
Generally speaking, Actors in Standby mode behave as standard HTTP servers. You can use any of the existing [HTTP request methods](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods) like GET, POST, PUT, DELETE, etc. You can pass the input via [HTTP request query string](https://en.wikipedia.org/wiki/Query_string) or via [HTTP request body](https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages#body).
3333

34+
## How do I authenticate my requests
35+
36+
The authentication of requests to Actor Standby works the same as [with the Apify API](../../integrations/programming/api.md).
37+
To authenticate a request, add your [API token](../../integrations/programming/api.md#api-token) either:
38+
39+
- to your request's `Authorization` header as `Bearer <token>` (e.g. `Authorization: Bearer my_apify_token`). This is the recommended option, as it will prevent the token being logged in server logs.
40+
- as the `token` parameter to your request's URL (e.g. `https://rag-web-browser.apify.actor/search?query=apify&token=my_apify_token`). This is useful if you can't modify the request headers.
41+
3442
## Can I still run the Actor in normal mode
3543

3644
Yes, you can still modify the input and click the Start button to run the Actor in normal mode. However, note that the Standby Actor might

0 commit comments

Comments
 (0)