API Reference

Comprehensive documentation of elAN's API endpoints for GitHub integrations, Discord automation, and API management systems. All API calls require valid authentication tokens.

Authentication

All API requests must include an authorization header with a valid Bearer token. Tokens can be generated in your dashboard profile settings.

# Authentication Header
curl -X GET 'https://api.elan.dev/v1/status' \
  -H 'Authorization: Bearer YOUR_API_KEY'
                    

Never share your token publicly. Store it securely in environment variables or encrypted vaults.

Security Best Practices →

Available Endpoints

GET /v1/github/status

Retrieve real-time status of all GitHub integrations.

Returns:

{
  "status": "active",
  "last_sync": "2025-09-25T14:32:05Z"
}
                                
POST /v1/discord/webhook

Create a new Discord bot webhook.

Request Body

{
  "server_id": "123456789",
  "permissions": ["MODERATOR", "ADMINISTRATOR"]
}
                                

Usage Example

# Create a GitHub integration
curl -X POST 'https://api.elan.dev/v1/github/setup' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "repository": "organisation/repo",
    "webhook_branches": ["main", "dev"]
  }'
                    

Response:

{
  "status": "success",
  "integration_id": "gh-1234-xyz"
}