API Reference

Complete reference documentation for the EndrickAI REST API. Build powerful integrations with our comprehensive endpoints.

Endpoints

Base URL

https://api.endrickai.com/v1

Authentication

All API requests require authentication via Bearer token in the Authorization header.

Authentication

POST/auth/login

Authenticate user and receive access token

Request Body

{
  "email": "string",
  "password": "string"
}

Response

{
  "access_token": "string",
  "user": {
    "id": "string",
    "email": "string",
    "created_at": "timestamp"
  }
}
POST/auth/logout

Invalidate current session

Headers

{
  "Authorization": "Bearer {token}"
}

Response

{
  "success": "boolean"
}

Code Examples

Python

import requests

# Initialize with your API key
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}

# Send a message
response = requests.post(
    "https://api.endrickai.com/v1/conversations/123/messages",
    headers=headers,
    json={"content": "Hello, AI!"}
)

print(response.json())

JavaScript

// Initialize with your API key
const headers = {
  'Authorization': 'Bearer YOUR_API_KEY',
  'Content-Type': 'application/json'
};

// Send a message
const response = await fetch(
  'https://api.endrickai.com/v1/conversations/123/messages',
  {
    method: 'POST',
    headers,
    body: JSON.stringify({ content: 'Hello, AI!' })
  }
);

const data = await response.json();
console.log(data);

Rate Limits

API requests are subject to the following rate limits:

  • • Free tier: 100 requests per minute
  • • Pro tier: 1,000 requests per minute
  • • Enterprise: Custom limits available