# 1lookup.dev auth.md

How AI agents authenticate to 1lookup.dev, a data lookup API (phone, email, IP, company, registry, web and social data).

## Who registers

A person, not the agent. 1lookup.dev has no agent self-registration endpoint: there is no anonymous, verified-email or
ID-JAG registration, and no `POST /agent/identity`. Every account belongs to a person who signs up at https://1lookup.dev/signup,
chooses a plan (from $29 a month, 7-day free trial, card required) and pays for usage
in credits. If you are an agent without credentials, ask your user for one of the options below.

## Credentials

### 1. API key (REST API, MCP, A2A)

- Created by the account owner in the dashboard: https://1lookup.dev/dashboard (API keys).
- Live keys start with `1lk_live_` and spend credits. Test keys start with `1lk_test_`, return each
  product's sample response and spend nothing: use them to try an integration.
- Send it as a bearer token on every request: `Authorization: Bearer <key>`.
- Setup keys made by the onboarding wizard expire after 7 days; other keys last until revoked.

### 2. OAuth sign-in (MCP clients)

- MCP server: https://mcp.1lookup.dev/mcp (Streamable HTTP).
- Clients that support MCP authorization (Claude, ChatGPT, Grok) discover it from the Protected Resource Metadata at
  https://1lookup.dev/.well-known/oauth-protected-resource and send the user through the sign-in in their browser.
- The resulting access token is used as a bearer token on the MCP endpoint. Nothing is pasted by hand.

## Use

| Interface | Endpoint | Credential |
|---|---|---|
| REST API | `POST https://api.1lookup.dev/v1/{product-slug}` | API key |
| MCP | `https://mcp.1lookup.dev/mcp` | OAuth token or API key |
| A2A | `https://api.1lookup.dev/a2a` (JSON-RPC, `SendMessage`) | API key |

API description: https://1lookup.dev/openapi.json. Agent card: https://1lookup.dev/.well-known/agent-card.json.
MCP server card: https://1lookup.dev/.well-known/mcp/server-card.json. Agent skills: https://1lookup.dev/.well-known/agent-skills/index.json.

## Errors and revocation

- `401 unauthorized`: the key or token is missing, malformed, revoked or expired. Stop and ask your user for a new one.
- `402 insufficient_credits`: the account has no credits or no active plan. Tell your user; do not retry.
- `429 rate_limited`: wait for the `Retry-After` seconds.
- Keys are revoked by the account owner in the dashboard, which takes effect at once. OAuth access ends when the user
  disconnects the app.

## Contact

1lookup@volods.com. Security reports: https://1lookup.dev/.well-known/security.txt.
