Developer Resources

API Documentation

Integrate ConformityAI into your applications with our comprehensive REST API. Full documentation with code examples.

Quick Start

1. Get Your API Key

Navigate to Settings → API Keys in your dashboard to generate a new key.

$ curl https://api.conformity.ai/v1/documents \
  -H "Authorization: Bearer YOUR_API_KEY"

2. Make Your First Request

$
curl -X POST https://api.conformity.ai/v1/rag/answer \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"question": "Do we encrypt data at rest?", "tenantId": "..."}'

API Endpoints

POST/api/documents
Auth Required

Upload a document to the knowledge base

GET/api/documents
Auth Required

List all documents in your knowledge base

POST/api/rag/answer
Auth Required

Query the knowledge base and get an AI-generated answer

DELETE/api/documents/:id
Auth Required

Delete a document from the knowledge base

Authentication

All API requests require authentication using a Bearer token in the Authorization header.

Authorization: Bearer YOUR_API_KEY
API keys are scoped to your tenant and cannot access other organizations' data
Keys can be regenerated at any time from your dashboard
Rate limits: 100 requests/minute for Pro, 1000/minute for Enterprise

JavaScript/TypeScript

const response = await fetch(
  'https://api.conformity.ai/v1/rag/answer',
  {
    method: 'POST',
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      question: 'Do we encrypt data at rest?',
      tenantId: 'your-tenant-id'
    })
  }
);

Python

import requests

response = requests.post(
    'https://api.conformity.ai/v1/rag/answer',
    headers={
        'Authorization': 'Bearer YOUR_API_KEY',
        'Content-Type': 'application/json'
    },
    json={
        'question': 'Do we encrypt data at rest?',
        'tenantId': 'your-tenant-id'
    }
)

Need Help?

Check out our full documentation, join our developer community, or contact our API support team.