Skip to main content
All API requests require authentication via a Bearer token.

Get your API key

  1. Sign in at orgo.ai
  2. Go to orgo.ai/workspaces
  3. Click Generate API Key
  4. Copy your key (format: sk_live_...)
Store your API key securely. Don’t commit it to version control or share it publicly.

Usage

Include the Authorization header in every request:
Authorization: Bearer sk_live_your_api_key_here

Examples

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

Environment variables

Store your key as an environment variable:
export ORGO_API_KEY=sk_live_abc123...
Then load it in your code:
import os
from dotenv import load_dotenv

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

Error responses

Invalid key

{
  "error": "Invalid API key"
}

Missing key

{
  "error": "Authentication required"
}
Both return 401 Unauthorized.

Security best practices

Never hardcode API keys in your source code.
Ensure .env files are not committed to version control.
Generate a new key immediately if your key is exposed.
Use different keys for development and production.

Need help?

Contact support if you need to reset your API key.