# Getting started

> Get an API key and make your first request.

## 1. Get a key

There are two kinds of keys. Each works only for its own purpose.

| Key | For | How you get it |
|---|---|---|
| Catalog key | Downloading your catalog with `GET /catalog/{format}` | Ask your contact person at Vink. A Vink employee creates the key, after which you see it in MyVink under **Connections**. |
| MCP key | The [Vink MCP server](/mcp/) | Create it yourself in MyVink under **Connections**. |

MyVink shows a new key only once. Store it in a password manager or a secret store right away. If you lose it, create a new one; the old key stops working.

## 2. Keep the key out of your code

Put the key in an environment variable and read it from there. All examples on this site use `VINK_API_KEY`:

```sh
export VINK_API_KEY='paste your key here'
```

Never put the key in a URL, a repository or a shared document.

## 3. First request

Download your catalog as JSON:

```sh
curl -sS -H "Authorization: Bearer $VINK_API_KEY" \
  -o catalog.json \
  https://api.prod.myvink.be/catalog/json
```

A `200` with a file means everything works. Something else? The body tells you what went wrong, for example:

```json
{"error":{"code":"UNAUTHORIZED","message":"Missing, invalid or inactive API key."}}
```

[Errors](/errors/) lists every code.

## 4. Connect an assistant

With an MCP key you can add the Vink MCP server to Claude Code in one line:

```sh
claude mcp add --transport http vink https://mcp.myvink.be/mcp --header "Authorization: Bearer $VINK_API_KEY"
```

The [MCP server](/mcp/) page has the configuration for Cursor, VS Code and Claude Desktop.
