Refine Skill
Refine a skill based on feedback.
POST
/
skills
/
{skill_id}
/
refine
Refine Skill
const options = {
method: 'POST',
headers: {'X-Browser-Use-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({feedback: '<string>', testOutput: '<string>', testLogs: '<string>'})
};
fetch('https://api.browser-use.com/api/v2/skills/{skill_id}/refine', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.browser-use.com/api/v2/skills/{skill_id}/refine \
--header 'Content-Type: application/json' \
--header 'X-Browser-Use-API-Key: <api-key>' \
--data '
{
"feedback": "<string>",
"testOutput": "<string>",
"testLogs": "<string>"
}
'import requests
url = "https://api.browser-use.com/api/v2/skills/{skill_id}/refine"
payload = {
"feedback": "<string>",
"testOutput": "<string>",
"testLogs": "<string>"
}
headers = {
"X-Browser-Use-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "Skill is not finished"
}{
"detail": "Skill not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Too many concurrent active sessions. Please wait for one to finish, kill one, or upgrade your plan."
}Authorizations
Path Parameters
Body
application/json
Response
Successful Response
Response after requesting skill refinement.
Unique identifier for the skill
Was this page helpful?
⌘I
Refine Skill
const options = {
method: 'POST',
headers: {'X-Browser-Use-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({feedback: '<string>', testOutput: '<string>', testLogs: '<string>'})
};
fetch('https://api.browser-use.com/api/v2/skills/{skill_id}/refine', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.browser-use.com/api/v2/skills/{skill_id}/refine \
--header 'Content-Type: application/json' \
--header 'X-Browser-Use-API-Key: <api-key>' \
--data '
{
"feedback": "<string>",
"testOutput": "<string>",
"testLogs": "<string>"
}
'import requests
url = "https://api.browser-use.com/api/v2/skills/{skill_id}/refine"
payload = {
"feedback": "<string>",
"testOutput": "<string>",
"testLogs": "<string>"
}
headers = {
"X-Browser-Use-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "Skill is not finished"
}{
"detail": "Skill not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Too many concurrent active sessions. Please wait for one to finish, kill one, or upgrade your plan."
}