Skip to main content
GET
/
agent
/
{id}
/
workflow
Get agent workflow
curl --request GET \
  --url https://atoms-api.smallest.ai/api/v1/agent/{id}/workflow \
  --header 'Authorization: Bearer <token>'
{
  "status": true,
  "data": {
    "type": "workflow_graph",
    "data": {
      "nodes": [
        {
          "id": "<string>",
          "type": "<string>",
          "position": {
            "x": 123,
            "y": 123
          },
          "data": {}
        }
      ],
      "edges": [
        {
          "id": "<string>",
          "source": "<string>",
          "target": "<string>",
          "type": "<string>"
        }
      ]
    }
  }
}

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

Successful response

status
boolean
Example:

true

data
object

The workflow configuration with type and data structure

I