Atomically redeem a ClientPairingEnvelope v1 code
curl --request POST \
--url https://api.kombify.io/v1/techstack/api/v1/client-pairing/redeem \
--header 'Content-Type: application/json' \
--data '
{
"version": "1",
"instance_id": "<string>",
"tls_fingerprint_sha256": "<string>",
"one_time_code": "<string>"
}
'import requests
url = "https://api.kombify.io/v1/techstack/api/v1/client-pairing/redeem"
payload = {
"version": "1",
"instance_id": "<string>",
"tls_fingerprint_sha256": "<string>",
"one_time_code": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
version: '1',
instance_id: '<string>',
tls_fingerprint_sha256: '<string>',
one_time_code: '<string>'
})
};
fetch('https://api.kombify.io/v1/techstack/api/v1/client-pairing/redeem', 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.kombify.io/v1/techstack/api/v1/client-pairing/redeem",
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([
'version' => '1',
'instance_id' => '<string>',
'tls_fingerprint_sha256' => '<string>',
'one_time_code' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://api.kombify.io/v1/techstack/api/v1/client-pairing/redeem"
payload := strings.NewReader("{\n \"version\": \"1\",\n \"instance_id\": \"<string>\",\n \"tls_fingerprint_sha256\": \"<string>\",\n \"one_time_code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.kombify.io/v1/techstack/api/v1/client-pairing/redeem")
.header("Content-Type", "application/json")
.body("{\n \"version\": \"1\",\n \"instance_id\": \"<string>\",\n \"tls_fingerprint_sha256\": \"<string>\",\n \"one_time_code\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kombify.io/v1/techstack/api/v1/client-pairing/redeem")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"version\": \"1\",\n \"instance_id\": \"<string>\",\n \"tls_fingerprint_sha256\": \"<string>\",\n \"one_time_code\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"version": "1",
"status": "redeemed",
"instance_id": "<string>",
"workspace_id": "<string>",
"account_handoff": {
"kind": "oidc",
"issuer": "<string>",
"client_id": "<string>",
"scopes": [
"<string>"
],
"flow": "authorization_code_pkce",
"audience": "<string>"
}
}{
"error_code": "<string>",
"reason_code": "<string>",
"retryable": true,
"user_guidance": {
"title": "<string>",
"body": "<string>",
"next_steps": [
"<string>"
]
}
}{
"error_code": "<string>",
"reason_code": "<string>",
"retryable": true,
"user_guidance": {
"title": "<string>",
"body": "<string>",
"next_steps": [
"<string>"
]
}
}{
"error_code": "<string>",
"reason_code": "<string>",
"retryable": true,
"user_guidance": {
"title": "<string>",
"body": "<string>",
"next_steps": [
"<string>"
]
}
}{
"error_code": "<string>",
"reason_code": "<string>",
"retryable": true,
"user_guidance": {
"title": "<string>",
"body": "<string>",
"next_steps": [
"<string>"
]
}
}Client Binding
Atomically redeem a ClientPairingEnvelope v1 code
The client verifies the HTTPS certificate fingerprint before sending this request. Success consumes the code exactly once and returns public metadata for the normal OIDC account flow; it never returns a session or duplicates the local owner identity.
POST
/
api
/
v1
/
client-pairing
/
redeem
Atomically redeem a ClientPairingEnvelope v1 code
curl --request POST \
--url https://api.kombify.io/v1/techstack/api/v1/client-pairing/redeem \
--header 'Content-Type: application/json' \
--data '
{
"version": "1",
"instance_id": "<string>",
"tls_fingerprint_sha256": "<string>",
"one_time_code": "<string>"
}
'import requests
url = "https://api.kombify.io/v1/techstack/api/v1/client-pairing/redeem"
payload = {
"version": "1",
"instance_id": "<string>",
"tls_fingerprint_sha256": "<string>",
"one_time_code": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
version: '1',
instance_id: '<string>',
tls_fingerprint_sha256: '<string>',
one_time_code: '<string>'
})
};
fetch('https://api.kombify.io/v1/techstack/api/v1/client-pairing/redeem', 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.kombify.io/v1/techstack/api/v1/client-pairing/redeem",
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([
'version' => '1',
'instance_id' => '<string>',
'tls_fingerprint_sha256' => '<string>',
'one_time_code' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://api.kombify.io/v1/techstack/api/v1/client-pairing/redeem"
payload := strings.NewReader("{\n \"version\": \"1\",\n \"instance_id\": \"<string>\",\n \"tls_fingerprint_sha256\": \"<string>\",\n \"one_time_code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.kombify.io/v1/techstack/api/v1/client-pairing/redeem")
.header("Content-Type", "application/json")
.body("{\n \"version\": \"1\",\n \"instance_id\": \"<string>\",\n \"tls_fingerprint_sha256\": \"<string>\",\n \"one_time_code\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kombify.io/v1/techstack/api/v1/client-pairing/redeem")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"version\": \"1\",\n \"instance_id\": \"<string>\",\n \"tls_fingerprint_sha256\": \"<string>\",\n \"one_time_code\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"version": "1",
"status": "redeemed",
"instance_id": "<string>",
"workspace_id": "<string>",
"account_handoff": {
"kind": "oidc",
"issuer": "<string>",
"client_id": "<string>",
"scopes": [
"<string>"
],
"flow": "authorization_code_pkce",
"audience": "<string>"
}
}{
"error_code": "<string>",
"reason_code": "<string>",
"retryable": true,
"user_guidance": {
"title": "<string>",
"body": "<string>",
"next_steps": [
"<string>"
]
}
}{
"error_code": "<string>",
"reason_code": "<string>",
"retryable": true,
"user_guidance": {
"title": "<string>",
"body": "<string>",
"next_steps": [
"<string>"
]
}
}{
"error_code": "<string>",
"reason_code": "<string>",
"retryable": true,
"user_guidance": {
"title": "<string>",
"body": "<string>",
"next_steps": [
"<string>"
]
}
}{
"error_code": "<string>",
"reason_code": "<string>",
"retryable": true,
"user_guidance": {
"title": "<string>",
"body": "<string>",
"next_steps": [
"<string>"
]
}
}बॉडी
application/json
