---
title: "Resolve a Hugging Face artifact through the Algenta artifact bridge"
method: POST
path: "/v1/artifacts/resolve"
tags: ["LLM API"]
---

# Resolve a Hugging Face artifact through the Algenta artifact bridge

`POST /v1/artifacts/resolve`

## Request

- Base URL: `https://api.algenta.ai`
- URL: `https://api.algenta.ai/v1/artifacts/resolve`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Resolves a Hugging Face artifact path through the compatibility-ring artifact bridge. The default behavior is cache-only and never downloads from the network unless the caller explicitly sets local_files_only=false.

## Request body

- ArtifactBridgeResolveRequest
  - `repo_id` string, required: Hugging Face repository identifier.
  - `filename` string, required: Artifact filename to resolve from the selected repository.
  - `revision` string, nullable: Optional repository revision, tag, or commit hash.
  - `local_files_only` boolean: When true, fail closed to cache-only resolution and never download from the network.

## Response `200`

Successful Response

- ArtifactBridgeResolveResponse
  - `object` 'artifact_bridge_resolution'
  - `backend` string, required
  - `artifact_backend` string, nullable
  - `repo_id` string, required
  - `filename` string, required
  - `revision` string, nullable
  - `local_files_only` boolean, required
  - `status` 'resolved' | 'not_cached', required
  - `cache_root` string, nullable
  - `auth_env_vars` string[], required
  - `auth_configured` boolean, required
  - `auth_env_var_used` string, nullable
  - `resolved_path` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/codna/apis/algenta-api.md) · [All operations](https://skmtc.dev/codna/apis/algenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codna/apis/algenta-api/revisions/35d30f84a5df?raw)
