Automating Infrastructure Documentation with Obelinf

Learn how to automate infrastructure documentation using Obelinf. Step by step guide to creating, securing, and using API keys for programmatic infrastructure management.

Automating Infrastructure Documentation with Obelinf
Automating Infrastructure Documentation with Obelinf · July 4, 2026

Your infrastructure documentation is only as valuable as it is current. When a device gets decommissioned, a subnet gets reallocated, or a cable run changes, the documentation needs to reflect that immediately. Manual updates through a web interface work fine when there are a handful of changes per week, but as your network grows and your team adopts continuous delivery workflows, the pace of infrastructure change outstrips what anyone can keep up with by hand. The gap between what is documented and what is actually deployed widens, and your source of truth starts to look more like a historical record than an accurate inventory that your team can trust for incident response and change planning.

The solution is automation. By connecting your infrastructure management platform to your provisioning tools, monitoring systems, CI/CD pipelines, and configuration management workflows, you can ensure that every change is documented at the moment it happens. The key that unlocks this automation is the API key, a programmatic credential that allows scripts, tools, and platforms to interact with your infrastructure data without requiring a human to log in through a browser. This article walks you through what API keys are, how to create them in Obelinf, and how to use them to build automated documentation workflows that keep your source of truth accurate in real time.

Creating an API Key in Obelinf

The process for creating an API key takes about thirty seconds, and you can generate as many keys as you need for different workflows. Start by navigating to your organization in Obelinf and opening the API Keys section from the sidebar menu. You will see a list of any existing keys along with a Create Key button at the top of the page.

Obelinf generates your API key and displays it on screen only once. This is the only time the key is ever visible, so copy and store it in a secure location.

Using the API for Automated Documentation

With your API key created and stored, you can start building automated workflows. Every API request to Obelinf requires the key to be sent as a Bearer token in the Authorization header.

Most programming languages have HTTP client libraries that make working with the API straightforward. For example, you can use Python to create a new device record, the exact operation you would automate in a provisioning workflow:

import os
import requests

api_key = os.environ["OBELINF_KEY"]
org_slug = "my-org"
headers = {
    "Authorization": f"Bearer {api_key}",
    "Content-Type": "application/json",
}

new_device = {
    "name": "web-prod-01",
    "device_type": "server",
    "status": "active",
    "site_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
}

response = requests.post(
    f"https://api.obelinf.com/{org_slug}/devices",
    headers=headers,
    json=new_device,
)
response.raise_for_status()
device = response.json()
print(f"Created device {device['name']} with ID {device['id']}")

When you automate device creation in your provisioning pipeline, every server, switch, or firewall that gets deployed is automatically documented with no manual data entry required. The same approach applies to updating device status, managing cable connections, assigning IP addresses, and tracking circuit information.

Building Real World Automation Workflows

A common integration point is your infrastructure provisioning tooling. When a provisioning workflow creates a new server, you add a step that calls the Obelinf API to create a corresponding device record. This ensures that the device appears in your documentation at the same moment it becomes operational, not days or weeks later when someone gets around to updating the inventory manually. The same approach works for decommissioning: your decommissioning script can archive the device record and disconnect its interfaces in the same step that powers down the hardware.

For teams using configuration management tools, API keys enable automatic reconciliation of IP address assignments, VLAN configurations, and DNS records. Your configuration management system can query Obelinf for the current state of each resource and flag any discrepancies, turning your documentation into an active validation layer rather than a static record that drifts out of sync over time.

Security

Obelinf provides a complete API platform designed for infrastructure automation. API keys are scoped to your organization and support granular permission levels, so you can give read only access to monitoring tools and full access to provisioning systems without compromising security.

The API itself exposes every resource in Obelinf: devices, sites, racks, interfaces, cables, IP addresses, subnets, VLANs, circuits, and more. Whether you need to read the current state of your infrastructure, create new resources during provisioning, or update existing records during decommissioning, the API follows consistent patterns that integrate easily with any programming language or tool. For teams that need programmatic access to their infrastructure documentation, Obelinf provide the authentication mechanism that makes automation practical and secure.

You can create your account for free at obelinf.com and start building the automated workflows that will keep your source of truth accurate without requiring anyone on your team to manually update device records or reconcile spreadsheets.

Frequently Asked Questions

How do I automate infrastructure documentation using APIs?
API automation connects your provisioning tools, monitoring systems, and CI/CD pipelines directly to your infrastructure management platform. When a provisioning workflow creates a new server, it calls the API to create a corresponding device record automatically. Obelinf provides a REST API that covers every resource type, so you can automate device creation, IP assignment, status updates, and decommissioning without manual data entry.
What infrastructure operations can I automate with the Obelinf API?
You can automate device creation during provisioning, status updates when hardware is decommissioned, IP address allocation and deallocation, VLAN configuration reconciliation, cable connection documentation, and circuit tracking. The API follows consistent patterns across all resource types, making it straightforward to integrate into existing automation workflows using any programming language.
How do API keys work for infrastructure automation security?
API keys act as programmatic credentials that allow scripts and tools to interact with your infrastructure data without requiring human browser login. Obelinf generates keys that are displayed once and scoped to your organization with granular permission levels. You can give read-only access to monitoring tools and full access to provisioning systems without compromising security.
How does API-driven documentation prevent source of truth drift?
When your automation pipeline reads from and writes to the same infrastructure platform, the documented state and actual state stay in sync. Every provisioning step writes back to the source of truth, and every decommissioning step cleans up the record. Without this bidirectional flow, automation reads from your documentation but writes assignments elsewhere, creating divergence that eventually causes conflicts.
What programming languages work with the Obelinf API?
The API uses standard HTTP methods and sends data as JSON, so it works with any programming language that has an HTTP client library. Python, Go, TypeScript, and Ruby are all common choices for infrastructure automation scripts. The API key is sent as a Bearer token in the Authorization header, following widely supported authentication conventions.