Get one agent role
GET
/agent-roles/{id}
const url = 'https://your-org.evershell.ai/v1/agent-roles/example';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/example \ --header 'Authorization: Bearer <token>'Permissions: any signed-in caller.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Responses
Section titled “ Responses ”OK
Media type application/json
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
{ "environment": "development", "thinking_effort": "high", "pool_policy": ""}Resource not found in the caller’s org
Media type application/json
object
error
required
object
code
required
Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)
string
message
required
Human-readable summary
string
request_id
required
Server-generated request id for correlating logs
string
details
Optional structured context. Validation errors land at
details.fields as a per-field map.
object
key
additional properties
any
Example
{ "error": { "code": "permission_denied", "message": "caller lacks required scope", "request_id": "7f3a9c2e" }}