Skip to main content

Overview

All API requests require a Bearer token in the Authorization header.

Get Your API Key

  1. Go to orgo.ai/projects
  2. Click “Generate API Key”
  3. Copy your key (format: sk_live_...)
Important: Store your API key securely. Don’t commit it to version control.

Usage

Include the header in every request:
Authorization: Bearer sk_live_your_api_key_here

Examples

cURL

curl https://www.orgo.ai/api/projects \
  -H "Authorization: Bearer sk_live_abc123..."

Python

import requests

headers = {
    "Authorization": "Bearer sk_live_abc123...",
    "Content-Type": "application/json"
}

response = requests.get(
    "https://www.orgo.ai/api/projects",
    headers=headers
)

JavaScript

fetch('https://www.orgo.ai/api/projects', {
  headers: {
    'Authorization': 'Bearer sk_live_abc123...',
    'Content-Type': 'application/json'
  }
})

Environment Variables

Store your key as an environment variable:
export ORGO_API_KEY=sk_live_abc123...
Then reference it in your code:
import os

api_key = os.environ.get("ORGO_API_KEY")

Error Responses

Invalid key:
{
  "error": "Invalid API key"
}
Missing key:
{
  "error": "Authentication failed"
}
Both return 401 Unauthorized.

Security

  • Keep your API key private
  • Rotate keys if compromised
  • Use environment variables, not hardcoded values
  • Don’t share keys in public repositories

Need Help?

Contact support if you lose access to your API key.