Skip to main content
POST
/
v1
/
browsers
/
{id}
/
type
Type
curl --request POST \
  --url https://api.example.com/v1/browsers/{id}/type/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "text": "<string>",
  "selector": "<string>"
}
'
{
  "success": true
}

Description

Types text into a focused or targeted input field on the current page.

Authentication

Authorization: Bearer YOUR_API_KEY

Path Parameters

id
string
required
UUID of the browser.

Request Body

text
string
required
The text to type.
selector
string
CSS selector of the input field to type into. If omitted, types into the currently focused element.

Response

success
boolean
Whether the text was typed successfully.

Example

curl -X POST https://api.rustybrowser.com/v1/browsers/550e8400-e29b-41d4-a716-446655440000/type/ \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "selector": "#search-input", "text": "rusty browser" }'