← All posts

Referencing Attributes via Project-Unique Slugs in API and Schema Workflows

Eliminate UUID lookup friction in dynamic entity payloads. Omnismith introduces project-unique attribute slugs for human-readable API writes, telemetry streams, and AI workflows.

3 min read Published August 3, 2026

Referencing Attributes via Project-Unique Slugs in API and Schema Workflows

Dynamic Entity-Attribute-Value (EAV) architectures rely on immutable UUID identifiers to map entity attributes across dynamic schemas. While UUIDs guarantee collision-free uniqueness across multi-tenant data structures, requiring raw database keys in client payloads introduces unnecessary friction. Application developers, ingestion scripts, and automated pipelines must execute pre-flight schema lookups or hardcode internal IDs into application code before transmitting data.

Omnismith resolves this coupling by introducing string-based attribute aliases through project-unique slugs. Attributes can now accept an optional slug (attribute_slug), allowing API write payloads, entity search filters, metric telemetry streams, and schema management workflows to reference fields using human-readable names.

Attribute Identifier Resolution

Attribute definitions can be assigned a slug during initial creation or through subsequent schema updates. Slugs are scoped to their active project, allowing different projects to use identical, intuitive slug names (such as sku or product_title) without collision.

When interacting with entity endpoints, Omnismith accepts a lightweight attributes dictionary keyed by attribute slugs or UUIDs. Values are automatically type-cast and validated against the template schema:

{
  "attributes": {
    "product_title": "Ergonomic Mechanical Keyboard",
    "sku": "KB-ERG-01"
  }
}

The payload resolver evaluates attribute slugs and canonical attribute UUIDs interchangeably. Both can be mixed freely in a single request, providing ergonomic developer experience without sacrificing schema guarantees.

Entity Operations and Metric Ingestion

Support for attribute_slug references is integrated across core entity data paths:

{
  "metric_values": [
    {
      "attribute_slug": "warehouse_stock_level",
      "value": "84",
      "updated_at": "2026-08-07T09:30:00Z"
    }
  ]
}

During execution, telemetry payloads referencing slugs are resolved automatically and streamed directly into the metric store without performance penalties.

Platform and AI Assistant Integration

Slugs serve as surface-level references across all platform tools:

Scoping and Backward Compatibility

Attribute slugs are optional and can be introduced progressively into existing projects without breaking existing integrations.

By introducing project-unique attribute slugs, Omnismith eliminates identifier coupling, making dynamic schema integrations cleaner and far more approachable for developer teams and AI workflows alike.