Retrieve a workflow by its ID.
Authorization
Required
Bearer <token>In: header
agent_id
Required
stringThe Workflow ID returned when the workflow was created.
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["UPSTAGE_API_KEY"],
base_url="https://api.upstage.ai/v2",
)
response = client.get("/agents/agt_example", cast_to=dict[str, object])
print(response)
{
"id": "agt_example",
"object": "agent",
"name": "Invoice processing",
"visibility": "private",
"default_config_id": null,
"expires_after": null,
"created_at": 1794873600,
"updated_at": 1794873600
}