Skip to content

Get one agent role

GET
/agent-roles/{id}
curl --request GET \
--url https://your-org.evershell.ai/v1/agent-roles/example \
--header 'Authorization: Bearer <token>'

Permissions: any signed-in caller.

id
required
string

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
default: development
Allowed values: development staging production
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
Allowed values: high medium low off
max_continuations
integer
max_context_tokens
integer
pool_policy
string
Allowed values: "" static dynamic
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"
}
}