Create vendor
const url = 'https://api.varman.io/v1/vendors';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"CloudTech Solutions Inc.","description":"Cloud infrastructure provider offering AWS-like services including compute, storage, and networking solutions for enterprise customers.","category":"cloud","status":"not_assessed","inherentProbability":"very_unlikely","inherentImpact":"insignificant","residualProbability":"very_unlikely","residualImpact":"insignificant","website":"https://www.cloudtechsolutions.com","isSubProcessor":false,"assigneeId":"mem_abc123def456"}'};
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/vendors \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "name": "CloudTech Solutions Inc.", "description": "Cloud infrastructure provider offering AWS-like services including compute, storage, and networking solutions for enterprise customers.", "category": "cloud", "status": "not_assessed", "inherentProbability": "very_unlikely", "inherentImpact": "insignificant", "residualProbability": "very_unlikely", "residualImpact": "insignificant", "website": "https://www.cloudtechsolutions.com", "isSubProcessor": false, "assigneeId": "mem_abc123def456" }'Create a vendor record so teams can track third-party risk, assessment evidence, owner, category, and compliance status.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Vendor creation data
object
Vendor name
Example
CloudTech Solutions Inc.Detailed description of the vendor and services provided
Example
Cloud infrastructure provider offering AWS-like services including compute, storage, and networking solutions for enterprise customers.Vendor category
Example
cloudAssessment status of the vendor
Example
not_assessedInherent probability of risk before controls
Example
possibleInherent impact of risk before controls
Example
moderateResidual probability after controls are applied
Example
unlikelyResidual impact after controls are applied
Example
minorVendor website URL
Example
https://www.cloudtechsolutions.comWhether the vendor is a sub-processor
ID of the user assigned to manage this vendor
Example
mem_abc123def456Responses
Section titled “Responses”Vendor created successfully
object
Vendor ID
Vendor name
Vendor description
ID of the user assigned to manage this vendor
When the vendor was created
When the vendor was last updated
How the request was authenticated
User information (only for session auth)
object
Example
{ "id": "vnd_abc123def456", "name": "CloudTech Solutions Inc.", "description": "Cloud infrastructure provider offering AWS-like services including compute, storage, and networking solutions for enterprise customers.", "category": "cloud", "status": "not_assessed", "inherentProbability": "very_unlikely", "inherentImpact": "insignificant", "residualProbability": "very_unlikely", "residualImpact": "insignificant", "website": "https://www.cloudtechsolutions.com", "organizationId": "org_abc123def456", "assigneeId": "mem_abc123def456", "authType": "api-key", "authenticatedUser": { "id": "usr_def456ghi789", "email": "user@example.com" }}Bad request - Invalid input data
object
Example
{ "message": [ "name should not be empty", "description should not be empty", "category must be a valid enum value", "website must be a URL address" ], "error": "Bad Request", "statusCode": 400}Unauthorized - Invalid authentication or insufficient permissions
object
Example
{ "message": "Invalid or expired API key"}Organization not found
object
Example
{ "message": "Organization with ID org_abc123def456 not found"}Internal server error
object
Example
{ "message": "Internal server error"}