API Integration
Use Deplora REST API directly with HTTP requests.
Base URL
All API requests are made to:
| Field | Value |
|---|---|
| Base URL | https://api.deplora.ai |
| Authentication | X-Api-Key and X-Secret-Key headers |
Authentication
Include your API credentials in every request header:
| Header | Value |
|---|---|
X-Api-Key | Your API Key (dep-xxx) |
X-Secret-Key | Your Secret Key (lora-xxx) |
Content-Type | application/json |
ℹ
Get your API Key and Secret Key from the Dashboard. See Authorization for details.
Example
const API_KEY = 'YOUR_API_KEY'
const SECRET_KEY = 'YOUR_SECRET_KEY'
async function fetchStats() {
const response = await fetch('https://api.deplora.ai/my-statistics', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'X-Api-Key': API_KEY,
'X-Secret-Key': SECRET_KEY
}
})
if (!response.ok) {
const error = await response.json()
console.error(error)
return
}
const data = await response.json()
console.log('Deplora API Response:', data)
}
fetchStats()
Next Steps
SDK Integration
Use Deplora SDK for Node.js applications.
Click here →
Quick Start
Try Deplora models in the browser.
Click here →