Agents
Get agent workflow
Retrieve the workflow configuration for a specific agent. The workflow contains nodes and edges that define the conversation flow and logic for the agent.
GET
/
agent
/
{id}
/
workflow
Copy
curl --request GET \
--url https://atoms-api.smallest.ai/api/v1/agent/{id}/workflow \
--header 'Authorization: Bearer <token>'
Copy
{
"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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The ID of the agent
Response
200
application/json
Successful response
The response is of type object
.
Copy
curl --request GET \
--url https://atoms-api.smallest.ai/api/v1/agent/{id}/workflow \
--header 'Authorization: Bearer <token>'
Copy
{
"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
}
}
]
}
}
Assistant
Responses are generated using AI and may contain mistakes.