Agent Control
Get agent graph
Retrieve a specific agent graph by its key, including its edges.
Authorization
ApiKey read, writeAuthorization<token>
In: header
Scope: read, write
Path Parameters
projectKey*string
graphKey*string
Header Parameters
LD-API-Version*"beta"
Version of the endpoint.
Value in
- "beta"
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v2/projects/string/agent-graphs/string" \ -H "LD-API-Version: beta"{ "createdAt": 0, "_maintainer": { "kind": "kind" }, "_access": { "allowed": [ { "reason": { "role_name": "role_name", "notActions": [ null, null ], "notResources": [ "notResources", "notResources" ], "effect": "allow", "resources": [ "proj/*:env/*;qa_*:/flag/*" ], "actions": [ "*" ] }, "action": "action" }, { "reason": { "role_name": "role_name", "notActions": [ null, null ], "notResources": [ "notResources", "notResources" ], "effect": "allow", "resources": [ "proj/*:env/*;qa_*:/flag/*" ], "actions": [ "*" ] }, "action": "action" } ], "denied": [ { "reason": { "role_name": "role_name", "notActions": [ null, null ], "notResources": [ "notResources", "notResources" ], "effect": "allow", "resources": [ "proj/*:env/*;qa_*:/flag/*" ], "actions": [ "*" ] }, "action": "action" }, { "reason": { "role_name": "role_name", "notActions": [ null, null ], "notResources": [ "notResources", "notResources" ], "effect": "allow", "resources": [ "proj/*:env/*;qa_*:/flag/*" ], "actions": [ "*" ] }, "action": "action" } ] }, "rootConfigKey": "rootConfigKey", "_site": { "href": "href", "type": "type" }, "name": "name", "edges": [ { "sourceConfig": "sourceConfig", "targetConfig": "targetConfig", "handoff": "{}", "key": "key" }, { "sourceConfig": "sourceConfig", "targetConfig": "targetConfig", "handoff": "{}", "key": "key" } ], "description": "description", "key": "key", "updatedAt": 6}Create new agent graph POST
Create a new agent graph within the given project.
Update agent graph PATCH
Edit an existing agent graph. The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields. If the update includes `rootConfigKey` or `edges`, both must be present and will be treated as full replacements.