List agent roles
GET
/agent-roles
const url = 'https://your-org.evershell.ai/v1/agent-roles';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://your-org.evershell.ai/v1/agent-roles \ --header 'Authorization: Bearer <token>'Permissions: any signed-in caller.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” include_archived
boolean
Responses
Section titled “ Responses ”OK
Media type application/json
object
agent_roles
Array<object>
object
id
required
string
org_id
string
name
required
string
display_name
string
description
string
provider_id
required
string
model
Optional override for provider’s default_model
string
capabilities
string
environment
string
environment_description
Free-text description of what the environment is — surfaced to the agent at task time so it knows what it’s running against.
string
task_timeout_seconds
integer
idle_timeout_seconds
integer
thinking_effort
string
max_continuations
integer
max_context_tokens
integer
pool_policy
string
pool_size
integer
pool_max_size
integer
pack_ids
Array<string>
created_at
string format: date-time
updated_at
string format: date-time
archived_at
string format: date-time
Example
{ "agent_roles": [ { "environment": "development", "thinking_effort": "high", "pool_policy": "" } ]}