Improvements
List a skill's improvements
Every change to a skill, by anyone who can edit it, from the app, the API, or an assistant. Newest first.
GET
/
v1
/
skills
/
{slug}
/
improvements
List a skill's improvements
curl --request GET \
--url https://api.valendata.com/v1/skills/{slug}/improvements \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.valendata.com/v1/skills/{slug}/improvements"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.valendata.com/v1/skills/{slug}/improvements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.valendata.com/v1/skills/{slug}/improvements",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.valendata.com/v1/skills/{slug}/improvements"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.valendata.com/v1/skills/{slug}/improvements")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.valendata.com/v1/skills/{slug}/improvements")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"improvements": [
{
"improvement_id": "<string>",
"status": "<string>",
"status_url": "<string>",
"skill_id": "<string>",
"feedback": "<string>",
"slug": "<string>",
"mode": "fix",
"source": "api",
"result": "running",
"imported": false,
"started_by": "<string>",
"started_by_name": "<string>",
"details": {
"new_fields": [
"<string>"
],
"merged": [
{
"proposed": "<string>",
"into": "<string>",
"note": "<string>"
}
],
"ambiguous": [
{
"proposed": "<string>",
"question": "<string>",
"candidates": [
"<string>"
]
}
],
"diff_summary": "<string>",
"engine_note": "<string>",
"browser_type": "<string>"
},
"strategy": "<string>",
"target_fields": [
"<string>"
],
"diagnosis": {
"rows": 0,
"missing_fields": [
"<string>"
],
"partial_fields": [
"<string>"
],
"per_field": {},
"triage_kind": "<string>",
"what_we_tried": [
"<string>"
],
"suggested_hint_examples": [
"<string>"
],
"quality_flags": [
{
"kind": "<string>",
"severity": "warn",
"message": "",
"field": "<string>"
}
],
"error": "<string>",
"summary": ""
},
"diagnosis_after": {
"rows": 0,
"missing_fields": [
"<string>"
],
"partial_fields": [
"<string>"
],
"per_field": {},
"triage_kind": "<string>",
"what_we_tried": [
"<string>"
],
"suggested_hint_examples": [
"<string>"
],
"quality_flags": [
{
"kind": "<string>",
"severity": "warn",
"message": "",
"field": "<string>"
}
],
"error": "<string>",
"summary": ""
},
"fields_before": {},
"fields_after": {},
"changes": [
{
"field": "<string>",
"before": "<string>",
"after": "<string>",
"improved": false
}
],
"improved": true,
"recipe_version_before": 123,
"recipe_version": 123,
"candidate_version": 123,
"outcome": "<string>",
"error": "<string>",
"credits_charged": 0,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"idempotent_replay": false
}
],
"has_more": true,
"next_cursor": "<string>"
}{
"detail": "The request is malformed: the body is not JSON, the cursor or Idempotency-Key is not valid.",
"code": "invalid_json",
"type": "invalid_request_error",
"request_id": "3f9a1c2b7d4e"
}{
"detail": "The API key is missing, malformed, revoked, or expired.",
"code": "unauthorized",
"type": "authentication_error",
"request_id": "3f9a1c2b7d4e"
}{
"detail": "The key lacks a scope, is limited to other skills or workflows, or you may not do this.",
"code": "permission_denied",
"type": "permission_error",
"request_id": "3f9a1c2b7d4e"
}{
"detail": "It does not exist, or it is not yours to see.",
"code": "not_found",
"type": "invalid_request_error",
"request_id": "3f9a1c2b7d4e"
}{
"detail": "Invalid request — name: Field required",
"code": "validation_error",
"type": "invalid_request_error",
"request_id": "3f9a1c2b7d4e",
"param": "name",
"errors": [
{
"type": "missing",
"loc": [
"body",
"name"
],
"msg": "Field required"
}
]
}{
"detail": "Too many requests for this key, or too many runs in progress. Wait `Retry-After` seconds.",
"code": "rate_limited",
"type": "rate_limit_error",
"request_id": "3f9a1c2b7d4e"
}{
"detail": "Something broke on our side. Retry; runs that fail on our side are refunded.",
"code": "internal_error",
"type": "api_error",
"request_id": "3f9a1c2b7d4e"
}limit is 1–50 (default 5). source and started_by_name say where and who. Changes made before improvements existed are included with imported: true.Authorizations
ApiKeyAuthApiKeyHeader
API key with the vd_sk_ prefix, as Authorization: Bearer vd_sk_.... Create keys in Settings → API Keys.
Path Parameters
Query Parameters
Items per page, 1–100.
Required range:
1 <= x <= 100next_cursor of the previous page.
⌘I
List a skill's improvements
curl --request GET \
--url https://api.valendata.com/v1/skills/{slug}/improvements \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.valendata.com/v1/skills/{slug}/improvements"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.valendata.com/v1/skills/{slug}/improvements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.valendata.com/v1/skills/{slug}/improvements",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.valendata.com/v1/skills/{slug}/improvements"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.valendata.com/v1/skills/{slug}/improvements")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.valendata.com/v1/skills/{slug}/improvements")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"improvements": [
{
"improvement_id": "<string>",
"status": "<string>",
"status_url": "<string>",
"skill_id": "<string>",
"feedback": "<string>",
"slug": "<string>",
"mode": "fix",
"source": "api",
"result": "running",
"imported": false,
"started_by": "<string>",
"started_by_name": "<string>",
"details": {
"new_fields": [
"<string>"
],
"merged": [
{
"proposed": "<string>",
"into": "<string>",
"note": "<string>"
}
],
"ambiguous": [
{
"proposed": "<string>",
"question": "<string>",
"candidates": [
"<string>"
]
}
],
"diff_summary": "<string>",
"engine_note": "<string>",
"browser_type": "<string>"
},
"strategy": "<string>",
"target_fields": [
"<string>"
],
"diagnosis": {
"rows": 0,
"missing_fields": [
"<string>"
],
"partial_fields": [
"<string>"
],
"per_field": {},
"triage_kind": "<string>",
"what_we_tried": [
"<string>"
],
"suggested_hint_examples": [
"<string>"
],
"quality_flags": [
{
"kind": "<string>",
"severity": "warn",
"message": "",
"field": "<string>"
}
],
"error": "<string>",
"summary": ""
},
"diagnosis_after": {
"rows": 0,
"missing_fields": [
"<string>"
],
"partial_fields": [
"<string>"
],
"per_field": {},
"triage_kind": "<string>",
"what_we_tried": [
"<string>"
],
"suggested_hint_examples": [
"<string>"
],
"quality_flags": [
{
"kind": "<string>",
"severity": "warn",
"message": "",
"field": "<string>"
}
],
"error": "<string>",
"summary": ""
},
"fields_before": {},
"fields_after": {},
"changes": [
{
"field": "<string>",
"before": "<string>",
"after": "<string>",
"improved": false
}
],
"improved": true,
"recipe_version_before": 123,
"recipe_version": 123,
"candidate_version": 123,
"outcome": "<string>",
"error": "<string>",
"credits_charged": 0,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"idempotent_replay": false
}
],
"has_more": true,
"next_cursor": "<string>"
}{
"detail": "The request is malformed: the body is not JSON, the cursor or Idempotency-Key is not valid.",
"code": "invalid_json",
"type": "invalid_request_error",
"request_id": "3f9a1c2b7d4e"
}{
"detail": "The API key is missing, malformed, revoked, or expired.",
"code": "unauthorized",
"type": "authentication_error",
"request_id": "3f9a1c2b7d4e"
}{
"detail": "The key lacks a scope, is limited to other skills or workflows, or you may not do this.",
"code": "permission_denied",
"type": "permission_error",
"request_id": "3f9a1c2b7d4e"
}{
"detail": "It does not exist, or it is not yours to see.",
"code": "not_found",
"type": "invalid_request_error",
"request_id": "3f9a1c2b7d4e"
}{
"detail": "Invalid request — name: Field required",
"code": "validation_error",
"type": "invalid_request_error",
"request_id": "3f9a1c2b7d4e",
"param": "name",
"errors": [
{
"type": "missing",
"loc": [
"body",
"name"
],
"msg": "Field required"
}
]
}{
"detail": "Too many requests for this key, or too many runs in progress. Wait `Retry-After` seconds.",
"code": "rate_limited",
"type": "rate_limit_error",
"request_id": "3f9a1c2b7d4e"
}{
"detail": "Something broke on our side. Retry; runs that fail on our side are refunded.",
"code": "internal_error",
"type": "api_error",
"request_id": "3f9a1c2b7d4e"
}
