Authentication

Secure your API requests with authentication

Authentication

All API requests require authentication using an API key. Include your API key in the request header to authenticate your requests.

API Key Authentication

Include your API key in the Authorization header as a Bearer token:

⎘ Copy
Authorization: Bearer YOUR_API_KEY
Getting Your API Key

Log in to your LEXOH dashboard and navigate to Settings → API Keys to generate your authentication token. Keep your API key secure and never expose it in client-side code.

Example Request

Here's an example of an authenticated API request using cURL:

⎘ Copy
curl -X GET "https://api.lexoh.com/v1/devices" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response Format

Successful authentication will return the requested data. Failed authentication returns a 401 Unauthorized status code:

{
  "error": "Unauthorized",
  "message": "Invalid or missing API key"
}
⚠️ Security Best Practices
  • Never commit API keys to version control
  • Use environment variables to store API keys
  • Rotate API keys regularly
  • Use different API keys for development and production
  • Revoke compromised keys immediately

Rate Limiting

API requests are rate-limited to ensure fair usage and system stability. Rate limits are per API key:

1,000
Requests per hour
10,000
Requests per day
100,000
Concurrent requests

Ready to Make Your First Request?

Learn how to manage devices using our API

Continue to Devices API →