실행 정의를 이름으로 저장하고 POST /v1/runs로 시작합니다. 이 페이지의 모든 엔드포인트는 member 키와 admin 키로 사용할 수 있습니다. 저장된 필드와 덮어쓰기가 어떻게 결합되는지는 워크플로를 참고하세요.
워크플로 저장
/v1/workflows/{name}_, ., -를 최대 128자까지 쓸 수 있습니다.promptstring필수modelstringfilesarrayconnectionsobject{"ref": "<saved name>"} 항목을 권장합니다.descriptionstringinput_schemaobjectoutput_schemaobjecttimeout_secondsintegershellbooleantrue를 사용합니다.webboolean | objecttrue이거나 allow와 search를 가진 객체입니다. 생략하면 꺼짐입니다.워크플로에는 input, max_cost_micros, callback을 담을 수 없습니다. 이 값은 실행마다 지정합니다. 응답은 {"name": "investigate-payment"}입니다.
curl -X PUT $EPHEMERAL_URL/v1/workflows/investigate-payment \
-H "Authorization: Bearer $EPHEMERAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Find out why this payment failed. Follow the playbook.",
"model": "anthropic/claude-haiku-5.5",
"files": [{ "file": "playbook.md" }],
"connections": { "payments": { "ref": "payments-api", "allowed_methods": ["GET"] } },
"timeout_seconds": 120,
"shell": false
}'워크플로 시작
POST /v1/runs에 워크플로 이름과 이번 실행의 입력, 예산을 보냅니다. 함께 보내는 정의 필드는 이번 실행에 한해 저장된 값을 대체합니다. files와 connections는 컬렉션 전체를 교체합니다.
curl $EPHEMERAL_URL/v1/runs \
-H "Authorization: Bearer $EPHEMERAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"workflow":"investigate-payment","input":{"payment_id":"pay_123"},"max_cost_micros":500000}'워크플로가 없으면 요청이 400과 메시지 saved workflow not found로 실패합니다.
워크플로 목록
/v1/workflowsname이 있는 객체로 반환합니다. ?detail=true를 붙이면 description, input_schema, output_schema가 있는 워크플로는 그 값도 함께 포함됩니다. 전체 정의를 보려면 이름으로 워크플로를 조회하세요.[{ "name": "investigate-payment" }, { "name": "weekly-report" }]?detail=true를 붙이면 에이전트가 각 워크플로가 무엇을 기대하고 무엇을 반환하는지 확인할 수 있습니다.
[
{
"name": "weather",
"description": "Current weather for a city. Input is a city name.",
"input_schema": { "type": "object", "required": ["city"], "properties": { "city": { "type": "string" } } },
"output_schema": { "type": "object", "required": ["city", "temperature_c", "summary"] }
},
{ "name": "weekly-report" }
]워크플로 조회
/v1/workflows/{name}워크플로를 수정하려면 조회해서 변경한 뒤 PUT으로 다시 저장하세요. 응답에는 새 version이 담깁니다. 연결의 인증 유형이 그대로라면, 비워 둔 자격 증명 필드는 저장된 값을 유지합니다.
버전
정의를 바꾸는 저장은 모두 버전을 남기며, 최신 50개를 보관합니다. 저장하면 {"name": "...", "version": 3}를 반환합니다. 버전이 도입되기 전에 저장된 워크플로는 버전 1입니다.
/v1/workflows/{name}/versionslimit을 받습니다: {"name": "...", "items": [{ "version", "created_at", "current", "description", "model", "prompt_start" }]}./v1/workflows/{name}/versions/{version}version, created_at, current, description, model, 그리고 자격 증명이 없는 전체 definition./v1/workflows/{name}/versions/{version}/restore{"name": "...", "version": 4, "restored_from": 2}를 반환합니다. 중간 버전은 그대로 남습니다. 이미 시작된 실행은 영향을 받지 않으며, 스케줄은 다음 시작부터 이를 사용합니다.예제 워크플로
/v1/examples{"items": [{ "name", "definition", "try_input" }]}. example-summarize-page, example-chart-report, example-watch-page가 있습니다. 새 조직에는 이미 들어 있습니다./v1/examples{"names": [...]}로 일부만 지정할 수 있습니다. {"added": [...], "already_present": [...]}를 반환합니다. 이미 있는 워크플로는 절대 바뀌지 않습니다.워크플로 삭제
/v1/workflows/{name}204 No Content를 반환합니다. 이미 해당 워크플로를 사용한 실행에는 영향이 없습니다.