Suggest answers for unanswered org profile questions
POST
/v1/context/profile-suggestions
const url = 'https://api.varman.io/v1/context/profile-suggestions';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"questions":[{"id":"teamSize","prompt":"How many employees do you have?","type":"text","options":["example"]}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/context/profile-suggestions \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "questions": [ { "id": "teamSize", "prompt": "How many employees do you have?", "type": "text", "options": [ "example" ] } ] }'Returns suggested answers for the given profile questions, built from data the organization already has (member count, vendors, integrations, earlier answers) and, when an AI provider is configured, an AI pass for the rest. Nothing is.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
questions
required
Unanswered questions to suggest answers for
Array<object>
object
id
required
Stable question id from the org profile catalogue
string
Example
teamSizeprompt
required
Question text
string
Example
How many employees do you have?type
required
string
Example
numberoptions
Allowed options for select questions
Array<string>