Hướng dẫn AgentFlow

get_instance

GET/instances/{instance_id}

Through an installed app, a run is told only while it holds nothing: once a step has taken in or given out any input, output, variable, failure text or agent call the run has progressed, and its detail is refused (APP_CEILING_DENIED) rather than returned raw. What is told of a run that holds none has no frozen graph, forms, entity schemas, context, output or error, and its active tasks carry the workflow's static names. Files a run produced answer 404.

AuthorizationBearer <token>

A service principal's credential, or a person's access token, AgentFlow's own or an installed app's. A service principal's effective permissions are its role permissions intersected with the credential's scopes.

In: header

Path Parameters

instance_id*string

Instance id

Formatuuid

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "active_task_count": 0,  "app_pause": null,  "audit_event_count": 0,  "auth_blocked": null,  "completed_at": "2019-08-24T14:15:22Z",  "context": null,  "created_at": "2019-08-24T14:15:22Z",  "current_node_ids": [    "string"  ],  "definition_id": "91c1994f-b1db-4fef-840d-7d3ab2984871",  "error_message": "string",  "execution_principal": null,  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "input_payload": null,  "instance_token_budget_max": 0,  "is_draft_run": true,  "is_simulation": true,  "kill_switch_paused": true,  "last_rollback": null,  "lease_expires_at": "2019-08-24T14:15:22Z",  "lease_worker_id": "string",  "name": "string",  "next_wake_at": "2019-08-24T14:15:22Z",  "operator_pause": null,  "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",  "origin_installation_id": "276a7b35-ebc3-4e1a-b807-93b6296dea79",  "outcome_label": "string",  "output_payload": null,  "sim_parent_attempt_id": "49ed1a39-53f7-477c-b4e6-83397a19c280",  "sim_source_node_id": "string",  "snapshot_document_templates": null,  "snapshot_entity_schemas": null,  "snapshot_forms": null,  "snapshot_graph_json": null,  "snapshot_hash": "string",  "snapshot_input_schema": null,  "snapshot_output_schema": null,  "started_at": "2019-08-24T14:15:22Z",  "started_by": "03987f6a-4c27-4dc1-b6ab-c7e83bb3e713",  "starter": null,  "status": "running",  "subject": null,  "tokens_used": 0,  "updated_at": "2019-08-24T14:15:22Z",  "version_id": "9e94c502-ca41-4342-a7f7-af96b444512c",  "context_graph_capture_enabled": true,  "context_graph_query_enabled": true,  "for_each_children": [    {      "child_instance_id": "3f37b91c-808b-4681-aecc-9acf0c956c48",      "completed_at": "2019-08-24T14:15:22Z",      "error_message": "string",      "iteration_index": 0,      "name": "string",      "outcome_label": "string",      "parent_node_id": "string",      "started_at": "2019-08-24T14:15:22Z",      "status": "running"    }  ],  "group_hold": null,  "lineage": {    "cancelled": 0,    "completed": 0,    "failed": 0,    "total": 0  },  "loop_iterations": [    {      "created_at": "2019-08-24T14:15:22Z",      "iteration": 0,      "loop_id": "string",      "status": "string"    }  ],  "node_runs": [    {      "completed_at": "2019-08-24T14:15:22Z",      "error": "string",      "generation": 0,      "input": null,      "invocations": [        {          "attempt": 0,          "budget_exceeded": true,          "budget_tokens": 0,          "budget_tool_calls": 0,          "completed_at": "2019-08-24T14:15:22Z",          "events": null,          "failure_class": "string",          "failure_detail": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "inlined_sources": null,          "inputs": null,          "iterations": 0,          "max_iterations": 0,          "max_tokens": 0,          "messages": null,          "model": "string",          "model_display": "string",          "parsed_output": null,          "raw_output": "string",          "reasoning": null,          "rendered_prompt": "string",          "started_at": "2019-08-24T14:15:22Z",          "status": "string",          "stop_reason": "string",          "system_prompt": "string",          "temperature": 0,          "thinking": null,          "tokens_input": 0,          "tokens_output": 0,          "tokens_reasoning": 0,          "tool_call_count": 0,          "tool_calls": null,          "tools": null,          "verbosity": "string"        }      ],      "label": "string",      "loop_id": "string",      "node_id": "string",      "node_run_id": "e3061f90-6d53-4cca-9136-a6afa723ae3b",      "output": null,      "started_at": "2019-08-24T14:15:22Z",      "status": "claimed"    }  ],  "paused_lineage_count": 0,  "record_action_launch": null,  "signing_documents": [    {      "context_handle": "string",      "document_key": "string",      "filename": "string",      "node_id": "string",      "node_run_id": "e3061f90-6d53-4cca-9136-a6afa723ae3b",      "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",      "signed_at": "2019-08-24T14:15:22Z",      "signed_attachment_id": "c26bd3ff-31eb-4e99-bbf5-0b1750dc77e5",      "status": "string"    }  ],  "tasks": [    {      "claimed_by": "3d3d6561-fe9e-41f6-a4c0-112890b143c5",      "due_at": "2019-08-24T14:15:22Z",      "entity_id": "8161163a-f227-466f-bc01-090a01e80165",      "outcome": "string",      "record_id": "8bf519b6-a3e0-49d2-8e42-039542d9a489",      "status": "string",      "step_label": "string",      "title": "string",      "work_state": "string",      "workflow_name": "string"    }  ],  "timeline": [    {      "actor": {        "display_name": "string",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "kind": "user"      },      "actor_credential_id": "caac58f5-674e-4b0e-a733-0e421ccab2ee",      "actor_service_principal_id": "9b381fb5-7bc8-4ab0-a410-a6a4696ee842",      "event_type": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366",      "node_id": "string",      "occurred_at": "2019-08-24T14:15:22Z",      "payload": null    }  ],  "variables": null,  "workflow_name": "string",  "workflow_version_number": 0}