Quickstart
From zero to your first Andamio API call in 5 minutes, then the local app template when you're ready to build.
Get from zero to a working Andamio API call, then set up the local app template when you're ready to build a frontend.
Prerequisites
- Cardano wallet on mainnet with a small amount of ADA — developer registration happens on the mainnet app
- Cardano wallet on preprod with test ADA for development — Setup guide
- For the app template (optional): Node.js 20+ and npm 10+
1. Mint your Access Token
Your Access Token is your on-chain identity for Andamio. Developer registration lives on the mainnet app, so you need a mainnet Access Token — a preprod-only token can't register a developer account.
- Go to app.andamio.io
- Click Enter → Connect Wallet
- Connect your wallet (mainnet network)
- Enter an alias (permanent)
- Click Mint Access Token and sign
- Wait ~20 seconds for confirmation
2. Register and generate an API Key
API keys for every environment — preprod included — are managed on the mainnet app. (/api-setup on the preprod app redirects to the dashboard by design.)
- Go to app.andamio.io/api-setup
- Connect your wallet and sign in to the Gateway
- Register as a developer
- Select the network for your key — preprod for development
- Click Generate API Key and name it (e.g., "local-dev")
Preprod keys are open to everyone
Preprod and mainnet key generation are both open to all registered developers — as of API v2.4.1 (July 2026), no special access is needed for preprod. If you previously hit a 403 here, retry.
Save your key
Copy the key immediately — it won't be shown again.
3. Make your first API call
With just the API key you can read public data — no app template, no frontend, just curl. These read endpoints authenticate with the X-API-Key header alone.
List courses (this doubles as your connection test):
curl -X GET "https://preprod.api.andamio.io/api/v2/course/user/courses/list" \
-H "X-API-Key: YOUR_API_KEY"Responses wrap results in data with a meta block, and each item carries a source field marking whether it came from on-chain, off-chain, or both (see API Concepts):
{
"data": [
{
"course_id": "dbd4f125...406bcac3",
"course_address": "addr1...",
"owner": "some-alias",
"teachers": ["some-alias"],
"source": "merged"
}
],
"meta": {}
}Get the modules for a course:
curl -X GET "https://preprod.api.andamio.io/api/v2/course/user/modules/<course_id>" \
-H "X-API-Key: YOUR_API_KEY"What you can do with just an API key
| Endpoint | Description |
|---|---|
GET /course/user/courses/list | List courses with merged on-chain state |
GET /course/user/modules/{course_id} | Get a course's modules |
GET /course/user/slts/{course_id}/{course_module_code} | Get a module's SLTs |
GET /project/user/projects/list | List projects |
GET /project/user/project/{project_id} | Get project details |
POST /project/user/tasks/list | List a project's tasks |
The full, always-current endpoint list lives in the API Reference. These are read endpoints. For user-specific actions — enrolling, submitting assignments, claiming credentials — you authenticate the user with a wallet signature. See Authentication for the full JWT flow.
Set up the app template
Ready to build a frontend? The app template wires up Web3 login and sponsored transactions for you.
Clone and Install
git clone https://github.com/Andamio-Platform/andamio-app-template.git
cd andamio-app-template
npm installConfigure Environment
cp .env.example .envEdit .env:
NEXT_PUBLIC_ANDAMIO_GATEWAY_URL="https://preprod.api.andamio.io"
ANDAMIO_API_KEY="your-api-key-here"
NEXT_PUBLIC_CARDANO_NETWORK="preprod"
NEXT_PUBLIC_ACCESS_TOKEN_POLICY_ID="29aa6a65f5c890cfa428d59b15dec6293bf4ff0a94305c957508dc78"Start the Dev Server
npm run devOpen localhost:3000, click Enter, connect your wallet, and you should see your dashboard with your alias.
To sign in to your local app you'll need a preprod Access Token — mint one at preprod.app.andamio.io (same flow as step 1, with test ADA).
Ready for Mainnet?
These docs use preprod (Cardano testnet) for safe development. When your app is ready for production:
- Generate a mainnet API key at app.andamio.io/api-setup — the same portal that manages your preprod keys
- Update
.envwith mainnet settings — see Environment Reference
Troubleshooting
"/api-setup redirects me to /dashboard" — You're on the preprod app. API keys are managed on the mainnet app: app.andamio.io/api-setup.
"Access Token not found" — Check your wallet is set to preprod network.
"Invalid API key" — Verify there's no trailing whitespace and the key is quoted.
"Failed to fetch" — Test the gateway: curl https://preprod.api.andamio.io/health
Build errors — Regenerate types: npm run generate:types