Skip to content

Batch Input Clipboard Content ​

Batch input clipboard content to multiple cloud phones, each cloud phone can have different clipboard content. Cloud phones correspond to content by order.

Interface Address:

text
/papi/container/operate/batch/inputCommitText

Request Method:

text
POST

Content-Type:

text
application/json

Header Parameters:

ParameterTypeRequiredDescription
X-Access-KeystringYesAPI access key ID. See API Rules for authentication
X-SignaturestringYesSignature value, Base64-encoded HMAC-SHA256 result
X-TimestampstringYesMillisecond-level Unix timestamp (13 digits)
X-NoncestringYesRandom string, 10-32 lowercase letters and digits

Body Parameters:

ParameterTypeRequiredDescription
ctrIdListarray[string]YesContainer ID list
msgsarray[string]YesClipboard content list, one-to-one correspondence with ctrIdList

Request Example:

json
{
  "ctrIdList": [
    "639affbc4ef9a37f05442b6617e669abd04c5d8e284723d49f8bcc961dfa50f1"
  ],
  "msgs": [
    "hello world"
  ]
}

Response Parameters:

ParameterTypeDescription
codeintegerError code. See Error Codes
dataarray[object]Response data
├─ successbooleanWhether the operation succeeded
├─ taskIdstringTask ID of the operation
├─ dataobjectData
├─ msgstringMessage of the current operation
├─ ctrIdstringContainer CtrId
├─ ctrAliasstringContainer alias
├─ ctrSlotintegerCloud phone slot
msgstringError message

Response Example:

json
{
  "code": 0,
  "data": [
    {
      "success": true,
      "taskId": "",
      "data": {},
      "msg": "",
      "ctrId": "",
      "ctrAlias": "",
      "ctrSlot": 0
    }
  ],
  "msg": ""
}

OpenAPI Docs