Welcome to ZoneVu's Knowledge Base

Support content and general information

Setting Up an API Key File on Your Computer

Web API and Python Scripting

Setting Up an API Key File on Your Computer

This article explains how to create and configure an API Key File on your computer so that the ZoneVu Python SDK can automatically authenticate using your API Key. This method eliminates the need to paste your API Key into every script and is recommended for users who interact with Projects, Wells, and other Data Objects frequently.

Last updated on 26 Feb, 2026

Setting Up Your API Key File

Overview

The ZoneVu Python SDK supports automatic API Key loading through a configuration file stored in a designated folder on your computer. By placing your API Key into a JSON file in the expected directory, the SDK can read your key without you having to include it manually in your scripts.

Using an API Key File provides several advantages:

  • Keeps your API Key out of your source code

  • Reduces risk of accidental exposure when sharing scripts

Prerequisites

Before creating an API Key File, ensure you have:

pip install zonevu

Creating your Config File

The ZoneVu SDK can look for a configuration file in a specific directory on your C‑drive.

  1. Open File Explorer.

  2. Navigate to your user directory

  3. Save a .json file with the name 'zonevu_keyfile.json'

The file path will look like:

C:\Users\YourUserName\zonevu_keyfile.json

Inside the JSON file, paste the following JSON structure:

{
    "apikey": "xXxXxXx-xXxXxXx-xXxXxXxX"
}

Note: Replace 'XxXxXx-xXxXxXx-xXxXxXxX with your actual API Key

Finally, save and close your JSON file.

Using your Config File

The ZoneVu Python SDK can now read this Config File and authenticate automatically.
Use the command below in your scripts to load your API Key:

from zonevu.Zonevu import Zonevu
zonevu = Zonevu.init_from_std_keyfile()

Security Best Practices

  • Never commit your zonevu_keyfile.json file to Git or other version control.

  • Limit access to your Windows user profile, as the file resides in your user directory.

  • Regenerate your API Key periodically based on Company policy.

  • Treat your API Key with the same sensitivity as your ZoneVu login credentials.

Did you find this article helpful?
Previous

Retrieving Geosteering Interpretations

Next

© 2026 Ubiterra - Home of ZoneVu.