---
title: "Resolve a repository or source URL to candidate equivalent source URLs."
method: GET
path: "/api/sources/resolve"
tags: ["Agent Docs"]
---

# Resolve a repository or source URL to candidate equivalent source URLs.

`GET /api/sources/resolve`

## Request

- Base URL: `https://huggingbay.xyz`
- URL: `https://huggingbay.xyz/api/sources/resolve`
- Auth: none required

Supply url or repo. Equivalent URLs are templates with verified:false. Name matches do not prove equal bytes or cross-source identity.

**Inputs.** Path, query and header fields are listed below. No request body is required.

**Outputs.** See each status below for its media type, schema and headers. A missing record or unavailable capability is not a successful empty result.

**Errors.** API JSON failures use the documented response schema. Read code, message and next; retry only when the response allows it. Auth, invalid input and missing records need a caller change.

**Rate limits.** Public read budgets apply by client IP and route group. This operation can have a smaller route-specific budget. Read Retry-After on 429 or retryable 503 responses.

## Query parameters

- `repo` string
- `url` string
- `region` string

## Response `200`

Resolve a repository or source URL to candidate equivalent source URLs.

- object
  - `schemaVersion` 'hugging-bay.source-resolve.v1', required
  - `equivalentSources` object[], required
  - `regionalPreference` object, required
  - `notes` string, required

## Other responses

- `400`: No source identity could be resolved.
- `429`: Request budget exceeded. Wait for Retry-After.

---

[API](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api.md) · [All operations](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api/revisions/865eb0f1b6ef?raw)
