Skip to content

Authentication

Learn how to authenticate with the Automated Future API.

Authentication

Automated Future uses API keys for authentication.

Getting Your API Key

  1. Log in to your dashboard
  2. Navigate to Team → API Keys
  3. Click "New Key"
  4. Copy and securely store your key

Using Your API Key

Include your API key in the Authorization header:

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.automatedfuture.co/v1/projects

Security Best Practices

  • Never commit API keys to version control
  • Store keys in environment variables or secure vaults
  • Rotate keys regularly
  • Use different keys for different environments
  • Revoke keys immediately if compromised

Revoking Keys

To revoke a key:

  1. Go to Settings → API Keys
  2. Find the key to revoke
  3. Click "Revoke"

Note: Revoked keys cannot be restored. Generate a new key if needed.

Example: Node.js

const AF_API_KEY = process.env.AF_API_KEY;

const response = await fetch('https://api.automatedfuture.co/v1/projects', {
  headers: {
    'Authorization': `Bearer ${AF_API_KEY}`,
    'Content-Type': 'application/json'
  }
});

Example: Python

import os
import requests

AF_API_KEY = os.environ['AF_API_KEY']

response = requests.get(
    'https://api.automatedfuture.co/v1/projects',
    headers={
        'Authorization': f'Bearer {AF_API_KEY}',
        'Content-Type': 'application/json'
    }
)