GET
/
v1
/
sessions
/
{session_id}
JavaScript
import Anchorbrowser from 'anchorbrowser';

const client = new Anchorbrowser({
  apiKey: 'sk-1jdfiaj0advpoaskdfpoks',
});

const session = await client.sessions.retrieve('session_id');

console.log(session.session_id);
{
  "session_id": "<string>",
  "team_id": "<string>",
  "duration": 123,
  "status": "<string>",
  "credits_used": 123,
  "configuration": {},
  "playground": true,
  "proxy_bytes": 123,
  "tokens": {},
  "steps": [
    {}
  ],
  "tags": {},
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Path Parameters

session_id
string
required

The ID of the session to retrieve.

Response

200
application/json

Session retrieved successfully.

The response is of type object.