Skip to main content
GET
/
api
/
v1
/
assets
/
{asset_id}
Get Asset
curl --request GET \
  --url https://api.anomalyarmor.ai/api/v1/assets/{asset_id}
{
  "success": true,
  "data": null,
  "message": "<string>",
  "error": {},
  "meta": {}
}
Get complete details for a single asset including columns, relationships, freshness status, and tags.

When to Use

  • Asset details: Get full metadata for a specific table
  • Column inspection: List all columns with types and descriptions
  • Freshness check: Verify data recency for a single asset
  • Integration sync: Pull asset metadata into external tools

SDK & CLI Examples

from anomalyarmor import Client

client = Client(api_key="aa_live_xxx")

# Get by qualified name
asset = client.assets.get("snowflake.prod.public.orders")

print(f"Table: {asset.name}")
print(f"Columns: {len(asset.columns)}")
print(f"Freshness: {asset.freshness_status}")

# Access column details
for col in asset.columns:
    print(f"  {col.name}: {col.data_type}")

# Get by UUID
asset = client.assets.get(id="550e8400-e29b-41d4-a716-446655440000")

Parameters

ParameterTypeDescription
asset_idstringAsset ID (UUID) or qualified name
include_columnsbooleanInclude column details (default: true)

Response

{
  "id": "ast_abc123",
  "qualified_name": "snowflake.prod.public.orders",
  "asset_type": "table",
  "source": "snowflake.prod",
  "schema": "public",
  "name": "orders",
  "description": "Customer order records including order details and fulfillment status",
  "freshness": {
    "status": "fresh",
    "last_updated": "2024-01-15T08:30:00Z",
    "sla_threshold": "2h",
    "checked_at": "2024-01-15T09:00:00Z"
  },
  "columns": [
    {
      "name": "order_id",
      "data_type": "integer",
      "nullable": false,
      "description": "Unique identifier for each order",
      "tags": []
    },
    {
      "name": "user_email",
      "data_type": "varchar(255)",
      "nullable": true,
      "description": "Customer email address",
      "tags": ["pii:email"]
    }
  ],
  "tags": ["production", "critical"],
  "created_at": "2024-01-01T00:00:00Z",
  "updated_at": "2024-01-15T08:30:00Z"
}

Response Fields

FieldDescription
idUnique asset identifier
qualified_nameFull path: source.schema.table
descriptionHuman-readable description (generated or manual)
freshness.statusfresh, stale, or unknown
freshness.last_updatedTimestamp of most recent data
freshness.sla_thresholdConfigured freshness SLA
columnsArray of column definitions
columns[].tagsClassification tags on this column
tagsAsset-level tags

Error Responses

StatusMeaning
401Invalid or missing API key
404Asset not found
429Rate limit exceeded

Path Parameters

asset_id
string<uuid>
required

Response

Successful Response

Standard API response format.

success
boolean
required
data
unknown
message
string | null
error
Error · object
meta
Meta · object