The Shinzo Platform API uses multiple authentication methods depending on the type of operation. This guide covers all authentication types, their use cases, and security best practices.
Purpose: Authenticating users for dashboard and management API access.JWT tokens are issued when users log in via email/password or OAuth. They provide access to user-specific resources and management endpoints.
Copy
# Login to get a JWT tokencurl -X POST https://api.app.shinzo.ai/auth/login \ -H "Content-Type: application/json" \ -d '{"email": "[email protected]", "password": "your_password"}'
Purpose: Sending telemetry data from your MCP servers via the SDKs.Ingest tokens are designed for use with the Shinzo SDKs and telemetry ingestion endpoints. They have write-only permissions for telemetry data.
Purpose: Programmatic access to agent management, Spotlight analytics, and model proxy endpoints.Platform API keys are designed for server-to-server communication, CI/CD pipelines, and automated workflows. They support authentication via multiple header formats.
Copy
# Using x-shinzo-api-key headercurl -X GET https://api.app.shinzo.ai/agent/list \ -H "x-shinzo-api-key: sk_shinzo_abc123..."# Or using Authorization headercurl -X GET https://api.app.shinzo.ai/agent/list \ -H "Authorization: Bearer sk_shinzo_abc123..."# Or using x-api-key headercurl -X GET https://api.app.shinzo.ai/agent/list \ -H "x-api-key: sk_shinzo_abc123..."