Custom Tasks
FreshCustom tasks allow you to execute user-defined task flows on cloud phones.
Task Flow Query
URL: https://openapi.geelark.com/open/v1/task/flow/listMethod: POST
Request Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| page | Yes | integer | Page number |
| pageSize | Yes | integer | Page size (max 100) |
Response Fields (TaskFlow)
| Field | Type | Description |
|---|---|---|
| id | string | Task flow ID |
| name | string | Task flow name |
| params | array | Parameter definitions |
Create Custom Task
URL: https://openapi.geelark.com/open/v1/rpa/task/customMethod: POST
| Parameter | Required | Type | Description |
|---|---|---|---|
| name | No | string | Task name (max 128 chars) |
| remark | No | string | Remarks (max 200 chars) |
| scheduleAt | Yes | int | Scheduled time |
| id | Yes | string | Cloud phone ID |
| flowId | Yes | string | Task flow ID (from query) |
| paramMap | No | object | Task flow parameters |
Request Example
json
{
"name": "test",
"remark": "test remark",
"scheduleAt": 1741846843,
"id": "557536075321468390",
"flowId": "562316072435344885",
"paramMap": {
"Title": "video",
"Desc": "this is video",
"Video": ["https://material.geelark.cn/a.mp4"]
}
}Import Custom Task Flow
URL: https://openapi.geelark.com/open/v1/task/flow/importMethod: POST
Import a custom task flow definition.
Export Custom Task Flow
URL: https://openapi.geelark.com/open/v1/task/flow/exportMethod: POST
Export a custom task flow for backup or transfer.
| Parameter | Required | Type | Description |
|---|---|---|---|
| id | Yes | string | Task flow ID |
Multichannel Video Distribution
URL: https://openapi.geelark.com/open/v1/rpa/task/multiVideoMethod: POST
Distribute video content across multiple platforms simultaneously.
| Parameter | Required | Type | Description |
|---|---|---|---|
| scheduleAt | Yes | int | Scheduled time |
| id | Yes | string | Cloud phone ID |
| video | Yes | string | Video URL |
| platforms | Yes | array[string] | Target platforms |