API Reference
Version 1 of the MidasAI REST API. All endpoints require a valid API key unless noted.
Base URL: https://api.midasai.tech
Listings
GET
/v1/listingsRequires readList active marketplace listings
Example
curl -X GET "https://api.midasai.tech/v1/listings" \
-H "Authorization: YOUR_API_KEY"GET
/v1/listings/:idRequires readGet a single listing
Example
curl -X GET "https://api.midasai.tech/v1/listings/LISTING_ID" \
-H "Authorization: YOUR_API_KEY"POST
/v1/listingsRequires writeCreate a listing (creator)
Example
curl -X POST "https://api.midasai.tech/v1/listings" \
-H "Authorization: YOUR_API_KEY"PUT
/v1/listings/:idRequires writeUpdate your listing
Example
curl -X PUT "https://api.midasai.tech/v1/listings/LISTING_ID" \
-H "Authorization: YOUR_API_KEY"DELETE
/v1/listings/:idRequires deleteArchive your listing
Example
curl -X DELETE "https://api.midasai.tech/v1/listings/LISTING_ID" \
-H "Authorization: YOUR_API_KEY"Users
GET
/v1/users/meRequires readCurrent authenticated user
Example
curl -X GET "https://api.midasai.tech/v1/users/me" \
-H "Authorization: YOUR_API_KEY"PUT
/v1/users/meRequires writeUpdate your profile
Example
curl -X PUT "https://api.midasai.tech/v1/users/me" \
-H "Authorization: YOUR_API_KEY"GET
/v1/users/:idRequires readPublic user profile
Example
curl -X GET "https://api.midasai.tech/v1/users/LISTING_ID" \
-H "Authorization: YOUR_API_KEY"Analytics
GET
/v1/analytics/usageRequires readAPI usage for your key
Example
curl -X GET "https://api.midasai.tech/v1/analytics/usage" \
-H "Authorization: YOUR_API_KEY"GET
/v1/analytics/listingsRequires readListing performance stats
Example
curl -X GET "https://api.midasai.tech/v1/analytics/listings" \
-H "Authorization: YOUR_API_KEY"Webhooks
GET
/v1/webhooksRequires readList webhooks
Example
curl -X GET "https://api.midasai.tech/v1/webhooks" \
-H "Authorization: YOUR_API_KEY"POST
/v1/webhooksRequires writeRegister a webhook endpoint
Example
curl -X POST "https://api.midasai.tech/v1/webhooks" \
-H "Authorization: YOUR_API_KEY"DELETE
/v1/webhooks/:idRequires deleteRemove a webhook
Example
curl -X DELETE "https://api.midasai.tech/v1/webhooks/LISTING_ID" \
-H "Authorization: YOUR_API_KEY"Response format
Successful responses return JSON with a data field. List endpoints include pagination.
json
{
"data": [...],
"pagination": {
"page": 1,
"limit": 20,
"total": 42,
"total_pages": 3
}
}Errors return { "error": "message" } with an appropriate HTTP status code. See errors.