POST
/
tasks
curl --request POST \
  --url https://browser.ai/api/v1/tasks \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "task": "<string>",
  "geoLocation": {
    "country": "<string>",
    "city": "<string>",
    "zipcode": "<string>"
  },
  "project": "<string>",
  "inspect": true
}'
{
  "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>

Body

application/json
task
string
required

Your prompt.

geoLocation
object
required
project
string
required

Your project's name.

inspect
boolean
required

Set to 'true' to enable inspection mode.

Response

200
application/json
Task created successfully
executionId
string
scriptType
string
status
string
geoLocation
object
started
string | null
estimatedCompletion
string | null