List operators, including inactive operators
GET
const url = 'https://optlo.com/api/v1/operators?limit=50';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://optlo.com/api/v1/operators?limit=50' \ --header 'Authorization: Bearer <token>'Requires operators:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
integer
Maximum number of resources to return on one page.
cursor
string
Opaque cursor from the preceding page. Bound to workspace, resource and filters; survives key rotation.
Response
Section titled “Response”Success
Media typeapplication/json
Show child attributes
data
required
Resources on this page.
array of dictionaries
Show child attributes
id
required
Unique identifier for the assistant or operator.
string
name
required
Display name shown to users.
string
avatarUrl
required
URL of the avatar image.
nullable string
active
required
Whether the operator is an active member of this workspace.
boolean
nextCursor
required
Pass this cursor to retrieve the next page. Null when no further page is available. When polling events in ascending order, retain the cursor even on empty pages.
nullable string
Example
{ "data": [ { "id": "acc_tQ8nL4zR6mB2xP7k", "name": "Alex Chen", "avatarUrl": null, "active": true } ], "nextCursor": null}