cURL
curl --request POST \ --url https://api-lr.agent.ai/v1/action/grab_web_screenshot \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "url": "https://agent.ai", "ttl_for_screenshot": 86400 } '
{ "status": 200, "response": "https://s3.us-east-2.amazonaws.com/asset-uploads.agent.ai/31d8f9c8-27ce-42bf-a38c-ce02784ab98c.png" }
Capture a visual screenshot of a specified web page for documentation or analysis.
Bearer token from your account (https://agent.ai/user/integrations#api)
URL of the web page to capture.
"https://agent.ai"
Cache expiration time for the screenshot in seconds.
3600
86400
604800
18144000
Screenshot of the web page
HTTP status code of the action response
Response data from the action