# For AI agents

> Give your AI agent access to Norwegian company data. One prompt to paste, then the agent creates a free key, sets up the connection itself and knows what costs money.


Firmasett is built to be used by agents, not only by people. Everything an agent needs is on [https://firmasett.no/llms.txt](https://firmasett.no/llms.txt) (in English): how to connect, which tools exist, what costs money, and which rules apply in Norway. The Norwegian version is at [https://firmasett.no/llms-no.txt](https://firmasett.no/llms-no.txt).

## Before you start: the key

Every call needs a key that starts with `fs_`. The same key is used everywhere: MCP, CLI and REST. There are two ways to get one.

**The agent creates it.** No auth header is needed:

```bash
curl -s -X POST https://firmasett.no/v1/registrer -H "Content-Type: application/json" \
  -d '{"epost": "USER_EMAIL", "navn": "OPTIONAL_NAME_OR_COMPANY"}'
```

The response is the usual envelope, and the key is in `resultat.nokkel`. Rules for the agent:

- Use the e-mail address of the person you work for, never an invented or shared address.
- Tell that person that a Firmasett account was created in their name.
- There is one account per e-mail address. If the address already has an account, you get an error telling the user to sign in at `https://firmasett.no/konsoll` and copy the key from there.

**The person creates it.** Go to the [console](https://firmasett.no/konsoll) (in Norwegian), enter your e-mail address and copy the key.

The free plan gives 1 000 enrichments and 100 search hits without a card.

## Setup prompt

Paste this into Claude, ChatGPT, Cursor or your own agent:

<div class="promptboks" markdown="1">
<button class="kopier" onclick="navigator.clipboard.writeText(this.nextElementSibling.innerText).then(()=>this.textContent='Copied')">Copy</button>
```text
Read https://firmasett.no/llms.txt and follow the getting-started section. My e-mail address is <your e-mail>;
create a free key for me with it (or use my existing key: fs_…).
Set up the connection that suits you (MCP over HTTP if you can), tell me briefly what I have to do by hand, if anything,
and confirm that it works by calling konto. Ask me before you spend phone credits.
```
</div>

The agent then reads the rules, chooses MCP or REST, and answers with plan and quota from `konto` (account). The first time, it also asks you six short questions (name, mobile, work e-mail, company, what you decide on, what you influence) and stores the answers on the account.

## Connections an agent can choose

### MCP over HTTP (recommended for chat clients)

URL `https://firmasett.no/mcp`. The endpoint supports OAuth, so Claude.ai, ChatGPT and other clients can add it as a connector with only the URL and sign in in the browser. Clients that send headers can use `Authorization: Bearer fs_…` instead. Clients that can do neither use `https://firmasett.no/mcp/fs_…` (the key in the URL; never share that URL).

```bash
claude mcp add --transport http firmasett https://firmasett.no/mcp --header "Authorization: Bearer fs_…"
```

Setup for Claude.ai, Claude Desktop, ChatGPT, Cursor, Windsurf and VS Code is on the [MCP page](/en/mcp).

### CLI (recommended for coding agents and files)

Claude Code, Codex and similar agents should use the [CLI](/en/cli) when a file is involved. The rows then stay out of the conversation, the job can be resumed, and the agent gets a skill that tells it how to do the work:

```bash
export FIRMASETT_NOKKEL=fs_…
firmasett konto
firmasett skill install
firmasett sjekk kunder.csv --torrkjoring
```

`--torrkjoring` means dry run.

### REST (for your own agents)

```bash
curl -s "https://firmasett.no/v1/selskaper/sok?bransje=69.2&fylke=Rogaland&har_dl_epost=ja&antall=5" \
  -H "Authorization: Bearer fs_…"
```

This searches companies (`selskaper/sok`) in industry code (`bransje`, NACE) 69.2 in the county (`fylke`) Rogaland where the managing director has an e-mail address (`har_dl_epost=ja`), five hits (`antall`). Response:

```json
{"status": "ok",
 "resultat": {"total": 212, "side": 1, "antall": 5, "treff": [{"orgnr": "9xxxxxxxx", "navn": "…", "daglig_leder": "…", "har_dl_epost": true, "har_dl_mobil": true, "…": "…"}]},
 "meta": {"plan": "gratis", "vindu": "totalt", "berikelser": {"grense": 1000, "brukt": 0, "igjen": 1000}, "sok": {"grense": 100, "brukt": 5, "igjen": 95}, "telefonpoeng": 0, "belastet": {"sok": 5}}}
```

`treff` are the hits, `grense` / `brukt` / `igjen` are limit / used / left, and `belastet` is what this call was charged. The [OpenAPI description](/openapi.json) can be pasted straight into an agent that builds its own tools.

## Rules the agent should follow

- **Read `status`, not the HTTP code.** `ikke_funnet` (not found) is HTTP 200 and free. `feil` (error) has a `kode` (`ugyldig_nokkel` = invalid key, `kvote_brukt` = quota used, `ingen_telefonpoeng` = no phone credits, `ugyldig_foresporsel` = invalid request) and a message in Norwegian.
- **Count before you fetch.** `antall_kun=ja` on a search is free and returns the total.
- **`meta` says what is left.** The agent does not need to call `konto` between calls.
- **Mobile numbers cost money.** Ask the user before fetching more than a few.
- **Show source and grade.** Every e-mail address, number and LinkedIn profile comes with `kilde` (source) and `grad` (grade) A–E. Tell the user how reliable the value is.
- **Norwegian law.** Calling a managing director at work: allowed. E-mail to a work address about something that concerns the business: allowed. SMS to the mobile of a natural person: requires consent (the Norwegian Marketing Control Act, markedsføringsloven, § 15). Do not use the data to contact people privately. Read [compliance](/en/compliance).
- **429 has Retry-After.** Wait that number of seconds; do not retry immediately.

## Why it is built this way

A flat price means an agent stuck in a loop does not produce a surprising invoice. Free misses mean the agent can try things. Quota in every response means it can plan. One response shape means it needs fewer examples to get it right. And the skill library means it does not have to invent the procedure itself.

## Next

- [The skill library](/bibliotek) (in Norwegian): ready-made procedures for prospecting, CRM cleaning and meeting preparation.
- [Our data](/en/data): what the fields mean and where they come from.
- [Integrations](/en/integrations): n8n, Zapier, Make, LangChain and the OpenAI Agents SDK.

---
Source: https://firmasett.no/en/ai-agents · Firmasett, Norwegian company data for people and AI agents. The whole service: https://firmasett.no/llms.txt
