Skip to main content
POST
/
tasks
/
{session_id}
/
instructions
Add instructions to a task
curl --request POST \
  --url https://browser.ai/api/v1/tasks/{session_id}/instructions \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "instructions": [
    {
      "action": "<string>",
      "type": "<string>"
    }
  ]
}'
{
  "executionId": "<string>",
  "scriptType": "<string>",
  "status": "<string>",
  "geoLocation": {
    "country": "<string>",
    "city": "<string>",
    "zipcode": "<string>"
  },
  "started": "2023-11-07T05:31:56Z",
  "estimatedCompletion": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Insert API token, use the format: apikey <API-TOKEN>.

Path Parameters

session_id
string
required

The ID of the task you want to add instructions to.

Body

application/json
instructions
object[]
required

Response

Instructions added successfully.

executionId
string
scriptType
string
status
string
geoLocation
object
started
string<date-time>
estimatedCompletion
string<date-time>