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:3011';
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": "qsl-integration-test",
"instanceId": "local",
"lastSeen": 1782956903871,
"connectedSince": 1782956903870,
"worldId": "test-world",
"worldTitle": "Test World",
"foundryVersion": "14.363",
"systemId": "dnd5e",
"systemTitle": "Dungeons & Dragons Fifth Edition",
"systemVersion": "5.0.4",
"publicUrl": "http://foundry:30000",
"ipAddress": "172.24.0.3:37168",
"tokenName": "headless session 2026-07-02 01:48",
"isOnline": true
}
],
"total": 1
}