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-cards

Missing or invalid token → 401 Unauthorized.

Endpoints

GET/api/v1/job-cards

List 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-cards

Example 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/customers

List 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/customers

Example response

{
  "data": [
    { "id": "clx…", "name": "Semsys", "phone": null, "email": null, "_count": { "jobCards": 12 } }
  ]
}