Skip to main content

How to Generate and Use Your Sparkle.io API Key

Updated over a month ago

Sparkle.io provides an API key that allows you to integrate its features seamlessly with other applications. Whether you're automating email verification or integrating Sparkle.io into your workflow, generating an API key is the first step.

This guide will walk you through how to generate and use your Sparkle.io API key effectively.

Step 1: Open the User Profile Menu

Click on your profile icon in the top-right corner of the dashboard. When the dropdown menu appears, select Account Settings. (Refer to the image below for guidance.)

Step 2: Navigate to the API Key Section

  1. In the left panel, find and click on the API option.

  2. This will take you to the API page where you can generate your API key.

Sparkle.io - API left panel

Step 3: Generate Your API Key

  1. If you haven't generated an API key before, click the Generate New API Key button.

  2. Enter an API key name, set an API limit, and select the API endpoint access permissions.

  3. Click Generate to create a unique API key.

  4. Copy the API key and store it securely. For security reasons, you won’t be able to view it again.

Step 4: Use Your API Key

Your API key allows you to authenticate requests to the Sparkle.io API. Here’s how you can use it in a basic API request:

Example: Authenticating an API Request

curl --location 'https://sparkle-production.azurewebsites.net/api/v1/sparkle/account' 
--header 'x-api-key: YOUR_API_KEY'

Replace YOUR_API_KEY with the key you generated.

Best Practices for API Key Security

  • Do not share your API key publicly or with unauthorized users.

  • Store it securely, such as in an environment variable or a secrets manager.

  • Rotate your API key periodically for better security.

  • Restrict API key permissions based on your usage needs.

Conclusion

Generating and using your Sparkle.io API key is a straightforward process that enables you to integrate Sparkle.io’s powerful features into your applications. Follow the steps above, and make sure to handle your API key securely to prevent unauthorized access.

Happy Sparkling! ✨

Did this answer your question?