Introduction
Read your Ajour sales, products and report figures from your own systems.
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.
Start with your agent
Paste one prompt into Claude, ChatGPT or Cursor.
Get started
Quick start
Create a key and make your first calls in five minutes.
Authentication
API keys, scopes and location limits.
API reference
Every endpoint, parameter and response.
AI agents
Prompts and files that help AI agents use the API.
Agent skills
Install the ajour-api skill in Claude Code, Codex, Cursor and more.
Recipes
Turnover to a spreadsheet, Power BI and nightly copies.
How it works
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.
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.
Call the API
Send GET requests to https://api.ajour.dk/v1 with Authorization: Bearer <key>. Start with /v1/company.
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.
What you can read
Company and catalog
Your company, your locations, product groups and products with prices.
Sales key figures
Turnover, transactions, average receipt and margin for any period. The same figures as the dashboard cards.
Sales breakdowns
Sales per product group, product, location, salesperson, hour, weekday, day or month.
Sales lines and reports
Every receipt line, and the Ajour reports as PDF or Excel files.
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 |
First call
curl https://api.ajour.dk/v1/company \
-H "Authorization: Bearer $AJOUR_API_KEY"