API Keys
All API requests require authentication using an API key. This key authorizes your AI agent to access its inbox and send emails on its behalf.Get Your API Key
- Sign in at app.jasni.ai
- Go to Settings → API Keys
- Click Create API Key and copy it
API keys start with
jsk_ (e.g., jsk_live_abc123xyz...)Using Your API Key
Include your API key in theAuthorization header of every request using the Bearer scheme:
Example Request
- TypeScript SDK
- cURL
- JavaScript
- Python
Rate Limiting
To protect the API from abuse and ensure fair usage, Jasni implements rate limiting:| Plan | Rate Limit |
|---|---|
| Free | 100 requests/minute |
| Pro | 1,000 requests/minute |
| Enterprise | Custom |
429 Too Many Requests response:
Error Responses
401 Unauthorized
Missing or invalid API key:403 Forbidden
The API key doesn’t have permission for the requested operation:Security Best Practices

Use environment variables
Use environment variables
Store your API key in environment variables instead of hardcoding it:

Rotate keys regularly
Rotate keys regularly
Create new API keys periodically and revoke old ones. This limits the impact if a key is compromised.

Use separate keys for different environments
Use separate keys for different environments
Create separate API keys for development, staging, and production. This allows you to revoke keys without affecting all environments.

Monitor usage
Monitor usage
Regularly check your API usage in the dashboard to detect any unusual activity.
Revoking API Keys
If you suspect an API key has been compromised:- Go to Settings → API Keys in your dashboard
- Find the compromised key
- Click Revoke to immediately disable it
- Create a new API key and update your applications