API Reference
Vendors

Vendors API

Manage vendors, assess risk, and track vendor contracts.

Endpoints

MethodPathDescription
GET/vendorsList vendors
POST/vendorsCreate vendor
GET/vendors/:idGet vendor details
PUT/vendors/:idUpdate vendor
DELETE/vendors/:idRemove vendor
POST/vendors/:id/risk-assessmentAI risk assessment
POST/vendors/:id/generate-ndaAuto-generate NDA

List Vendors

GET /api/v1/vendors?status=active&risk_level=high
{
  "vendors": [
    {
      "id": "vendor-uuid",
      "name": "Cloud Services Inc.",
      "contact_email": "billing@cloudservices.com",
      "status": "active",
      "risk_level": "low",
      "risk_score": 25,
      "category": "Technology",
      "created_at": "2026-01-15T10:00:00Z"
    }
  ],
  "total": 8
}

Create Vendor

POST /api/v1/vendors
{
  "name": "Cloud Services Inc.",
  "contact_name": "John Doe",
  "contact_email": "john@cloudservices.com",
  "contact_phone": "+1-555-0100",
  "category": "Technology",
  "website": "https://cloudservices.com",
  "notes": "Primary cloud infrastructure provider"
}

AI Risk Assessment

POST /api/v1/vendors/:id/risk-assessment
{
  "risk_score": 35,
  "risk_level": "low",
  "assessment": {
    "financial_stability": "strong",
    "data_handling": "compliant",
    "contract_coverage": "adequate",
    "recommendations": [
      "Consider adding a data breach notification clause",
      "Annual compliance review recommended"
    ]
  }
}

Generate NDA

Auto-generate an NDA for a vendor relationship.

POST /api/v1/vendors/:id/generate-nda
{
  "party_name": "My Company LLC",
  "duration_years": 2
}

Returns a new contract linked to this vendor with AI-generated NDA content.