# Noddi API for developers

Build on Noddi with the API: a quickstart, how a key signs a request, a first read-only call, and the full reference.

- **Customer APIs** (Preview): What a Noddi customer can do with their own account. Personal API keys are being built, and no customer operation is published until it has been reviewed, so this API is a preview.

## Quickstart

> Preview. Personal Noddi API keys are not issued yet, so nothing below can be called today. These pages describe the plan. They will state what is live only after the backend that issues keys is deployed.

1. When personal keys ship, create one in your account under **API access**.
2. Keep it in the environment variable `NODDI_API_KEY`, never in code or a URL. Examples and prompts read the key from there.
3. Make the first read-only call below.
4. Open the **API reference** for the operation you need.

## Create an API key

> Preview. Personal Noddi API keys are not issued yet. When available, look for **API access** in the account for the brand you book through.

## Authentication

Planned: a personal key is sent the same way as a partner key, as `Authorization: Api-Key <your key>`, and starts with `na_`. Each key holds the roles you choose when you create it, such as `roles/customerApi.accountViewer`, and never more than your own account can do. This is not live yet.

## Your first call

The first read-only call will be `GET /v1/accounts/me/settings/`, which reads your own account settings with the `roles/customerApi.accountViewer` role. The backend has not published it yet: it is not in the schema and cannot be called.

Request:

```
GET https://api.noddi.co/v1/accounts/me/settings/
```

## Changing data safely

> A request that uses **POST, PUT, PATCH or DELETE** changes live data, and some of it cannot be undone: a booking, a payment, a canceled visit.

- Start with `GET` requests. Read before you write.
- Before a request that changes data, check the method, the URL and the body.
- Never retry a request that changed data without checking what the first one did.
- This documentation never sends a request for you.

## AI coding assistant setup

**Connect an assistant to Noddi without a key.** The Noddi MCP server at `https://mcp.noddi.no/mcp` signs you in through the browser. An API key is not part of it. [Set up the assistant](https://www.noddi.co/no-en/mcp).

**Give a coding assistant the API.** Point it at the [OpenAPI file](https://www.noddi.co/openapi.json) and the [guides as Markdown](https://www.noddi.co/no-en/developers.md), or at [llms.txt](https://www.noddi.co/llms.txt). They are generated from the same source as this page.

A copyable prompt for the customer API arrives here when personal keys do. It will read the key from `NODDI_API_KEY`, make one read-only call, and ask before anything that changes data.
