Authentication
How to authenticate with the Twitter API
Authentication
All API requests require authentication using an API token.
Getting Your API Token
- Sign up for an account at aidir.fun
- Navigate to your dashboard
- Generate an API token
- Copy and securely store your token
Using Your Token
Include your API token in the Authorization header of every request:
curl -X GET "https://api.aidir.fun/v1/user/profile?username=elonmusk" \
-H "Authorization: Bearer YOUR_API_TOKEN"Security Best Practices
- Never expose your API token in client-side code
- Store tokens securely using environment variables
- Rotate tokens regularly
- Use different tokens for different environments (development, production)
Token Permissions
All tokens have access to the same endpoints. Rate limits apply based on your subscription plan.
Aidir Docs