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

POST https://api.assisfy.ai/session/start

Request Headers

  • Authorization: Bearer {API_KEY}

  • Content-Type: application/json

Request Body

Here’s what your request body should look like:

{
  "agentId": "{AgentID}",
  "start_url": "https://example.com",
  "goal": "Perform web browsing tasks"
}
  • 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": "session_12345",
  "status": "session_started",
  "start_url": "https://example.com"
}
  • sessionId: Unique identifier for the session.

  • status: Confirmation that the session has started successfully.

  • start_url: URL the agent began browsing from.

Last updated