Skip to main content

Authentication

Learn how to authenticate with the EdgeFlow API.

API Keys

EdgeFlow uses API keys for authentication. You can generate API keys from the Settings panel in the flow editor.

Generating an API Key

  1. Open the EdgeFlow editor
  2. Navigate to Settings → API Keys
  3. Click "Generate New Key"
  4. Copy and securely store your key

Using API Keys

Include the API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

JWT Tokens

For session-based authentication, use JWT tokens:

POST /api/v1/auth/login
Content-Type: application/json

{
  "username": "admin",
  "password": "your-password"
}

Response

{
  "token": "eyJhbGciOiJIUzI1NiIs...",
  "expiresIn": 86400
}

Security Best Practices

  • Never expose API keys in client-side code
  • Rotate keys periodically
  • Use HTTPS in production
  • Limit key permissions where possible