← 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 an API payload includes an attribute_slug field, Omnismith resolves the slug against the project’s attribute registry automatically. The primary attribute_id UUID remains fully supported across all endpoints.

{
  "template_id": "019fc909-e3f1-775b-9070-afb5acdf2360",
  "attribute_values": [
    {
      "attribute_slug": "product_title",
      "value": "Ergonomic Mechanical Keyboard"
    },
    {
      "attribute_slug": "sku",
      "value": "KB-ERG-01"
    }
  ]
}

The payload resolver evaluates attribute_slug whenever attribute_id is omitted. If both keys are present in a single attribute value object, attribute_id takes precedence to ensure deterministic execution for internal system workflows.

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.