3535
3636 1. **Discover inputs** using `GET /inputs`
3737 2. **Start execution** using `POST /kickoff`
38- 3. **Monitor progress** using `GET /status/ {kickoff_id}`
38+ 3. **Monitor progress** using `GET /{kickoff_id}/status `
3939 version : 1.0.0
4040 contact :
4141 name : CrewAI Support
6363 Use this endpoint to discover what inputs you need to provide when starting a crew execution.
6464 operationId : getRequiredInputs
6565 responses :
66- ' 200 ' :
66+ " 200 " :
6767 description : Successfully retrieved required inputs
6868 content :
6969 application/json :
@@ -84,13 +84,21 @@ paths:
8484 outreach_crew :
8585 summary : Outreach crew inputs
8686 value :
87- inputs : ["name", "title", "company", "industry", "our_product", "linkedin_url"]
88- ' 401 ' :
89- $ref : ' #/components/responses/UnauthorizedError'
90- ' 404 ' :
91- $ref : ' #/components/responses/NotFoundError'
92- ' 500 ' :
93- $ref : ' #/components/responses/ServerError'
87+ inputs :
88+ [
89+ " name" ,
90+ " title" ,
91+ " company" ,
92+ " industry" ,
93+ " our_product" ,
94+ " linkedin_url" ,
95+ ]
96+ " 401 " :
97+ $ref : " #/components/responses/UnauthorizedError"
98+ " 404 " :
99+ $ref : " #/components/responses/NotFoundError"
100+ " 500 " :
101+ $ref : " #/components/responses/ServerError"
94102
95103 /kickoff :
96104 post :
@@ -170,7 +178,7 @@ paths:
170178 taskWebhookUrl : " https://api.example.com/webhooks/task"
171179 crewWebhookUrl : " https://api.example.com/webhooks/crew"
172180 responses :
173- ' 200 ' :
181+ " 200 " :
174182 description : Crew execution started successfully
175183 content :
176184 application/json :
@@ -182,24 +190,24 @@ paths:
182190 format : uuid
183191 description : Unique identifier for tracking this execution
184192 example : " abcd1234-5678-90ef-ghij-klmnopqrstuv"
185- ' 400 ' :
193+ " 400 " :
186194 description : Invalid request body or missing required inputs
187195 content :
188196 application/json :
189197 schema :
190- $ref : ' #/components/schemas/Error'
191- ' 401 ' :
192- $ref : ' #/components/responses/UnauthorizedError'
193- ' 422 ' :
198+ $ref : " #/components/schemas/Error"
199+ " 401 " :
200+ $ref : " #/components/responses/UnauthorizedError"
201+ " 422 " :
194202 description : Validation error - ensure all required inputs are provided
195203 content :
196204 application/json :
197205 schema :
198- $ref : ' #/components/schemas/ValidationError'
199- ' 500 ' :
200- $ref : ' #/components/responses/ServerError'
206+ $ref : " #/components/schemas/ValidationError"
207+ " 500 " :
208+ $ref : " #/components/responses/ServerError"
201209
202- /status/ {kickoff_id} :
210+ /{kickoff_id}/status :
203211 get :
204212 summary : Get Execution Status
205213 description : |
@@ -222,15 +230,15 @@ paths:
222230 format : uuid
223231 example : " abcd1234-5678-90ef-ghij-klmnopqrstuv"
224232 responses :
225- ' 200 ' :
233+ " 200 " :
226234 description : Successfully retrieved execution status
227235 content :
228236 application/json :
229237 schema :
230238 oneOf :
231- - $ref : ' #/components/schemas/ExecutionRunning'
232- - $ref : ' #/components/schemas/ExecutionCompleted'
233- - $ref : ' #/components/schemas/ExecutionError'
239+ - $ref : " #/components/schemas/ExecutionRunning"
240+ - $ref : " #/components/schemas/ExecutionCompleted"
241+ - $ref : " #/components/schemas/ExecutionError"
234242 examples :
235243 running :
236244 summary : Execution in progress
@@ -262,19 +270,19 @@ paths:
262270 status : " error"
263271 error : " Task execution failed: Invalid API key for external service"
264272 execution_time : 23.1
265- ' 401 ' :
266- $ref : ' #/components/responses/UnauthorizedError'
267- ' 404 ' :
273+ " 401 " :
274+ $ref : " #/components/responses/UnauthorizedError"
275+ " 404 " :
268276 description : Kickoff ID not found
269277 content :
270278 application/json :
271279 schema :
272- $ref : ' #/components/schemas/Error'
280+ $ref : " #/components/schemas/Error"
273281 example :
274282 error : " Execution not found"
275283 message : " No execution found with ID: abcd1234-5678-90ef-ghij-klmnopqrstuv"
276- ' 500 ' :
277- $ref : ' #/components/responses/ServerError'
284+ " 500 " :
285+ $ref : " #/components/responses/ServerError"
278286
279287 /resume :
280288 post :
@@ -354,7 +362,7 @@ paths:
354362 taskWebhookUrl : " https://api.example.com/webhooks/task"
355363 crewWebhookUrl : " https://api.example.com/webhooks/crew"
356364 responses :
357- ' 200 ' :
365+ " 200 " :
358366 description : Execution resumed successfully
359367 content :
360368 application/json :
@@ -381,28 +389,28 @@ paths:
381389 value :
382390 status : " retrying"
383391 message : " Task will be retried with your feedback"
384- ' 400 ' :
392+ " 400 " :
385393 description : Invalid request body or execution not in pending state
386394 content :
387395 application/json :
388396 schema :
389- $ref : ' #/components/schemas/Error'
397+ $ref : " #/components/schemas/Error"
390398 example :
391399 error : " Invalid Request"
392400 message : " Execution is not in pending human input state"
393- ' 401 ' :
394- $ref : ' #/components/responses/UnauthorizedError'
395- ' 404 ' :
401+ " 401 " :
402+ $ref : " #/components/responses/UnauthorizedError"
403+ " 404 " :
396404 description : Execution ID or Task ID not found
397405 content :
398406 application/json :
399407 schema :
400- $ref : ' #/components/schemas/Error'
408+ $ref : " #/components/schemas/Error"
401409 example :
402410 error : " Not Found"
403411 message : " Execution ID not found"
404- ' 500 ' :
405- $ref : ' #/components/responses/ServerError'
412+ " 500 " :
413+ $ref : " #/components/responses/ServerError"
406414
407415components :
408416 securitySchemes :
@@ -458,7 +466,7 @@ components:
458466 tasks :
459467 type : array
460468 items :
461- $ref : ' #/components/schemas/TaskResult'
469+ $ref : " #/components/schemas/TaskResult"
462470 execution_time :
463471 type : number
464472 description : Total execution time in seconds
@@ -536,7 +544,7 @@ components:
536544 content :
537545 application/json :
538546 schema :
539- $ref : ' #/components/schemas/Error'
547+ $ref : " #/components/schemas/Error"
540548 example :
541549 error : " Unauthorized"
542550 message : " Invalid or missing bearer token"
@@ -546,7 +554,7 @@ components:
546554 content :
547555 application/json :
548556 schema :
549- $ref : ' #/components/schemas/Error'
557+ $ref : " #/components/schemas/Error"
550558 example :
551559 error : " Not Found"
552560 message : " The requested resource was not found"
@@ -556,7 +564,7 @@ components:
556564 content :
557565 application/json :
558566 schema :
559- $ref : ' #/components/schemas/Error'
567+ $ref : " #/components/schemas/Error"
560568 example :
561569 error : " Internal Server Error"
562570 message : " An unexpected error occurred"
0 commit comments