API Integration

Use Deplora REST API directly with HTTP requests.

Base URL

All API requests are made to:

FieldValue
Base URLhttps://api.deplora.ai
AuthenticationX-Api-Key and X-Secret-Key headers

Authentication

Include your API credentials in every request header:

HeaderValue
X-Api-KeyYour API Key (dep-xxx)
X-Secret-KeyYour Secret Key (lora-xxx)
Content-Typeapplication/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