Developer Platform
REST API Reference
Endpoints, parameters and response shapes
A concise reference for the Theaimart Developer Platform. All paths are relative to:
https://api.theaimart.co/api/v1
Authenticate with a bearer API key. All bodies are JSON.
Listings
| Method | Path | Description |
|---|---|---|
GET | /apps | List your apps |
POST | /apps | Create an app listing |
GET | /apps/{id} | Get an app |
PATCH | /apps/{id} | Update an app |
POST | /apps/{id}/builds | Upload a build (multipart) |
GET | /webapps · POST /webapps | Web app listings |
GET | /agents · POST /agents | Agent listings |
Releases
| Method | Path | Description |
|---|---|---|
POST | /releases | Publish a release |
GET | /releases?listing_id= | List releases for a listing |
POST | /releases/{id}/rollback | Roll back to previous |
Commerce & insight
| Method | Path | Description |
|---|---|---|
GET | /analytics/overview | Installs, revenue, retention |
GET | /finance/earnings | Earnings breakdown |
GET | /finance/payouts | Payout history |
GET | /reviews?listing_id= | Reviews for a listing |
POST | /webhooks · DELETE /webhooks/{id} | Manage subscriptions |
Pagination
List endpoints are cursor‑paginated:
curl "https://api.theaimart.co/api/v1/apps?limit=25&cursor=eyJpZCI6..." \
-H "Authorization: Bearer $THEAIMART_API_KEY"
{
"data": [ /* ... */ ],
"page": { "has_more": true, "next_cursor": "eyJpZCI6..." }
}
Errors
Standard HTTP status codes with a structured body:
{
"error": {
"code": "validation_error",
"message": "pricing.amount must be a positive integer",
"field": "pricing.amount",
"status": 400
}
}
| Status | Meaning |
|---|---|
200 / 201 | Success |
400 | Invalid request |
401 | Missing/invalid API key |
403 | Key lacks the required scope |
404 | Resource not found |
409 | Conflict (e.g. duplicate version) |
422 | Semantic validation failed |
429 | Rate limited — back off |
5xx | Server error — retry with backoff |
Monetary amounts are integers in the currency's smallest unit — paise for INR, cents for USD. So { "amount": 49900, "currency": "INR" } is ₹499.00. Always pair amount with currency.