emfasemfas
Introduction

Authentication

How to authenticate with the Emfas API

All API requests require authentication using an API key. Include your key in the Authorization header using the Bearer scheme.

Using Your API Key

Add the Authorization header to every request:

curl "https://api.emfas.ai/v1/products" \
  -H "Authorization: Bearer YOUR_API_KEY"

Getting an API Key

  1. Log in to your Emfas workspace
  2. Go to Settings
  3. Navigate to the API section
  4. Generate a new API key

If you don't see the API section in Settings, contact the Emfas team to enable API access for your organization.

Authentication Errors

If authentication fails, you'll receive a 401 Unauthorized response:

{
  "error": "Unauthorized - missing or invalid authentication"
}

Common causes:

  • Missing Authorization header
  • Invalid or revoked API key
  • Malformed header (missing "Bearer " prefix)