Skip to content

API Reference

Welcome to the Atlas ERP API Reference. The backend exposes a comprehensive, RESTful API (built with NestJS) that powers the frontend application and can be used for third-party integrations.

Base URL

In local development, the API is available at:

Text Only
http://localhost:3001/api/v1

In production, the base URL depends on your deployment (e.g., https://api.yourdomain.com/api/v1).

In this section

General Conventions

  1. JSON Only: All requests must send Content-Type: application/json and will receive JSON responses.
  2. Standard Response Format: All successful API responses are wrapped in a standard object:
    JSON
    1
    2
    3
    4
    {
      "success": true,
      "data": { ... } // Or an array []
    }
    
  3. Standard Error Format: All errors are wrapped in a standard object:
    JSON
    1
    2
    3
    4
    5
    6
    7
    {
      "success": false,
      "error": {
        "statusCode": 404,
        "message": "Resource not found"
      }
    }
    
  4. Pagination: Endpoints returning lists generally accept page and limit query parameters.