Skip to content

Create vendor

POST
/v1/vendors
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.

Vendor creation data

Media typeapplication/json
object
name
required

Vendor name

string

Example

CloudTech Solutions Inc.
description
required

Detailed description of the vendor and services provided

string

Example

Cloud infrastructure provider offering AWS-like services including compute, storage, and networking solutions for enterprise customers.
category
required

Vendor category

string
default: other
Allowed values: cloud infrastructure software_as_a_service finance marketing sales hr other

Example

cloud
status
required

Assessment status of the vendor

string
default: not_assessed
Allowed values: not_assessed in_progress assessed

Example

not_assessed
inherentProbability
required

Inherent probability of risk before controls

string
default: very_unlikely
Allowed values: very_unlikely unlikely possible likely very_likely

Example

possible
inherentImpact
required

Inherent impact of risk before controls

string
default: insignificant
Allowed values: insignificant minor moderate major severe

Example

moderate
residualProbability
required

Residual probability after controls are applied

string
default: very_unlikely
Allowed values: very_unlikely unlikely possible likely very_likely

Example

unlikely
residualImpact
required

Residual impact after controls are applied

string
default: insignificant
Allowed values: insignificant minor moderate major severe

Example

minor
website

Vendor website URL

string

Example

https://www.cloudtechsolutions.com
isSubProcessor

Whether the vendor is a sub-processor

boolean
assigneeId

ID of the user assigned to manage this vendor

string

Example

mem_abc123def456

Vendor created successfully

Media typeapplication/json
object
id

Vendor ID

string
name

Vendor name

string
description

Vendor description

string
category
string
Allowed values: cloud infrastructure software_as_a_service finance marketing sales hr other
status
string
Allowed values: not_assessed in_progress assessed
inherentProbability
string
Allowed values: very_unlikely unlikely possible likely very_likely
inherentImpact
string
Allowed values: insignificant minor moderate major severe
residualProbability
string
Allowed values: very_unlikely unlikely possible likely very_likely
residualImpact
string
Allowed values: insignificant minor moderate major severe
website
string
nullable
organizationId
string
assigneeId

ID of the user assigned to manage this vendor

string
nullable
createdAt

When the vendor was created

string format: date-time
updatedAt

When the vendor was last updated

string format: date-time
authType

How the request was authenticated

string
Allowed values: api-key session
authenticatedUser

User information (only for session auth)

object
id
string
email
string

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

Media typeapplication/json
object
message
Array<string>
error
string
statusCode
number

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

Media typeapplication/json
object
message
string

Example

{
"message": "Invalid or expired API key"
}

Organization not found

Media typeapplication/json
object
message
string

Example

{
"message": "Organization with ID org_abc123def456 not found"
}

Internal server error

Media typeapplication/json
object
message
string

Example

{
"message": "Internal server error"
}