Agent Control

Get agent graph

GET
/api/v2/projects/{projectKey}/agent-graphs/{graphKey}

Retrieve a specific agent graph by its key, including its edges.

Authorization

ApiKey read, write
Authorization<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}