Catalog
Pin a source's recipe
Pin the recipe a source reuses as the starting point for future generate runs, so one customer’s run can’t drift the baseline others draw from. Pass run_id: null to unpin.
POST
/
sources
/
{source}
/
pin
Pin a source's recipe
curl --request POST \
--url https://app.vern.so/api/v1/sources/{source}/pin \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"run_id": "d4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8"
}
'import requests
url = "https://app.vern.so/api/v1/sources/{source}/pin"
payload = { "run_id": "d4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({run_id: 'd4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8'})
};
fetch('https://app.vern.so/api/v1/sources/{source}/pin', 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://app.vern.so/api/v1/sources/{source}/pin",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'run_id' => 'd4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.vern.so/api/v1/sources/{source}/pin"
payload := strings.NewReader("{\n \"run_id\": \"d4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.vern.so/api/v1/sources/{source}/pin")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"run_id\": \"d4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.vern.so/api/v1/sources/{source}/pin")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"run_id\": \"d4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8\"\n}"
response = http.request(request)
puts response.read_body{
"source": "Salesforce",
"pinned_recipe_run_id": "d4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "Too many requests"
}Authorizations
Your Vern API key. Create one at Settings → API keys.
Path Parameters
The source name (URL-encode spaces).
Body
application/json
The run whose recipe to pin, or null to unpin.
Previous
List templatesReturns the active templates in your account — the importable objects, each with its columns and validation rules. Templates are addressed by **slug**.
Next
⌘I
Pin a source's recipe
curl --request POST \
--url https://app.vern.so/api/v1/sources/{source}/pin \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"run_id": "d4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8"
}
'import requests
url = "https://app.vern.so/api/v1/sources/{source}/pin"
payload = { "run_id": "d4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({run_id: 'd4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8'})
};
fetch('https://app.vern.so/api/v1/sources/{source}/pin', 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://app.vern.so/api/v1/sources/{source}/pin",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'run_id' => 'd4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.vern.so/api/v1/sources/{source}/pin"
payload := strings.NewReader("{\n \"run_id\": \"d4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.vern.so/api/v1/sources/{source}/pin")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"run_id\": \"d4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.vern.so/api/v1/sources/{source}/pin")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"run_id\": \"d4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8\"\n}"
response = http.request(request)
puts response.read_body{
"source": "Salesforce",
"pinned_recipe_run_id": "d4c3b2a1-9f8e-47d6-b5a4-c3d2e1f0a9b8"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "Too many requests"
}