Back to docs
Authentication
SEDI supports multiple authentication methods for both the CLI and API.
API Tokens
Generate API tokens from your dashboard Settings page. Each token grants full access to your account resources. Treat tokens like passwords.
# Authenticate with a token
Authorization: Bearer sedi_sk_xxxxxxxxxxxxxxxx
Authorization: Bearer sedi_sk_xxxxxxxxxxxxxxxx
OAuth 2.0
SEDI supports OAuth 2.0 for third-party integrations. Redirect users to our authorization endpoint:
https://yourdomain.com/oauth/authorize?
client_id=YOUR_CLIENT_ID&
redirect_uri=YOUR_CALLBACK&
response_type=code
client_id=YOUR_CLIENT_ID&
redirect_uri=YOUR_CALLBACK&
response_type=code
Security Best Practices
- Rotate API tokens every 90 days
- Use environment variables, never hardcode tokens
- Enable two-factor authentication on your account
- Review active sessions in your dashboard regularly