API Documentation

Learn how to integrate with callmind.online and access our platform programmatically.

Getting Started

To start using the API, you need to:

  1. Log in to your account
  2. Navigate to Dashboard → Settings
  3. Generate a new API Key
  4. Include the key in your API requests

Authentication

API Key Format

API keys start with sk_ followed by a random string.

sk_2a209df7fe7303921ec2a7e226fc4df029955cb0888bf5e9bce343019a4c4f8b

Authorization Header

Include your API key in the Authorization header with the Bearer scheme:

Authorization: Bearer sk_your_api_key_here

API Resources

Conversations

Manage and analyze call recordings and transcriptions.

GET /api/conversations
GET /api/conversations/[id]
DELETE /api/conversations/[id]

Clients

Create and manage client accounts for your organization.

GET /api/clients
GET /api/clients/[id]
DELETE /api/clients/[id]

Products

Define products and their associated quality standards.

GET /api/products
GET /api/products/[id]
DELETE /api/products/[id]

Analysis

Get AI-powered conversation analysis results.

GET /api/analyze
GET /api/conversations/[id]/sentiment
GET /api/conversations/[id]/entities

Code Examples

JavaScript / Node.js

const apiKey = 'sk_your_api_key_here';

// Fetch conversations
fetch('https://callmind.online/api/conversations', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${apiKey}`,
    'Content-Type': 'application/json'
  }
})
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err));

Python

import requests

api_key = 'sk_your_api_key_here'
headers = {
    'Authorization': f'Bearer {api_key}',
    'Content-Type': 'application/json'
}

# Fetch conversations
response = requests.get(
    'https://callmind.online/api/conversations',
    headers=headers
)
print(response.json())

cURL

curl -X GET "https://callmind.online/api/conversations" \
  -H "Authorization: Bearer sk_your_api_key_here" \
  -H "Content-Type: application/json"

Security Best Practices

Never share your API key

Treat API keys like passwords. Never commit them to version control.

Use environment variables

Store API keys in environment variables or secure configuration files.

Use HTTPS only

Always access the API over HTTPS to protect data in transit.

Rotate keys regularly

Create new API keys and revoke old ones periodically.

Ready to Get Started?

Generate your first API key in the Settings dashboard and start building.

Go to Settings