Record a step and check that the page shows what you expect
curl --request POST \
--url https://api.styne.ai/browsers/{id}/steps \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"verify": {},
"action_ref": "<string>",
"timeout": 123
}
'import requests
url = "https://api.styne.ai/browsers/{id}/steps"
payload = {
"name": "<string>",
"verify": {},
"action_ref": "<string>",
"timeout": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', verify: {}, action_ref: '<string>', timeout: 123})
};
fetch('https://api.styne.ai/browsers/{id}/steps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Record a step and check that the page shows what you expect
POST
/
browsers
/
{id}
/
steps
Record a step and check that the page shows what you expect
curl --request POST \
--url https://api.styne.ai/browsers/{id}/steps \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"verify": {},
"action_ref": "<string>",
"timeout": 123
}
'import requests
url = "https://api.styne.ai/browsers/{id}/steps"
payload = {
"name": "<string>",
"verify": {},
"action_ref": "<string>",
"timeout": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', verify: {}, action_ref: '<string>', timeout: 123})
};
fetch('https://api.styne.ai/browsers/{id}/steps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Authorizations
Body
application/json
Name the step and what must be true on the page after it.
Response
Success. The answer is described on https://docs.styne.ai/browsers.