Authentication

Learn how to authenticate your API requests

API Key Authentication

All API requests require authentication using a Bearer token in the Authorization header.

Authorization: Bearer YOUR_API_KEY

Getting Your API Key

  1. Sign up for a CrisPRO.ai account
  2. Navigate to your dashboard
  3. Generate a new API key
  4. Copy and securely store your key

Example Request

curl -X POST https://api.crispro.ai/predict_variant_impact \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "task": "predict_variant_impact",
    "variant": "chr17:43044295:A>T"
  }'

Security Best Practices

  • Never commit API keys to version control
  • Use environment variables to store keys
  • Rotate keys regularly
  • Use different keys for development and production