Core FeaturesAuthentication
Core Features

Authentication

How to authenticate with the PredictorBets API

Authentication is the first step to accessing PredictorBets' powerful prediction tools. Our API uses Bearer token authentication to ensure secure access to your betting data and predictions.

API Key Generation

To get started, you'll need to generate an API key from your PredictorBets dashboard. This key acts as your credential for all API requests.

Log In

Access your PredictorBets account at dashboard.predictorbets.com.

Navigate to API

Go to the API section in your account settings.

Generate Key

Click "Generate New Key" and copy the provided token.

Never expose your API key in client-side code or public repositories.

Using Your API Key

Include your API key in the Authorization header of all requests using the Bearer scheme.

curl -X GET "https://api.predictorbets.com/predictions" \
  -H "Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc"

Use test keys for development. They start with sk_test_.

Security Best Practices

Implement these practices to keep your account and data secure.

Rotate keys regularly and use environment variables to store them.

Troubleshooting

Common authentication issues and solutions.

IssueSolution
Invalid API KeyCheck for typos and ensure you're using the correct key
Expired TokenRegenerate your API key from the dashboard
Rate Limit ExceededUpgrade your plan or implement request throttling

Next Steps

Once authenticated, explore our predictions endpoint to start getting betting insights.

Was this page helpful?
Built with Documentation.AI

Last updated 1 week ago