API Reference

API Authentication

Learn how to authenticate your requests to the Aryxion API using API keys, OAuth 2.0, or JWT tokens.

10 min readIntermediate

Authentication Methods

API Key

Simple authentication using API keys for server-side applications.

Easy

Best for: Backend services, scripts, CI/CD

OAuth 2.0

Industry-standard authorization for user-facing applications.

Medium

Best for: Web apps, mobile apps, third-party integrations

JWT Tokens

Secure token-based authentication for stateless services.

Medium

Best for: Microservices, APIs, real-time applications

Code Examples

// Using API Key Authentication
const response = await fetch('https://api.darkaura.tech/v1/resources', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();

Security Best Practices

Important Security Notes

Follow these best practices to keep your API credentials secure.

  • Never expose API keys in client-side code or public repositories
  • Use environment variables to store sensitive credentials
  • Rotate API keys regularly and revoke unused keys
  • Use HTTPS for all API requests
  • Implement proper token refresh mechanisms for OAuth/JWT