Skip to content

Authentication

Authentication Method

GhostMind uses Bearer token authentication for the Product API:

Terminal window
Authorization: Bearer sk-gm-...

API Key Types

TypeScopeUse Case
Human-ownedPer userPersonal API access
Service-ownedPer workspaceApplication integration

Scopes

API keys can be scoped to limit access:

ScopeEndpoints
chat/v1/chat/completions
conversationsConversation management
audio/v1/audio/*

Security Best Practices

  • Never commit API keys to version control
  • Use environment variables to inject keys
  • Revoke keys when no longer needed
  • Use scoped keys with minimum required permissions
  • Don’t expose keys in client-side code

Next Steps