Skip to main content
The Limitly Next.js SDK uses API key authentication to interact with the Limitly API.

API Key Setup

To use the SDK, you need a Limitly API key. You can get one from your Limitly Dashboard.

Basic Authentication

Initialize the SDK with your API key:

Environment Variables

For security, store your API key in environment variables:
Then use it in your application:

API Route Example

Here’s how to use authentication in a Next.js API route:

Error Handling

The SDK provides comprehensive error handling:

Next Steps