API reference
REST API v1 for Aantarprerana ERP.
Authentication
All requests use a bearer token. Create one in the app under Settings → API. The token is shown once — store it securely. Requests are scoped to your organisation.
curl -H "Authorization: Bearer sk_your_token" \
https://api-aantarprerana.dev.diginnovators.site/api/v1/job-cardsMissing or invalid token → 401 Unauthorized.
Endpoints
GET
/api/v1/job-cardsList job cards for your organisation (most recent first).
Query params
limit(number) — Max rows (1–100, default 50).
Example request
curl -H "Authorization: Bearer sk_your_token" \
https://api-aantarprerana.dev.diginnovators.site/api/v1/job-cardsExample response
{
"data": [
{
"id": "clx…",
"jcnNumber": 1345,
"date": "2026-01-02T00:00:00.000Z",
"serialNo": "6STTCS3",
"problem": "Dell laptop dead",
"value": 16520,
"customer": { "name": "Semsys" },
"category": { "name": "Inward" },
"stage": { "name": "Task Completed" }
}
]
}GET
/api/v1/customersList customers for your organisation.
Query params
limit(number) — Max rows (1–100, default 50).
Example request
curl -H "Authorization: Bearer sk_your_token" \
https://api-aantarprerana.dev.diginnovators.site/api/v1/customersExample response
{
"data": [
{ "id": "clx…", "name": "Semsys", "phone": null, "email": null, "_count": { "jobCards": 12 } }
]
}