# HÜNT auth.md

How an AI agent (or its developer) gets access to HÜNT: the candidate database exposed over MCP and a REST API.

**Audience:** AI agents and the people who run them. **Last reviewed:** 2026-12-03.

## How access works

Two ways in, both tied to a HÜNT account:

- **OAuth 2.1 with Dynamic Client Registration (RFC 7591) and PKCE** at `https://api.huntshare.tech/mcp/oauth`. The MCP client (Claude, ChatGPT, Claude Code, Cursor, VS Code and any other OAuth-capable client) registers itself, opens HÜNT sign-in in the browser and asks the person to allow access. The first sign-in grants a free trial wallet; after that calls are paid from the balance of the team the person belongs to. No key to copy.
- **API key** issued by a person in their HÜNT account, for agents and clients that cannot run an OAuth flow. Used as `Authorization: Bearer <key>` or as a personal link.

There is no anonymous access and no agent-only registration: every credential belongs to a person with a HÜNT account, and that person's team pays for the calls.

## Provisioning an API key (done once, by a human)

1. Sign in at https://huntshare.tech/search (Telegram, Google or Yandex).
2. Open **Account → "API & AI chats"**: https://huntshare.tech/user/account/?tab=api
3. Issue one of two credentials:
   - an **API key** for the `Authorization` header, or
   - a **personal link** for clients that cannot set headers.
   A free trial key is available there as well.

Requests are paid per call from the team balance of the account that issued the credential. Some tools are free (`get_playbook`, `count_candidates`, `get_balance`). Prices: https://huntshare.tech/agents#price

## Supported methods

| Method | How to use it |
|---|---|
| OAuth 2.1 (Claude, ChatGPT, Claude Code, Cursor, VS Code and other clients with OAuth) | Add `https://api.huntshare.tech/mcp/oauth` as a connector / MCP server. The client opens HÜNT sign-in and asks you to allow access; the first sign-in grants a free trial, then calls are paid from your team balance. Discovery: `https://api.huntshare.tech/.well-known/oauth-protected-resource/mcp/oauth` and `https://api.huntshare.tech/.well-known/oauth-authorization-server`. |
| API key (your own agents, Cursor, VS Code) | `Authorization: Bearer <key>` on `https://api.huntshare.tech/mcp` (MCP, Streamable HTTP) and on the REST API `https://api.huntshare.tech/v1/` |
| Personal link | `https://api.huntshare.tech/mcp/<token>`. The link is the credential: keep it secret, anyone who has it spends your balance. |

No other methods are supported.

## Using the credential

- Add the MCP server to your client with the URL (and header, for keys) above. Call `get_playbook` first: it is free and describes the intended workflow.
- Machine-readable descriptions: MCP server card https://api.huntshare.tech/.well-known/mcp.json, REST OpenAPI https://api.huntshare.tech/v1/docs.json, API catalog https://huntshare.tech/.well-known/api-catalog
- Human documentation: https://huntshare.tech/agents, https://cm-lk.huntshare.tech/guide/mcp and https://api.huntshare.tech/v1/docs

## Revocation

Revocation is done by a person, not by the agent. A team admin revokes keys, personal links and OAuth connections in **Account → "API & AI chats"** (https://huntshare.tech/user/account/?tab=api) or at https://cm-lk.huntshare.tech/tokens. There is no OAuth revocation endpoint; removing the connector in the client alone does not revoke the token on our side. Treat a leaked personal link like a leaked password. Questions: help@huntshare.tech.

## Contact

help@huntshare.tech
