Skip to main content
A session connects one computer to your org for a while. You create it with POST /v1/sessions, send its invite_url to the customer, and once their computer is connected you run tasks on it. Think of it as a call: it has one other party, a status, and a history of what happened. Sessions are for running tasks yourself, such as remote support on a customer’s computer (walkthrough). An agent in a conversation doesn’t need one from you: it uses its own cloud browser and linked computers.

Codes

Each session has a pairing code such as K7QM-24XP: two groups of four characters from A–Z and 2–9. The code is the session’s id: session_id and code are the same value, and it goes in URL paths like /v1/sessions/K7QM-24XP. Codes are not case-sensitive, and the dash is optional. A code is a short-lived invitation, not a secret credential for your API: everything in /v1 still needs your API key. Treat the invite link like any support link you send a customer.

Statuses

expires_at is when the code will expire if nothing else happens, or when it was expired. It is null while the computer is connected, and moves forward with each use (last_active_at). paired_at is when a computer first connected. To know when the computer connects, poll GET /v1/sessions/{session_id} or subscribe to the session.connected and session.disconnected webhooks.

One computer per code

The first computer that connects with a code owns it. Another computer trying the same code is refused with “This code is already paired with another device.” The same computer can reconnect as often as it needs to, for example after a restart. To help a second computer, create a second session, or disconnect the first one so the code can be entered on another. When connected, device describes the computer:
os is mac, windows, linux or unknown. The desktop app runs on macOS and Windows.

What the customer sees

  1. The invite page. Your agent’s greeting, then a guided download and install for their operating system. The page knows when the app on their computer has the code filled in.
  2. Permissions (macOS only). macOS needs Accessibility and Screen Recording for the Eager app. The app shows exactly which switches to turn on in System Settings. Windows needs no extra permissions.
  3. Connect. The invite link can fill in the code, but connecting always takes the customer’s own click.
  4. While a task runs. An always-on-top banner with a Stop button, and the agent’s own red pointer moving on their screen so they can see what it is doing. Unless the agent turns them off, the banner also shows the agent’s thoughts and steps as it works, and its questions and approval requests, which the customer can answer or decide right there. See what the customer sees and answers.
The customer can stop the agent at any time:
  • the Stop button on the banner, or
  • the shortcut ⌘ ⇧ Esc on macOS, Ctrl Alt Shift S on Windows.
The task then ends with status stopped and a stopped event whose message is “Stopped by the person at the computer.” Plan for this: the customer is always in control, and a stopped task is a normal outcome, not an error. The customer never needs an Eager account.

Cloud browsers

A session can run on a cloud browser instead of a customer’s computer: a Chromium that Eager runs, with nothing to install and nobody to invite. Make one with "computer": "browser" (and an optional start_url); it answers once the browser is connected, with no invite_url. Each conversation that runs a browser task has one of these sessions too. See Browsers and computers for how cloud browsers work: site rules, signing in for the agent with POST /v1/sessions/{session_id}/input, kept sign-ins, the idle close and the org’s limit of 2 open at once.

Metadata

metadata is your own key-value data (for example a ticket or customer id), returned as given on the session and in webhooks. Up to 50 keys; keys up to 40 characters; values must be strings up to 500 characters.

Who made it

created_by says who created the session: a person in the console ({ "type": "user", "email": "jane@acme.com" }) or an API key ({ "type": "api_key", "key_id", "name", "prefix" }). It’s null for sessions from before this was kept. Each task has its own created_by, since anyone in the org can start one.

Disconnecting and expiring

You can end a session’s connection yourself, from its page in the console (Computers → Sessions) or with the API. Both stop a running task, and both keep the session’s tasks and recordings.
  • POST /v1/sessions/{session_id}/disconnect lets go of the computer. The app tells the customer the team disconnected it and forgets the code, so it doesn’t reconnect on its own. The session stays usable: the customer can enter the code again (or open the invite link) to reconnect, and the session token keeps working.
  • POST /v1/sessions/{session_id}/expire ends the session now instead of after 72 hours. The code, the invite link and the session token stop working, and the computer is disconnected. Use it when a support call is over, or when a code or token was shared somewhere it shouldn’t have been.
Both return the session with its new status, and both are recorded in the audit log, with who did it. Expiring an expired session does nothing.

Listing and deleting

  • GET /v1/sessions lists sessions newest first, optionally filtered by agent_id. Each has computer (desktop or browser), task_count and latest_task_id. Conversations’ cloud browsers are listed; linked computers are under GET /v1/computers instead, and eval machines only with include_evals=true. See pagination.
  • DELETE /v1/sessions/{session_id} disconnects the computer, stops a running task, and deletes the session’s tasks, events and recordings for good. It needs the admin role or an API key.
Deleting a session can’t be undone. Its tasks, events and recordings are gone, including their replays in the console.