Skip to main content

Overview

Graine AI uses secure authentication to protect your account and data. We support multiple authentication methods for different use cases.

Web Platform Authentication

Sign Up

  1. Visit https://graine.ai
  2. Click “Sign Up”
  3. Choose your sign-up method:
    • Email/Password
    • Google OAuth
    • GitHub OAuth (coming soon)

Email/Password Sign Up

You’ll receive a verification email. Click the link to activate your account.

Login

  1. Visit https://graine.ai
  2. Click “Log In”
  3. Enter your credentials
  4. Click “Sign In”

Password Reset

If you forget your password:
  1. Click “Forgot Password” on the login page
  2. Enter your email address
  3. Check your email for reset link
  4. Create a new password

API Authentication

Getting Your API Token

1

Log In to Platform

Access your Graine AI dashboard
2

Navigate to Settings

Click on your profile → Settings → API Keys
3

Generate Token

Click “Generate New API Key”
Copy your API key immediately. You won’t be able to see it again!
4

Store Securely

Save your API key in a secure location (password manager, environment variables)

Using Your API Token

Include your API token in the Authorization header:

Session Management

Session Duration

  • Web Sessions: 7 days (with auto-refresh)
  • API Tokens: No expiration (can be revoked manually)

Security Features

Automatic Logout

Sessions expire after 7 days of inactivity

Secure Cookies

HttpOnly cookies prevent XSS attacks

HTTPS Only

All traffic encrypted with TLS 1.3

Token Rotation

Rotate API keys regularly for security

Organization Access

Understanding Organizations

  • Each user belongs to one organization
  • Organization ID is automatically assigned
  • All resources (agents, campaigns, etc.) are scoped to your organization

Getting Your Organization ID

Your organization ID is displayed in:
  • Dashboard header
  • Settings page
  • API responses

Best Practices

API Key Security

Don’t do this:
Do this:
Store keys in .env files: bash GRAINE_API_KEY=your_key_here GRAINE_ORG_ID=your_org_id
  • Rotate API keys every 90 days - Immediately rotate if compromised - Delete unused keys
  • Development: sk_dev_...
  • Staging: sk_staging_...
  • Production: sk_live_...

Password Requirements

  • Minimum 8 characters
  • At least one uppercase letter
  • At least one lowercase letter
  • At least one number
  • Special characters recommended
Use a password manager to generate and store strong passwords.

Rate Limiting

API requests are rate-limited to ensure fair usage:

Rate Limit Headers

Handling Rate Limits


Troubleshooting

Common Auth Issues

Causes:
  • Invalid API token
  • Expired session
  • Missing Authorization header
Solution:
  • Verify your API token is correct
  • Log in again
  • Check header format: Bearer YOUR_TOKEN
Causes: - Insufficient permissions - Organization mismatch - Resource belongs to another org Solution: - Contact your admin for permissions - Verify your organization ID
Solution:
  • Check spam folder
  • Wait 5 minutes and try again
  • Click “Resend verification email”
  • Contact support if still not received

Security Compliance

Data Protection

  • Encryption in Transit: TLS 1.3
  • Encryption at Rest: AES-256
  • Password Hashing: bcrypt with salt
  • Session Security: HttpOnly + Secure + SameSite cookies

Compliance

SOC 2 Type II

Certified for security controls

GDPR

European data protection compliant

HIPAA Ready

Healthcare compliance available

Next Steps

API Reference

Explore API endpoints

Quickstart Guide

Create your first agent

Need Help?

Contact our support team for authentication issues