Authentication
How to authenticate with the dscr.ai API using Bearer tokens.
All API requests require a Bearer token. Generate API keys from your organization settings.
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://pricingengine.pro/api/dealsGenerating API Keys
Open API Settings
Navigate to Settings → API Keys in your organization dashboard.
Create a Key
Click Create API Key and provide a descriptive name (e.g., "CRM Integration" or "CI/CD Pipeline").
Set Permissions
Select the permissions to grant — read, write, or both.
Copy the Key
Copy the generated key immediately — it will only be shown once.
Warning
Store your API key securely. Never commit it to version control or expose it in client-side code.
Using API Keys
Include the API key in the Authorization header of every request:
Authorization: Bearer sk_live_your_api_key_here
Note
API keys are scoped to your organization. Each key can have specific read/write permissions configured independently.
Key Rotation
You can revoke and rotate API keys at any time from the settings page. Revoking a key immediately invalidates all requests using that key.