Every session of every install the tenant has: the directory, one owner per install, read with one query each.
GET
/console/sessions
const url = 'https://api.canopyhq.dev/console/sessions';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.canopyhq.dev/console/sessions \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The tenant’s sessions, each with its install.
Media typeapplication/json
Array<object>
One of the tenant’s sessions, the install it was opened under, and when it opened and ended, as the directory holds them.
object
archived
Unix milliseconds the session archived; absent while it is live.
integer | null format: int64
install
required
Opaque; never the key, never anything the vendor chose.
string
opened
required
Unix milliseconds the session opened.
integer format: int64
session
required
A stream id: 72 hex chars, the shard then the owner digest.
string
Example
[ { "session": "000000000000000000000000000000000000000000000000000000000000000000000000" }]No console token, or one that did not verify.