Skip to content

Authentication

All Eazip API requests require authentication using an API key.

  1. Sign in to your Eazip dashboard
  2. Navigate to API Keys in the sidebar
  3. Click Create API Key
  4. Give your key a descriptive name
  5. Copy the key immediately (it won’t be shown again)

Include your API key in the Authorization header of every request:

Terminal window
curl https://api.eazip.io/jobs \
-H "Authorization: Bearer YOUR_API_KEY"

Store your API key in an environment variable:

Terminal window
export EAZIP_API_KEY="your_api_key_here"

Then use it in your requests:

Terminal window
curl https://api.eazip.io/jobs \
-H "Authorization: Bearer $EAZIP_API_KEY"

Node.js:

const response = await fetch('https://api.eazip.io/jobs', {
headers: {
'Authorization': `Bearer ${process.env.EAZIP_API_KEY}`,
'Content-Type': 'application/json',
},
});

Python:

import os
import requests
response = requests.get(
'https://api.eazip.io/jobs',
headers={'Authorization': f'Bearer {os.environ["EAZIP_API_KEY"]}'}
)

You can manage your API keys from the dashboard:

  • View all active keys
  • Revoke keys that are no longer needed
  • Create new keys for different environments

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

{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}

Common causes:

  • Missing Authorization header
  • Invalid API key
  • Revoked API key