Skip to main content
POST
/
api
/
v1
/
screenshots
/
capture
Capture Screenshot Endpoint
curl --request POST \
  --url https://api.example.com/api/v1/screenshots/capture \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "viewport_width": 1200,
  "viewport_height": 630,
  "selector": "<string>",
  "delay_ms": 1000
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.aitasker.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string
required
viewport_width
integer
default:1200
viewport_height
integer
default:630
selector
string | null
delay_ms
integer
default:1000

Response

Successful Response