Initialize a Session
Before handling actions, you first need to create a session for your agent. You can do this by making a POST
request to the /session/start
endpoint.
Request
Request Headers
Authorization
:Bearer {API_KEY}
Content-Type
:application/json
Request Body
Here’s what your request body should look like:
agentId
: The unique ID of the agent you created.start_url
: The URL from which your agent should begin its browsing session.goal
: The overall goal of the agent during this session (e.g., browsing a website, collecting data, etc.).
Sample Response
sessionId
: Unique identifier for the session.status
: Confirmation that the session has started successfully.start_url
: URL the agent began browsing from.
Last updated