API V2
API Reference
Lists a collection of active sessions.
1 min
code examples curl location 'https //api sandbox gameye gameye net/session' \\ \ header 'accept application/json' \\ \ header 'content type application/json'import requests import json url = "https //api sandbox gameye gameye net/session" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) var options = new restclientoptions("https //api sandbox gameye gameye net") { maxtimeout = 1, }; var client = new restclient(options); var request = new restrequest("/session", method get); request addheader("accept", "application/json"); request addheader("content type", "application/json"); restresponse response = await client executeasync(request); console writeline(response content);var request = require('request'); var options = { 'method' 'get', 'url' 'https //api sandbox gameye gameye net/session', 'headers' { 'accept' 'application/json', 'content type' 'application/json' } }; request(options, function (error, response) { if (error) throw new error(error); console log(response body); }); responses // successfully looked up all of the active sessions that are tied to your api token { "sessions" \[ { "id" "f7965a22 e327 4541 a30e 8262890d3a29", "image" "nginx", "tag" "latest", "location" "europe", "host" "a b c d", "created" 1648472895000, "port" "{\\"port\\" {\\"80/tcp\\" 49160}}", "status" "", "labels" "{\\"labels\\" {\\"env\\" \\"{\\\\\\"gameye session id\\\\\\" \\\\\\"c595bc6f 8522 4a62 95cd 8742136643ea\\\\\\",\\\\\\"gameye host\\\\\\" \\\\\\"a b c d\\\\\\"}\\",\\"tags\\" \\"{\\\\\\"my example tag\\\\\\" \\\\\\"1\\\\\\",\\\\\\"another example tag\\\\\\" \\\\\\"3\\\\\\"}\\"}}", "playercount" 0 } ] }// you are not authorized to fetch a list of active sessions please make sure that the included bearer token is correct { "statuscode" 0, "code" "", "message" "", "details" "", "path" "", "timestamp" "", "identifier" "", "violations" \[ { "field" "", "description" "" } ] }
