Retrieve a question
curl --request GET \
--url https://app.vensight.ai/api/v1/questions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.vensight.ai/api/v1/questions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.vensight.ai/api/v1/questions/{id}', 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.vensight.ai/api/v1/questions/{id}",
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://app.vensight.ai/api/v1/questions/{id}"
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://app.vensight.ai/api/v1/questions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.vensight.ai/api/v1/questions/{id}")
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{
"object": "questions",
"data": {
"id": "9c2a7d10-4e8b-4f3a-b6d2-1a7e5c9f0b84",
"prompt": "Do you encrypt borrower data at rest?",
"short_label": "Encryption at rest",
"field_label": null,
"help_text": "Name the standard and how keys are managed.",
"answer_type": "yes_no",
"surface": "application",
"section": "Information Security",
"application_section_key": "information_security",
"cadence": "annual",
"cadences": [
"annual"
],
"requirement_system": "risk_assessment",
"requirement_kind": "question",
"tier_scope": [
"tier_1",
"tier_2",
"tier_3"
],
"vendor_type_scope": [],
"is_required": true,
"position": 4,
"status": "active",
"parent_question_id": null,
"follow_up_when": null,
"follow_up_label": null,
"requests_document": false,
"document_required": false,
"document_prompt": null,
"document_cadence": null,
"auto_approve": false,
"char_limit": null,
"number_unit": null,
"created_at": "2026-09-09T02:14:07.221Z",
"updated_at": "2026-09-09T02:14:07.221Z"
}
}{
"error": {
"code": "invalid_query",
"message": "vendor is not a filter on invoices. Accepted: limit, cursor, updated_since, vendor_id, status, business_unit."
}
}{
"error": {
"code": "invalid_credential",
"message": "That API key is not valid."
}
}{
"error": {
"code": "not_found",
"message": "No vendors record with that id."
}
}{
"error": {
"code": "read_failed",
"message": "That could not be read just now."
}
}{
"error": {
"code": "not_yet_provisioned",
"message": "The API is still being switched on for this workspace. Try again shortly."
}
}Questions
Retrieve a question
Fetch one record from questions by its id.
GET
/
questions
/
{id}
Retrieve a question
curl --request GET \
--url https://app.vensight.ai/api/v1/questions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.vensight.ai/api/v1/questions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.vensight.ai/api/v1/questions/{id}', 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.vensight.ai/api/v1/questions/{id}",
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://app.vensight.ai/api/v1/questions/{id}"
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://app.vensight.ai/api/v1/questions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.vensight.ai/api/v1/questions/{id}")
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{
"object": "questions",
"data": {
"id": "9c2a7d10-4e8b-4f3a-b6d2-1a7e5c9f0b84",
"prompt": "Do you encrypt borrower data at rest?",
"short_label": "Encryption at rest",
"field_label": null,
"help_text": "Name the standard and how keys are managed.",
"answer_type": "yes_no",
"surface": "application",
"section": "Information Security",
"application_section_key": "information_security",
"cadence": "annual",
"cadences": [
"annual"
],
"requirement_system": "risk_assessment",
"requirement_kind": "question",
"tier_scope": [
"tier_1",
"tier_2",
"tier_3"
],
"vendor_type_scope": [],
"is_required": true,
"position": 4,
"status": "active",
"parent_question_id": null,
"follow_up_when": null,
"follow_up_label": null,
"requests_document": false,
"document_required": false,
"document_prompt": null,
"document_cadence": null,
"auto_approve": false,
"char_limit": null,
"number_unit": null,
"created_at": "2026-09-09T02:14:07.221Z",
"updated_at": "2026-09-09T02:14:07.221Z"
}
}{
"error": {
"code": "invalid_query",
"message": "vendor is not a filter on invoices. Accepted: limit, cursor, updated_since, vendor_id, status, business_unit."
}
}{
"error": {
"code": "invalid_credential",
"message": "That API key is not valid."
}
}{
"error": {
"code": "not_found",
"message": "No vendors record with that id."
}
}{
"error": {
"code": "read_failed",
"message": "That could not be read just now."
}
}{
"error": {
"code": "not_yet_provisioned",
"message": "The API is still being switched on for this workspace. Try again shortly."
}
}