External API Access
Using the API Externally
Access your Fast Mode content from external applications, scripts, and services.
Getting Your API Key
- Go to Settings → API Keys
- Click Generate API Key
- Copy the key immediately — it won't be shown again
- Store it securely (environment variables, secrets manager)
Finding Your Project ID
Your project ID is shown in Settings under Project Information.
JavaScript/Node.js Example
const API_KEY = process.env.FASTMODE_API_KEY;
const PROJECT_ID = 'your-project-id';
async function getBlogPosts() {
const response = await fetch(
'https://api.fastmode.ai/api/external/collections/blog/items',
{
headers: {
'Authorization': `Bearer ${API_KEY}`,
'X-Tenant-ID': PROJECT_ID
}
}
);
const { data } = await response.json();
return data;
}
Python Example
import requests
API_KEY = 'your-api-key'
PROJECT_ID = 'your-project-id'
headers = {
'Authorization': f'Bearer {API_KEY}',
'X-Tenant-ID': PROJECT_ID
}
response = requests.get(
'https://api.fastmode.ai/api/external/collections/blog/items',
headers=headers
)
posts = response.json()['data']
cURL Example
curl https://api.fastmode.ai/api/external/collections/blog/items \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Tenant-ID: YOUR_PROJECT_ID"
Security Best Practices
- Never expose API keys in client-side code
- Use environment variables for keys
- Rotate keys periodically
- Delete unused keys