Skip to main content

API Keys

All API requests are authenticated with an API key. Generate one from the mag3nt dashboard, then include it in every request:

Using with the SDK

Managing keys

Best practices

Never expose API keys in client-side code. API keys grant full access to your treasury. Use them only in server-side code or secure agent environments.
  • Use environment variables:never hardcode keys in source
  • One key per agent:if an agent is compromised, revoke only its key
  • Rotate regularly:generate new keys and revoke old ones

Public endpoints

These endpoints require no authentication: