Connect to the Vectice API

Learn how to connect to the Vectice API from your working environment and the prerequisites needed to begin registering assets to Vectice.

To use the sample notebooks, please ensure you replace "your-api-key" at the top of the notebook with your API key. If you have lost your API Key, open the JSON file you downloaded on the previous page to retrieve the key or simply create a new key by following the instruction on the "Create an API key" page in the left menu under GETTING STARTED.

The examples below show you the two ways to use your credentials to connect directly to Vectice.

Example #1

import vectice

connect = vectice.connect(api_token="your-api-key") #Paste your API key

Example #2

import vectice

connect = vectice.connect(config="your-api-config.json") #Enter your API key JSON file

Once you have run the code, you will see a welcome message that states your connection to Vectice was successful. 🎉

Prerequisites for registering assets

You must complete the following prerequisites before registering your datasets and models to Vectice.