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"/api/documentsUpload a document to the knowledge base
/api/documentsList all documents in your knowledge base
/api/rag/answerQuery the knowledge base and get an AI-generated answer
/api/documents/:idDelete a document from the knowledge base
All API requests require authentication using a Bearer token in the Authorization header.
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'
})
}
);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'
}
)Check out our full documentation, join our developer community, or contact our API support team.