List the caller's live captured scopes, newest first
GET
/api/v1/kg/studio/scopes
const url = 'http://localhost:11044/api/v1/kg/studio/scopes';const options = {method: 'GET', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:11044/api/v1/kg/studio/scopes \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The scopes; an expired scope is already absent
Media typeapplication/json
The acting user’s live captured scopes, newest first.
object
scopes
required
The live scopes, newest first; an expired scope is absent.
Array<object>
A captured query scope: a frozen result set referenced in a later query as (x:$name).
object
capturedAt
required
When the membership froze, ISO-8601.
string
expiresAt
When the scope lapses, ISO-8601 — null means PINNED (kept until deleted).
string
members
required
How many members the capture froze. Membership is frozen; values stay live.
integer format: int64
name
required
The name the scope was captured under, unique per user; a later query binds it as (x:$name).
string
outputLabel
required
The node label later references bind with.
string
statement
required
The statement that produced the capture — the scope’s provenance.
string
Example generated
{ "scopes": [ { "capturedAt": "example", "expiresAt": "example", "members": 1, "name": "example", "outputLabel": "example", "statement": "example" } ]}Not authenticated
Media typeapplication/json
A refusal carrying only a human-readable reason.
object
error
required
What went wrong, in the terms the caller can act on.
string
Example generated
{ "error": "example"}
