sessions_list
GET
/sessions
const url = 'https://api.canopyhq.dev/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/sessions \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”principal
string
Only the sessions filed under this principal; absent, every session of the install.
after
An opaque continuation from an owner’s directory.
string
The opaque continuation returned by the prior page.
limit
integer
Maximum rows to return; defaults to 50.
Responses
Section titled “Responses”One page of the install’s sessions, or one principal’s.
Media typeapplication/json
One bounded page from an install’s session directory.
object
items
required
Array<object>
A session’s directory row. subject is the filed subject digest.
object
archived
required
boolean
id
required
A stream id: 72 hex chars, the shard then the owner digest.
string
opened
required
string
subject
string | null
Example
{ "items": [ { "id": "000000000000000000000000000000000000000000000000000000000000000000000000" } ]}A query string that did not parse.
No install key, or one no install answers.