Migrations
Get the source connection
Read the migration’s live API source connection, or 404 if none is configured. Never returns secret values — creds_configured reports whether credentials are on file.
GET
/
migrations
/
{migration_id}
/
source-connection
Get the source connection
curl --request GET \
--url https://app.vern.so/api/v1/migrations/{migration_id}/source-connection \
--header 'x-api-key: <api-key>'import requests
url = "https://app.vern.so/api/v1/migrations/{migration_id}/source-connection"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://app.vern.so/api/v1/migrations/{migration_id}/source-connection', 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/migrations/{migration_id}/source-connection",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://app.vern.so/api/v1/migrations/{migration_id}/source-connection"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.vern.so/api/v1/migrations/{migration_id}/source-connection")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.vern.so/api/v1/migrations/{migration_id}/source-connection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"source_connection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"profile_id": "<string>",
"source_key": "<string>",
"name": "<string>",
"category": "<string>",
"config": {},
"selected_streams": [
"<string>"
],
"stream_state": {},
"creds_configured": true,
"bound_source_extractor_id": "<string>",
"last_snapshot": {},
"last_sync_at": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "Too many requests"
}Authorizations
Your Vern API key. Create one at Settings → API keys.
Path Parameters
The migration ID returned by Create a migration.
Query Parameters
Filter to a specific connector.
Profile to read; pass the literal workbook for the workbook-bound connection.
Response
The current source connection.
A migration's live API source connection. Never includes secret values; creds_configured reports whether credentials are stored.
Show child attributes
Show child attributes
⌘I
Get the source connection
curl --request GET \
--url https://app.vern.so/api/v1/migrations/{migration_id}/source-connection \
--header 'x-api-key: <api-key>'import requests
url = "https://app.vern.so/api/v1/migrations/{migration_id}/source-connection"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://app.vern.so/api/v1/migrations/{migration_id}/source-connection', 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/migrations/{migration_id}/source-connection",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://app.vern.so/api/v1/migrations/{migration_id}/source-connection"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.vern.so/api/v1/migrations/{migration_id}/source-connection")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.vern.so/api/v1/migrations/{migration_id}/source-connection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"source_connection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"profile_id": "<string>",
"source_key": "<string>",
"name": "<string>",
"category": "<string>",
"config": {},
"selected_streams": [
"<string>"
],
"stream_state": {},
"creds_configured": true,
"bound_source_extractor_id": "<string>",
"last_snapshot": {},
"last_sync_at": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "Too many requests"
}