List Scopes
GET
/v1/scopes
const url = 'https://agents.lumalabs.ai/v1/scopes?limit=25';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://agents.lumalabs.ai/v1/scopes?limit=25' \ --header 'Authorization: Bearer <token>'Keyset-paginated list of scopes visible to this tenant, newest first.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Responses
Section titled “ Responses ”Successful Response
Media typeapplication/json
ListScopesResponse
Keyset-paginated scope list (GET /v1/scopes).
No total count: a partner with many workspaces shouldn't pay for a
count() per page. next_cursor is opaque — pass it back unchanged.
object
data
required
Data
Array<object>
ScopeResponseobject
client_id
required
Client Id
string
created_at
required
Created At
string format: date-time
replayed
Replayed
True when a create re-posted an existing key and this is the scope that key already names.
boolean
scope_id
required
Scope Id
UUID identifying this scope. Pass as scope_id when creating sessions.
string
state
required
State
string
has_more
required
Has More
boolean
Example
{ "data": [ { "replayed": false } ]}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}