DeviceBrowserOperation
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{organization_id}/devices/{device_registration_id}/browser_operations/{id}/claim |
create |
The request to carry out |
POST |
/api/v1/organizations/{organization_id}/devices/{device_registration_id}/browser_operations/{id}/finish |
create |
Answer recorded |
GET |
/api/v1/organizations/{organization_id}/devices/{device_registration_id}/browser_operations |
list |
Waiting requests, oldest first |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
device_browser_operations, err := client.DeviceBrowserOperation(nil).List(map[string]any{"device_id": "example", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(device_browser_operations)
Lua
Construct client as shown in the Lua setup, then call the operations:
local device_browser_operations, err = client:DeviceBrowserOperation():list({ device_id = "example", organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$device_browser_operations = $client->DeviceBrowserOperation()->list(["device_id" => "example", "organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
device_browser_operations = client.DeviceBrowserOperation().list({"device_id": "example", "organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
device_browser_operations = client.DeviceBrowserOperation.list({ "device_id" => "example", "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const device_browser_operations = await client.DeviceBrowserOperation().list({ device_id: "example", organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
command |
string |
Yes | The in-app browser takes open through open_external; the person's own browser (arguments.browser user) takes open, tabs, share_tab, navigate, back, reload, screenshot, read, click, type, press, scroll and close. |
created_at |
string |
Yes | Created At |
id |
string |
Yes | Id |
create
POST /api/v1/organizations/{organization_id}/devices/{device_registration_id}/browser_operations/{id}/claim
Operation ID: deviceBrowserOperationClaim.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
device_registration_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: The request to carry out
application/json
| Property | Type | Required | Description |
|---|---|---|---|
agent |
object |
Yes | |
agent.id |
string |
Yes | |
agent.name |
string |
Yes | |
arguments |
object |
Yes | |
arguments.browser |
enum: user |
No | The person's own Chrome-family browser instead of Composal Desktop's in-app browser. |
arguments.direction |
enum: up, down |
No | |
arguments.key |
enum: Enter, Tab, Escape, Backspace, Delete, Space, ... |
No | |
arguments.match |
string |
No | Part of the address or title of a tab to ask the person to share. |
arguments.new_tab |
boolean |
No | |
arguments.ref |
string |
No | An element reference from read. |
arguments.tab_id |
string |
No | |
arguments.text |
string |
No | |
arguments.url |
string |
No | An http or https address, including localhost and 127.0.0.1. |
claim_token |
string |
Yes | |
command |
enum: open, tabs, navigate, back, reload, screenshot, ... |
Yes | The in-app browser takes open through open_external; the person's own browser (arguments.browser user) takes open, tabs, share_tab, navigate, back, reload, screenshot, read, click, type, press, scroll and close. |
conversation_id |
string |
Yes | |
expires_at |
string (date-time) |
Yes | |
id |
string |
Yes | |
user_browser_access |
enum: agent_tabs, all_tabs |
No | Present for the person's own browser. agent_tabs limits the agent to tabs it opened or the person shared. |
401: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
403: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
404: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
409: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
503: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
POST /api/v1/organizations/{organization_id}/devices/{device_registration_id}/browser_operations/{id}/finish
Operation ID: deviceBrowserOperationFinish.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
device_registration_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
claim_token |
string |
Yes | |
response |
object or object |
Yes |
Responses
200: Answer recorded
application/json
| Property | Type | Required | Description |
|---|---|---|---|
accepted |
boolean |
Yes |
400: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
401: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
403: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
404: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
409: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
422: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
503: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
list
GET /api/v1/organizations/{organization_id}/devices/{device_registration_id}/browser_operations
Operation ID: deviceBrowserOperationIndex.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
device_registration_id |
path |
string |
Yes |
Responses
200: Waiting requests, oldest first
application/json
| Property | Type | Required | Description |
|---|---|---|---|
operations |
array of object |
Yes | |
operations[].command |
enum: open, tabs, navigate, back, reload, screenshot, ... |
Yes | The in-app browser takes open through open_external; the person's own browser (arguments.browser user) takes open, tabs, share_tab, navigate, back, reload, screenshot, read, click, type, press, scroll and close. |
operations[].created_at |
string (date-time) |
Yes | |
operations[].id |
string |
Yes |
401: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
403: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
404: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
503: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |