# Introduction (/)

The Ajour Public API lets you read your own Ajour data from other systems: a spreadsheet, Power BI, your accounting system or an AI agent. Version 1 is **read-only**, and every number matches the Ajour dashboard and reports.

<AgentPrompt />

## Get started [#get-started]

<GuideCards>
<GuideCard href="/quick-start/" title="Quick start" description="Create a key and make your first calls in five minutes." flow={[null,null,null]} />

<GuideCard href="/authentication/" title="Authentication" description="API keys, scopes and location limits." flow={[null,null,null]} />

<GuideCard href="/api-reference/" title="API reference" description="Every endpoint, parameter and response." flow={[null,null,null]} />

<GuideCard href="/ai-agents/" title="AI agents" description="Prompts and files that help AI agents use the API." flow={[null,null,null]} />

<GuideCard href="/agent-skills/" title="Agent skills" description="Install the ajour-api skill in Claude Code, Codex, Cursor and more." flow={[null,null,null]} />

<GuideCard href="/recipes/" title="Recipes" description="Turnover to a spreadsheet, Power BI and nightly copies." flow={[null,null,null]} />
</GuideCards>

## How it works [#how-it-works]

<Steps>
<Step>
### Create a key [#create-a-key]

In the Ajour back office, go to **Settings → API keys**. Choose the scopes and the locations the key can see. Ajour shows the key one time.
</Step>

<Step>
### Keep the key safe [#keep-the-key-safe]

Store it in an environment variable or a secret store, for example `AJOUR_API_KEY`. Never put it in a web page or a chat.
</Step>

<Step>
### Call the API [#call-the-api]

Send `GET` requests to `https://api.ajour.dk/v1` with `Authorization: Bearer <key>`. Start with `/v1/company`.
</Step>

<Step>
### Use the data [#use-the-data]

Load the figures into a spreadsheet, Power BI or your own system, or let an AI agent answer questions about your sales.
</Step>
</Steps>

## What you can read [#what-you-can-read]

<Cards>
<Card title="Company and catalog" href="/api-reference/company-and-catalog/getCompany/">
Your company, your locations, product groups and products with prices.
</Card>

<Card title="Sales key figures" href="/api-reference/sales/getSalesSummary/">
Turnover, transactions, average receipt and margin for any period. The same figures as the dashboard cards.
</Card>

<Card title="Sales breakdowns" href="/api-reference/sales/getSalesBreakdown/">
Sales per product group, product, location, salesperson, hour, weekday, day or month.
</Card>

<Card title="Sales lines and reports" href="/api-reference/sales/listSales/">
Every receipt line, and the Ajour reports as PDF or Excel files.
</Card>
</Cards>

## At a glance [#at-a-glance]

| What | Value |
| --- | --- |
| Base URL | `https://api.ajour.dk/v1` |
| Format | JSON, UTF-8 |
| Authentication | `Authorization: Bearer <API key>` |
| OpenAPI file | [`/openapi/public-v1.json`](/openapi/public-v1.json) |

## First call [#first-call]

```bash
curl https://api.ajour.dk/v1/company \
  -H "Authorization: Bearer $AJOUR_API_KEY"
```