GET
/
v1
/
sessions
/
{sessionId}
/
agent
/
files
JavaScript
import Anchorbrowser from 'anchorbrowser';

const client = new Anchorbrowser({
  apiKey: 'My API Key',
});

const files = await client.sessions.agent.files.list('550e8400-e29b-41d4-a716-446655440000');

console.log(files.data);
{
  "data": {
    "files": [
      {
        "name": "document.pdf",
        "size": 1024000,
        "type": ".pdf",
        "lastModified": "2024-01-01T12:00:00.000Z"
      }
    ]
  }
}

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Path Parameters

sessionId
string<uuid>
required

The browser session ID

Example:

"550e8400-e29b-41d4-a716-446655440000"

Response

200
application/json

Agent resources listed successfully

The response is of type object.