Skip to main content

Clients

GET /clients

Get all connected clients for the authenticated API key

Returns a list of all currently connected Foundry VTT clients associated with the provided API key, including their connection details and world information.

Required scope: clients:read

Parameters

NameTypeRequiredSourceDescription
x-api-keystringheaderAPI key for authentication

Returns

array - Object containing total count and array of connected client details

Try It Out

Code Examples

const baseUrl = 'http://localhost:3010';
const path = '/clients';
const url = `${baseUrl}${path}`;

const response = await fetch(url, {
method: 'GET',
headers: {
'x-api-key': 'your-api-key-here'
}
});
const data = await response.json();
console.log(data);

Response

Status: 200

{
"clients": [
0: {
"clientId": "fvtt_099ad17ea199e7e3",
"instanceId": "local",
"lastSeen": 1778896411377,
"connectedSince": 1778896411375,
"worldId": "testing",
"worldTitle": "testing",
"foundryVersion": "13.348",
"systemId": "dnd5e",
"systemTitle": "Dungeons & Dragons Fifth Edition",
"systemVersion": "5.0.4",
"ipAddress": "[::1]:36100",
"tokenName": "headless session 2026-05-15 20:53",
"isOnline": true
}
],
"total": 1
}