Getting Started

Authentication

Getting Started

1 min read

Authentication

To authenticate your Wisecube API key, import WisecubeClient, create a Wisecube client, and pass your API key to it:

from wisecube_sdk.client import WisecubeClient
API_KEY = "YOUR_API_KEY" #replace with your API key
client = WisecubeClient(API_KEY).client

Note that your API key is secret and it should be hidden from unauthorized parties. To do so, you can use any of the following options:

  1. Store it locally in a separate file and add that file to your .gitignore file.

  2. Store your API key in an environment variable and use the OS module to set and retrieve environment variables.

Authentication

© 2024 Wisecube AI

© 2024 Wisecube AI

© 2024 Wisecube AI