"""Shared utilities for the API."""