Quickstart

Create an API key, send a request, and parse the JSON response.

1. Create an API key

Sign in to the developer dashboard and create a key with at least read permission.

Store securely
# .env.local (never commit)
MIDASAI_API_KEY=mk_your_key_here

2. Send your first request

All requests go to https://api.midasai.tech. Pass your key in the Authorization header.

curl
curl "https://api.midasai.tech/v1/listings?limit=5" \
  -H "Authorization: Bearer YOUR_API_KEY"
JavaScript
const res = await fetch("https://api.midasai.tech/v1/listings?limit=5", {
  headers: { Authorization: process.env.MIDASAI_API_KEY! },
})
const { data, pagination } = await res.json()
console.log(data.length, pagination.total)
PowerShell
$response = Invoke-RestMethod -Uri "https://api.midasai.tech/v1/listings?limit=5" -Headers @{
  Authorization = $env:MIDASAI_API_KEY
}
$response.data | Select-Object -First 3 title, type

3. Parse the response

JSON shape
{
  "data": [
    { "id": "…", "title": "My Skill", "type": "SKILL", "price": 0 }
  ],
  "pagination": { "page": 1, "limit": 5, "total": 120, "total_pages": 24 }
}