CaaS API Documentation

Integrate GDPR compliance into your node rental platform programmatically

Getting Started
Authentication and base URL

Base URL

https://your-domain.com/api/trpc

Authentication

All API requests require authentication via session cookie or JWT token.

Authorization: Bearer YOUR_API_TOKEN
POST /caas.onboardCustomer
Create a new CaaS customer and trigger compliance artifact generation

Request Body

{
  "companyName": "Acme Corp",
  "contactEmail": "[email protected]",
  "tier": "professional",
  "computeResources": {
    "nodeCount": 5,
    "storageGB": 500,
    "region": "eu-west-1"
  }
}

Response

{
  "success": true,
  "customerId": 12345,
  "message": "Customer onboarded successfully. Compliance artifacts are being generated."
}
Rate Limits & Best Practices

Rate Limits

  • • 100 requests per minute per API key
  • • 1,000 requests per hour per API key
  • • Webhook deliveries: 10 retries with exponential backoff

Best Practices

  • • Use webhooks for real-time updates instead of polling
  • • Cache compliance scores and artifacts when possible
  • • Implement exponential backoff for failed requests
  • • Verify webhook signatures to ensure authenticity
  • • Store webhook secrets securely (never commit to version control)
Need Help?

For technical support, integration assistance, or API questions: