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
Copy file name to clipboardExpand all lines: sources/platform/actors/running/actor_standby.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Traditional Actors are designed to run a single job and then stop. They're mostl
14
14
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
15
15
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.
16
16
17
-
## How do I know if Standby mode is enabled?
17
+
## How do I know if Standby mode is enabled
18
18
19
19
You will know that the Actor is enabled for Standby mode if you see the **Standby** tab on the Actor's detail page.
20
20
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
31
31
32
32
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).
33
33
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
+
34
42
## Can I still run the Actor in normal mode
35
43
36
44
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