Skip to content

Get Agent Config

GET/v5/agent_configs/{agent_config_id}

Fetch a single stored agent configuration by id, including its persistent_workspace flag and any repos override.

This returns the saved record as-is and does not compute task params; use {agent_config_id}/resolve when you need the config projected into the params a task would run with. A user caller can only read a config they created unless fine-grained access control grants access, while a service account can read any config under the account; a missing or out-of-scope id returns a 404.

Path ParametersExpand Collapse
agent_config_id: string
ReturnsExpand Collapse
id: string
allowed_tools: array of string
created_at: string
formatdate-time
harness: string
model: string
name: string
system_prompt: string
updated_at: string
formatdate-time
description: optional string
object: optional "agent_config"
persistent_workspace: optional boolean
repos: optional array of RepoSpec { url, depth, path }
url: string
maxLength2048
minLength1
depth: optional number
minimum1
path: optional string
maxLength1024

Get Agent Config

curl https://api.egp.scale.com/v5/agent_configs/$AGENT_CONFIG_ID \
    -H "x-api-key: $SGP_API_KEY"
{
  "id": "id",
  "allowed_tools": [
    "string"
  ],
  "created_at": "2019-12-27T18:11:19.117Z",
  "harness": "harness",
  "model": "model",
  "name": "name",
  "system_prompt": "system_prompt",
  "updated_at": "2019-12-27T18:11:19.117Z",
  "description": "description",
  "object": "agent_config",
  "persistent_workspace": true,
  "repos": [
    {
      "url": "x",
      "depth": 1,
      "path": "path"
    }
  ]
}
Returns Examples
{
  "id": "id",
  "allowed_tools": [
    "string"
  ],
  "created_at": "2019-12-27T18:11:19.117Z",
  "harness": "harness",
  "model": "model",
  "name": "name",
  "system_prompt": "system_prompt",
  "updated_at": "2019-12-27T18:11:19.117Z",
  "description": "description",
  "object": "agent_config",
  "persistent_workspace": true,
  "repos": [
    {
      "url": "x",
      "depth": 1,
      "path": "path"
    }
  ]
}