GET
/
agent
/
{id}
/
workflow
curl --request GET \
  --url https://atoms-api.smallest.ai/api/v1/agent/{id}/workflow \
  --header 'Authorization: Bearer <token>'
{
  "status": true,
  "data": {
    "nodes": [
      {
        "id": "<string>",
        "type": "<string>",
        "position": {
          "x": 123,
          "y": 123
        },
        "positionAbsolute": {
          "x": 123,
          "y": 123
        },
        "data": {
          "label": "<string>",
          "action": "<string>",
          "isStartNode": true,
          "staticText": true,
          "knowledgeBase": "<string>",
          "useGlobalKnowledgeBase": true,
          "isDisconnected": true,
          "type": "<string>",
          "variables": {
            "isEnabled": true,
            "data": [
              {
                "name": "<string>",
                "type": "<string>",
                "description": "<string>"
              }
            ]
          },
          "hasError": true,
          "validationErrors": [
            "<string>"
          ],
          "httpRequest": {},
          "responseData": {}
        },
        "width": 123,
        "height": 123,
        "selected": true,
        "dragging": true
      }
    ],
    "edges": [
      {
        "id": "<string>",
        "source": "<string>",
        "sourceHandle": "<string>",
        "target": "<string>",
        "targetHandle": "<string>",
        "type": "<string>",
        "label": "<string>",
        "description": "<string>",
        "selected": true,
        "animated": true,
        "markerEnd": {
          "type": "<string>",
          "width": 123,
          "height": 123
        },
        "data": {
          "label": "<string>",
          "description": "<string>",
          "is_conditional_edge": true
        }
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The ID of the agent

Response

200
application/json

Successful response

The response is of type object.