Authentication

All requests to the StudyFetch API require authentication using an API key. This guide covers how to obtain and use your API key across different platforms.

Obtaining Your API Key

Via StudyFetch Dashboard

  1. Log in to your StudyFetch Console
  2. Click API Keys
  3. Click Create New API Key
  4. Give your key a descriptive name (e.g., “Production App”)
  5. Copy the generated key

Using Your API Key

The StudyFetch API uses API key authentication via the x-api-key header.

Header Format

x-api-key: YOUR_API_KEY

Example Requests

import StudyfetchSDK from '@studyfetch/sdk';

const client = new StudyfetchSDK({
  apiKey: 'YOUR_API_KEY',
  baseURL: 'https://studyfetchapi.com',
});

// The SDK automatically includes the x-api-key header
const components = await client.v1.components.list();