Skip to main content
POST
/
v1
/
task
Create Task (Legacy)
curl --request POST \
  --url https://api.anchorbrowser.io/v1/task \
  --header 'Content-Type: application/json' \
  --header 'anchor-api-key: <api-key>' \
  --data '
{
  "name": "web-scraper",
  "language": "typescript"
}
'
{}

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Body

application/json
name
string
required

Task name (letters, numbers, hyphens, and underscores only)

Required string length: 1 - 255
Pattern: ^[a-zA-Z0-9_-]+$
language
enum<string>
required

Programming language for the task

Available options:
typescript
code
string

Base64 encoded task code (optional)

Pattern: ^[A-Za-z0-9+/]*={0,2}$
description
string

Optional description of the task

Maximum string length: 1000
browserConfiguration
object

Browser configuration for task execution

Response

Task created or updated successfully

data
object