API Configuration

Environment Setup

Create a .env file with your API credentials:

API_BASE_URL=https://api.your-service.com
API_KEY=your_api_key

API Client Setup

import axios from 'axios';

const apiClient = axios.create({
  baseURL: process.env.API_BASE_URL,
  headers: {
    'Authorization': `Bearer ${process.env.API_KEY}`,
    'Content-Type': 'application/json',
  }
});