-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathopenapi.json
More file actions
1617 lines (1617 loc) · 53.3 KB
/
Copy pathopenapi.json
File metadata and controls
1617 lines (1617 loc) · 53.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"openapi": "3.1.0",
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "BrowserAct API",
"version": "v2",
"description": "BrowserAct's API lets you run BrowserAct workflows programmatically and monitor their execution.\n\n**Core concepts (same as the Dashboard):**\n- **Workflow**: a reusable automation blueprint (the \"design\").\n- **Task**: a single execution record of a workflow (the \"run\").\n\n## Base URL\nAll requests use the following base URL:\n\n```\nhttps://api.browseract.com\n```\n\n## API versioning\nThe API is versioned in the URL path (for example, `/v2/...`).\n\n## Authentication\nAuthenticate with a Bearer token in the `Authorization` header:\n\n```\nAuthorization: Bearer <API_KEY>\n```\n\n## Requests\n- Send request bodies as JSON.\n- Set `Content-Type: application/json` for endpoints that accept a body.\n\n## Response codes\nWe use standard HTTP status codes:\n- `2xx` for successful requests\n- `4xx` for client-side errors (invalid parameters, missing auth, etc.)\n- `5xx` for server-side errors\n\n## Errors\nFor most error responses, the API returns a standard JSON envelope:\n- `code`: non-zero means an error\n- `msg`: human-readable error message\n- `traceId`: include this when contacting support\n\n## Pagination\nList endpoints use **page-based pagination** with these query parameters:\n- `page` (starts at 1)\n- `limit` (1-500)\n\nPaginated responses include: `page`, `limit`, `items`, `total_pages`, `total_count`.\n\n## Webhooks (optional)\nWhen creating a task, you can provide:\n- `callback_url`: called when a task **finishes**, **fails**, or is **canceled**.\n- `status_change_callback_url`: called whenever the task status changes (e.g. running -> paused -> running).\n\n## Task status values\n`created`, `running`, `finished`, `canceled`, `pausing`, `paused`, `failed`, `unknown`.\n\n## Rate limits\nTo protect platform stability, rate limits may apply. If you hit a limit, reduce request frequency and retry with backoff.\n\n## Need help?\nJoin our Discord community: https://discord.com/invite/UpnCKd7GaU\n",
"contact": {
"name": "BrowserAct Support",
"url": "https://discord.com/invite/UpnCKd7GaU"
}
},
"servers": [
{
"url": "https://api.browseract.com",
"description": "Production"
}
],
"tags": [
{
"name": "Tasks",
"description": "Create and manage **tasks** (executions).\n\nTypical flow:\n1) Start a task (`run-task` or `run-task-by-template`)\n2) Poll for status (`get-task-status`) or full details (`get-task`)\n3) Retrieve outputs from the task response once finished\n"
},
{
"name": "Workflows",
"description": "Workflows are reusable automation blueprints created in the BrowserAct Dashboard.\nUse these endpoints to list workflows and fetch a workflow's expected input parameters."
},
{
"name": "Workflow Templates",
"description": "Official workflow templates curated by BrowserAct.\nTemplates are a fast way to start with common scraping/automation use cases."
},
{
"name": "Regions",
"description": "Supported proxy regions that can be used when running template-based tasks."
}
],
"paths": {
"/v2/workflow/run-task": {
"post": {
"tags": [
"Tasks"
],
"summary": "Run a workflow (create a task)",
"description": "Starts a new task execution for a workflow and returns a `task_id`.\n\n### How it works\n1) Choose a workflow in the Dashboard and copy its `workflow_id`\n2) Provide any `input_parameters` required by the workflow\n3) Optionally enable `save_browser_data` to receive a `profile_id` that can be reused later\n\n### Webhooks\nYou can provide `callback_url` and/or `status_change_callback_url` to receive POST notifications.",
"operationId": "runTask",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RunWorkflowTaskRequest"
},
"examples": {
"basic": {
"summary": "Start a workflow task",
"value": {
"workflow_id": "wf_123456789",
"input_parameters": [
{
"name": "keyword",
"value": "laptops"
}
]
}
},
"withProfileAndWebhooks": {
"summary": "Save browser data and receive webhook callbacks",
"value": {
"workflow_id": "wf_123456789",
"input_parameters": [
{
"name": "keyword",
"value": "laptops"
}
],
"save_browser_data": true,
"callback_url": "https://your-server.com/webhooks/workflow-callback",
"status_change_callback_url": "https://your-server.com/webhooks/task-status-change-callback"
}
}
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TaskCreatedResponse"
},
"examples": {
"created": {
"value": {
"id": "task_123456789",
"profile_id": "profile_abc123"
}
}
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
}
}
}
},
"/v2/workflow/run-task-by-template": {
"post": {
"tags": [
"Tasks",
"Workflow Templates"
],
"summary": "Run an official workflow template (create a task)",
"description": "Starts a new task execution from an **official workflow template** and returns a `task_id`.\n\nUse `GET /v2/workflow/list-official-workflow-templates` to discover templates.",
"operationId": "runTemplateTask",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RunWorkflowTemplateTaskRequest"
},
"examples": {
"basic": {
"summary": "Run a template task",
"value": {
"proxyRegion": "US",
"workflow_template_id": "tpl_123456789",
"input_parameters": [
{
"name": "url",
"value": "https://example.com"
}
]
}
}
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TaskCreatedResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
}
}
}
},
"/v2/workflow/get-task-status": {
"get": {
"tags": [
"Tasks"
],
"summary": "Retrieve a task status",
"description": "Returns just the current status of a task.\n\nThis endpoint is more lightweight than `GET /v2/workflow/get-task`.",
"operationId": "getTaskStatus",
"parameters": [
{
"name": "task_id",
"in": "query",
"description": "Task ID returned by `run-task` or `run-task-by-template`.",
"required": true,
"schema": {
"type": "string",
"minLength": 1
},
"example": "task_123456789"
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TaskStatusResponse"
},
"examples": {
"running": {
"value": {
"status": "running"
}
}
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
}
}
}
},
"/v2/workflow/get-task": {
"get": {
"tags": [
"Tasks"
],
"summary": "Retrieve a task",
"description": "Returns comprehensive information about a task, including:\n- current `status`\n- step-level progress (`steps`)\n- output (if finished)\n- failure details (if failed)\n\nIf you only need the current status, use `GET /v2/workflow/get-task-status`.",
"operationId": "getTask",
"parameters": [
{
"name": "task_id",
"in": "query",
"description": "Task ID returned by `run-task` or `run-task-by-template`.",
"required": true,
"schema": {
"type": "string",
"minLength": 1
},
"example": "task_123456789"
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WorkflowTaskResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
}
}
}
},
"/v2/workflow/list-tasks": {
"get": {
"tags": [
"Tasks"
],
"summary": "List tasks",
"description": "Returns a paginated list of tasks (workflow executions).\n\n### Filtering\n- Use `status` to filter by task status.\n- Use `workflow_id` to only list tasks created from a specific workflow.\n\n### Pagination\nUse `page` and `limit`. The response includes `total_pages` and `total_count`.",
"operationId": "pageTasks",
"parameters": [
{
"name": "status",
"in": "query",
"description": "Filter tasks by status.",
"required": false,
"schema": {
"$ref": "#/components/schemas/TaskStatus"
},
"example": "running"
},
{
"name": "page",
"in": "query",
"description": "Page number to retrieve (starts at 1).",
"required": false,
"schema": {
"type": "integer",
"minimum": 1
},
"example": 1
},
{
"name": "limit",
"in": "query",
"description": "Number of tasks per page (max 500).",
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 500
},
"example": 50
},
{
"name": "workflow_id",
"in": "query",
"description": "Only return tasks created from this workflow ID.",
"required": false,
"schema": {
"type": "string"
},
"example": "wf_123456789"
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PageRespWorkflowTaskSimpleResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
}
}
}
},
"/v2/workflow/resume-task": {
"put": {
"tags": [
"Tasks"
],
"summary": "Resume a paused task",
"description": "Resumes execution of a previously paused task.\n\n- The task will continue from where it was paused.\n- You **can't** resume a task that is `finished`, `failed`, or `canceled`.",
"operationId": "resumeTask",
"parameters": [
{
"name": "task_id",
"in": "query",
"description": "The `task_id` to resume.",
"required": true,
"schema": {
"type": "string",
"minLength": 1
},
"example": "task_123456789"
}
],
"responses": {
"200": {
"description": "OK. The task was resumed (or was already running)."
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
}
}
}
},
"/v2/workflow/stop-task": {
"put": {
"tags": [
"Tasks"
],
"summary": "Cancel a running task",
"description": "Cancels a running task immediately.\n\n- Use this when you no longer need the result.\n- A canceled task **cannot** be resumed.\n\n**Tip:** If you only need to check progress, prefer `GET /v2/workflow/get-task-status`.",
"operationId": "stopTask",
"parameters": [
{
"name": "task_id",
"in": "query",
"description": "The `task_id` returned by `run-task` or `run-task-by-template`.",
"required": true,
"schema": {
"type": "string",
"minLength": 1
},
"example": "task_123456789"
},
{
"name": "biz_code",
"in": "query",
"description": "Optional business cancellation code (for your own tracking/analytics).",
"required": false,
"schema": {
"type": "integer",
"format": "int32"
},
"example": 1001
}
],
"responses": {
"200": {
"description": "OK. The task was canceled (or was already in a terminal state)."
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
}
}
}
},
"/v2/workflow/list-workflows": {
"get": {
"tags": [
"Workflows"
],
"summary": "List workflows",
"description": "Returns a paginated list of workflows in your workspace.\n\n### Pagination\nThis endpoint uses page-based pagination with `page` and `limit`.",
"operationId": "getWorkflowList",
"parameters": [
{
"name": "page",
"in": "query",
"description": "Page number to retrieve (starts at 1).",
"required": false,
"schema": {
"type": "integer",
"minimum": 1
},
"example": 1
},
{
"name": "limit",
"in": "query",
"description": "Number of workflows per page (max 500).",
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 500
},
"example": 20
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PageRespApiWorkflowDto"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
}
}
}
},
"/v2/workflow/get-workflow": {
"get": {
"tags": [
"Workflows"
],
"summary": "Retrieve a workflow",
"description": "Fetches a workflow's configuration, including the **input parameter definitions** needed to run it.\n\nIf you only need a list of workflows, use `GET /v2/workflow/list-workflows`.",
"operationId": "getWorkflowConfig",
"parameters": [
{
"name": "workflow_id",
"in": "query",
"description": "Workflow ID.",
"required": true,
"schema": {
"type": "string"
},
"example": "wf_123456789"
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiWorkflowConfigDto"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
}
}
}
},
"/v2/workflow/list-official-workflow-templates": {
"get": {
"tags": [
"Workflow Templates"
],
"summary": "List official workflow templates",
"description": "Returns BrowserAct's official workflow templates.\n\nUse `keyword` to search by name/description.",
"operationId": "getWorkflowTemplates",
"parameters": [
{
"name": "keyword",
"in": "query",
"description": "Search keyword (optional).",
"required": false,
"schema": {
"type": "string"
},
"example": "amazon"
},
{
"name": "page",
"in": "query",
"description": "Page number to retrieve (starts at 1).",
"required": false,
"schema": {
"type": "integer",
"minimum": 1
},
"example": 1
},
{
"name": "limit",
"in": "query",
"description": "Number of templates per page (max 500).",
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 500
},
"example": 20
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PageRespWorkflowTemplateDto"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
}
}
}
},
"/v2/workflow/get-official-workflow-template": {
"get": {
"tags": [
"Workflow Templates"
],
"summary": "Retrieve an official workflow template",
"description": "Fetches the configuration for an official workflow template, including input parameter definitions.",
"operationId": "getWorkflowTemplateConfig",
"parameters": [
{
"name": "workflow_template_id",
"in": "query",
"description": "Workflow template ID.",
"required": true,
"schema": {
"type": "string"
},
"example": "tpl_123456789"
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiWorkflowTemplateConfigDto"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
}
}
}
},
"/v2/workflow/get-region-list": {
"get": {
"tags": [
"Regions"
],
"summary": "List supported proxy regions",
"description": "Returns regions supported by BrowserAct.\n\nYou can pass a region code from this list as `proxyRegion` when running a template task.",
"operationId": "getRegionList",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SysRegionSimpleView"
}
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseData"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ResponseData": {
"type": "object",
"description": "Standard error response envelope.\n\nMost successful responses return the resource directly (without this envelope).\nWhen an error occurs, you can use `traceId` to help BrowserAct support locate the issue.",
"properties": {
"code": {
"type": "integer",
"format": "int32",
"description": "Response code. `0` means success; non-zero means failure.",
"example": 123
},
"msg": {
"type": "string",
"description": "Human-readable error message (present when `code` is non-zero).",
"example": "Invalid task_id"
},
"data": {
"description": "Error details (shape may vary by error).",
"type": "object",
"additionalProperties": true,
"example": {}
},
"ts": {
"type": "integer",
"format": "int64",
"description": "Server timestamp (milliseconds).",
"example": 1699335116000
},
"time": {
"type": "string",
"format": "date-time",
"description": "Server time in ISO 8601 format.",
"example": "2023-11-07T05:31:56Z"
},
"traceId": {
"type": "string",
"description": "Error ID for tracking in logs.",
"example": "b4bb01c1b2b14f11a6a2d7c1c8b0e3a1"
}
}
},
"InputParamItemDto": {
"type": "object",
"description": "A single workflow input parameter passed when starting a task.",
"properties": {
"name": {
"type": "string",
"description": "Parameter name (must match the workflow's input parameter definition).",
"example": "keyword"
},
"value": {
"type": "string",
"description": "Parameter value as a string.",
"example": "laptops"
}
}
},
"RunWorkflowTaskRequest": {
"type": "object",
"description": "Request body used to start a new task from a workflow.",
"properties": {
"workflow_id": {
"type": "string",
"minLength": 1,
"description": "The workflow ID to run.",
"example": "wf_123456789"
},
"input_parameters": {
"type": "array",
"description": "Input parameters for this run.",
"items": {
"$ref": "#/components/schemas/InputParamItemDto"
},
"example": [
{
"name": "keyword",
"value": "laptops"
}
]
},
"save_browser_data": {
"type": "boolean",
"description": "If `true`, the response will include a `profile_id`. You can reuse that `profile_id` in later runs to reuse browser data (e.g., cookies).",
"example": true
},
"profile_id": {
"type": "string",
"description": "Reuse browser data from a previous run (e.g., cookies) by providing a `profile_id`.",
"example": "profile_abc123"
},
"open_incognito_mode": {
"type": "boolean",
"deprecated": true,
"description": "Deprecated. No longer required.",
"example": false
},
"callback_url": {
"type": "string",
"description": "Optional. HTTP/HTTPS URL to receive a POST notification when the task **finishes**, **fails**, or is **canceled**. Maximum length: 2048 characters. Must be publicly reachable (no private/local addresses).",
"example": "https://your-server.com/webhooks/workflow-callback",
"maxLength": 2048
},
"status_change_callback_url": {
"type": "string",
"description": "Optional. HTTP/HTTPS URL to receive a POST notification whenever the task status changes (e.g., running, paused, finished, canceled, failed). Maximum length: 2048 characters. Must be publicly reachable (no private/local addresses).",
"example": "https://your-server.com/webhooks/task-status-change-callback",
"maxLength": 2048
}
},
"required": [
"workflow_id"
]
},
"TaskCreatedResponse": {
"type": "object",
"description": "Response returned after successfully creating a task.",
"properties": {
"id": {
"type": "string",
"description": "The unique `task_id`. Use it to poll status/results or to stop/resume the task.",
"example": "task_123456789"
},
"profile_id": {
"type": "string",
"description": "Returned only when `save_browser_data` is `true`. Use it to reuse browser data (e.g., cookies) in later runs.",
"example": "profile_abc123"
}
},
"required": [
"id"
]
},
"RunWorkflowTemplateTaskRequest": {
"type": "object",
"description": "Request body used to start a new task from an official workflow template.",
"properties": {
"proxyRegion": {
"type": "string",
"description": "Optional. Proxy region code. Defaults to `US`.",
"example": "US"
},
"workflow_template_id": {
"type": "string",
"description": "The official workflow template ID to run.",
"example": "tpl_123456789"
},
"input_parameters": {
"type": "array",
"description": "Input parameters for this run.",
"items": {
"$ref": "#/components/schemas/InputParamItemDto"
},
"example": [
{
"name": "url",
"value": "https://example.com"
}
]
},
"callback_url": {
"type": "string",
"description": "Optional. See `RunWorkflowTaskRequest.callback_url`.",
"example": "https://your-server.com/webhooks/workflow-callback",
"maxLength": 2048
},
"status_change_callback_url": {
"type": "string",
"description": "Optional. See `RunWorkflowTaskRequest.status_change_callback_url`.",
"example": "https://your-server.com/webhooks/task-status-change-callback",
"maxLength": 2048
}
},
"required": [
"workflow_template_id"
]
},
"ApiWorkflowDto": {
"type": "object",
"description": "Basic workflow information.",
"properties": {
"id": {
"type": "string",
"description": "Workflow ID",
"example": "wf_123456789"
},
"name": {
"type": "string",
"description": "Workflow name",
"example": "Price Monitor"
},
"description": {
"type": "string",
"description": "Workflow description",
"example": "Scrape product prices and export CSV."
},
"create_at": {