API Keys
Manage your API keys for programmatic access to SQLChat AI.
Total API Keys
3
2 active
Total Requests
1,779
This month
Usage Limit
11.1%
Of total limit used
Your API Keys
Manage and monitor your API keys. Keep them secure and rotate them regularly.
Name | Key | Permissions | Usage | Status | Last Used | Actions |
---|---|---|---|---|---|---|
Production API | sk-proj-abc123********************...xyz789 | read write | 1,234 / 10,000 | active | 2 hours ago | |
Development API | sk-dev-def456********************...uvw012 | read | 456 / 5,000 | active | 1 day ago | |
Testing API | sk-test-ghi789********************...rst345 | read | 89 / 1,000 | inactive | 3 days ago |
Quick Start
Get started with our API using these code examples.
Python
import
requestsheaders = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
response = requests.post(
'https://api.sqlchat.ai/v1/query',
headers=headers,
json={
'database': 'your_db',
'query': 'Show top customers'
}
)
JavaScript
const response = await fetch('https://api.sqlchat.ai/v1/query', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
database: 'your_db',
query: 'Show top customers'
})
})
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
database: 'your_db',
query: 'Show top customers'
})
})