Match Score
curl --request POST \
--url https://api.autosnap.com/v2/match-score \
--header 'Content-Type: application/json' \
--data '
{
"api_key": "<string>",
"intent": "<string>",
"vins": [
"<string>"
],
"dealership_id": 123,
"price_min": 123,
"price_max": 123
}
'import requests
url = "https://api.autosnap.com/v2/match-score"
payload = {
"api_key": "<string>",
"intent": "<string>",
"vins": ["<string>"],
"dealership_id": 123,
"price_min": 123,
"price_max": 123
}
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({
api_key: '<string>',
intent: '<string>',
vins: ['<string>'],
dealership_id: 123,
price_min: 123,
price_max: 123
})
};
fetch('https://api.autosnap.com/v2/match-score', 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.autosnap.com/v2/match-score",
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([
'api_key' => '<string>',
'intent' => '<string>',
'vins' => [
'<string>'
],
'dealership_id' => 123,
'price_min' => 123,
'price_max' => 123
]),
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.autosnap.com/v2/match-score"
payload := strings.NewReader("{\n \"api_key\": \"<string>\",\n \"intent\": \"<string>\",\n \"vins\": [\n \"<string>\"\n ],\n \"dealership_id\": 123,\n \"price_min\": 123,\n \"price_max\": 123\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.autosnap.com/v2/match-score")
.header("Content-Type", "application/json")
.body("{\n \"api_key\": \"<string>\",\n \"intent\": \"<string>\",\n \"vins\": [\n \"<string>\"\n ],\n \"dealership_id\": 123,\n \"price_min\": 123,\n \"price_max\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.autosnap.com/v2/match-score")
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 \"api_key\": \"<string>\",\n \"intent\": \"<string>\",\n \"vins\": [\n \"<string>\"\n ],\n \"dealership_id\": 123,\n \"price_min\": 123,\n \"price_max\": 123\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Semantic Search
Score Vehicles Against an Intent
Score an LLM-supplied shopper intent against a caller-supplied list of VINs using each vehicle’s already-stored internal service vector — no re-embedding of vehicles. One embedding call (the intent), one internal service retrieve, cosine similarity in Python.
Scores are in the natural-language low range (~0.2–0.4), NOT the 0.9+ of /similar (which compares two rich vehicle vectors). That’s expected: short intent vs full vehicle vector. Do not normalize or inflate.
POST
/
v2
/
match-score
Match Score
curl --request POST \
--url https://api.autosnap.com/v2/match-score \
--header 'Content-Type: application/json' \
--data '
{
"api_key": "<string>",
"intent": "<string>",
"vins": [
"<string>"
],
"dealership_id": 123,
"price_min": 123,
"price_max": 123
}
'import requests
url = "https://api.autosnap.com/v2/match-score"
payload = {
"api_key": "<string>",
"intent": "<string>",
"vins": ["<string>"],
"dealership_id": 123,
"price_min": 123,
"price_max": 123
}
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({
api_key: '<string>',
intent: '<string>',
vins: ['<string>'],
dealership_id: 123,
price_min: 123,
price_max: 123
})
};
fetch('https://api.autosnap.com/v2/match-score', 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.autosnap.com/v2/match-score",
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([
'api_key' => '<string>',
'intent' => '<string>',
'vins' => [
'<string>'
],
'dealership_id' => 123,
'price_min' => 123,
'price_max' => 123
]),
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.autosnap.com/v2/match-score"
payload := strings.NewReader("{\n \"api_key\": \"<string>\",\n \"intent\": \"<string>\",\n \"vins\": [\n \"<string>\"\n ],\n \"dealership_id\": 123,\n \"price_min\": 123,\n \"price_max\": 123\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.autosnap.com/v2/match-score")
.header("Content-Type", "application/json")
.body("{\n \"api_key\": \"<string>\",\n \"intent\": \"<string>\",\n \"vins\": [\n \"<string>\"\n ],\n \"dealership_id\": 123,\n \"price_min\": 123,\n \"price_max\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.autosnap.com/v2/match-score")
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 \"api_key\": \"<string>\",\n \"intent\": \"<string>\",\n \"vins\": [\n \"<string>\"\n ],\n \"dealership_id\": 123,\n \"price_min\": 123,\n \"price_max\": 123\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Takes a shopper intent (a question or short description) and a caller-supplied list of VINs. Returns each VIN’s match score against the intent, an
in_stock flag, and an optional price_fit against price_min / price_max. The vehicles are not re-encoded; Vault reuses each one’s already-stored vector for the comparison.
Use this endpoint when an LLM holds a shortlist from a prior turn (a /v2/search result, a hand-picked set, a previously-shown group) and wants to re-rank just that shortlist as the shopper adds a constraint or shifts intent. For ranking against a dealer’s full inventory, use POST /v2/search instead.
Scores fall in the natural-language low range (typically 0.20 to 0.40), which is expected for question-vector versus vehicle-vector comparisons. Treat the relative ranking, not the absolute value, as the signal.
For a worked end-to-end example showing /v2/search and /v2/match-score together in an agentic flow, see the Semantic Search guide.