> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.erlcrussia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# System Information

> Retrieve system information and Economy API statistics.

Available actions:
- `stats` - general statistics (users, businesses, mafias, governmentBalance).
- `uptime` - server uptime.
- `dbStatus` - database connection status.




## OpenAPI

````yaml en/openapi/en-economy-v2-openapi.yaml GET /moscowroleplay/civops/system
openapi: 3.1.0
info:
  title: ER:LC Russia API V2 - Moscow RolePlay Economy API V2
  version: 2.0.0
servers:
  - url: https://api.erlcrussia.xyz/v2
    description: ER:LC Russia API V2
security: []
tags:
  - name: Moscow RolePlay Economy API V2
    description: Endpoints for managing economy and CivOps system.
paths:
  /moscowroleplay/civops/system:
    get:
      tags:
        - Moscow RolePlay Economy API V2
      summary: System Information
      description: >
        Retrieve system information and Economy API statistics.


        Available actions:

        - `stats` - general statistics (users, businesses, mafias,
        governmentBalance).

        - `uptime` - server uptime.

        - `dbStatus` - database connection status.
      parameters:
        - name: action
          in: query
          description: Action type for retrieving data.
          required: true
          schema:
            type: string
            enum:
              - stats
              - uptime
              - dbStatus
      responses:
        '200':
          description: Successful response with system data.
          content:
            application/json:
              schema:
                type: object
              examples:
                stats:
                  summary: System statistics.
                  value:
                    users: 216
                    businesses: 9
                    mafias: 1
                    governmentBalance: 99990000001
                    uptime: 1132.925331823
                    memory:
                      rss: 194883584
                      heapTotal: 72372224
                      heapUsed: 69451704
                      external: 6152340
                      arrayBuffers: 416832
                    timestamp: '2026-04-23T16:21:16.502Z'
                uptime:
                  summary: Uptime.
                  value:
                    uptime: 1138.501762406
                    uptimeFormatted: 0д 0ч 18м 58с
                    timestamp: '2026-04-23T16:21:22.078Z'
                dbStatus:
                  summary: DB status.
                  value:
                    status: connected
                    timestamp: '2026-04-23T16:21:29.210Z'
        '400':
          description: Request error (unknown action).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedMissingOrInvalidToken'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          description: Error checking DB status.
          content:
            application/json:
              schema:
                type: object
              examples:
                db_error:
                  summary: DB connection error.
                  value:
                    status: disconnected
                    error: Connection timeout
      security:
        - MRPAPIKey: []
components:
  schemas:
    ErrorResponse:
      type: object
      description: Standard error format.
      required:
        - code
        - message
      properties:
        code:
          type: integer
          description: API error code.
          example: 5007
        message:
          type: string
          description: Error message/identifier.
          example: Missing Token
    UnauthorizedError:
      type: object
      description: Authentication error (missing or invalid token).
      required:
        - code
        - message
      properties:
        code:
          type: integer
          example: 5007
        message:
          type: string
          example: Missing Token
    ForbiddenError:
      type: object
      description: Access error (forbidden).
      required:
        - code
        - message
      properties:
        code:
          type: integer
          example: 5009
        message:
          type: string
          example: Forbidden
    RateLimitError:
      type: object
      description: Request limit exceeded error.
      required:
        - code
        - message
      properties:
        code:
          type: integer
          example: 6021
        message:
          type: string
          example: Rate Limit Exceeded
        retry_after:
          type: integer
          description: Time until limit reset in seconds.
          example: 30
  responses:
    UnauthorizedMissingOrInvalidToken:
      description: Authentication error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UnauthorizedError'
          examples:
            Missing Token:
              summary: No token.
              value:
                code: 5007
                message: Missing Token
            Invalid Token:
              summary: Invalid or deactivated token.
              value:
                code: 5008
                message: Invalid Token
            Invalid Master Key:
              summary: Invalid master key.
              value:
                code: 5006
                message: Invalid Master Key
    Forbidden:
      description: Access forbidden.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ForbiddenError'
          examples:
            Forbidden:
              summary: No access rights to endpoint.
              value:
                code: 5009
                message: Forbidden
            Api Version Forbidden:
              summary: Access to this API version is forbidden.
              value:
                code: 5010
                message: Api Version Forbidden
            Query Param Forbidden:
              summary: Query parameter is forbidden.
              value:
                code: 5011
                message: Query Param Forbidden
    TooManyRequests:
      description: Request limit exceeded.
      headers:
        X-RateLimit-Limit:
          description: Maximum requests per minute.
          schema:
            type: integer
            example: 60
        X-RateLimit-Remaining:
          description: Remaining number of requests.
          schema:
            type: integer
            example: 0
        Retry-After:
          description: Seconds until limit reset.
          schema:
            type: integer
            example: 30
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitError'
          examples:
            Rate Limit Exceeded:
              summary: Request limit exceeded.
              value:
                code: 6021
                message: Rate Limit Exceeded
                retry_after: 30
  securitySchemes:
    MRPAPIKey:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: |
        API key for accessing CivOps endpoints.

        Passed in the `Authorization: Bearer <key>` header.

        REQUIRED FOR ALL CIVOPS ENDPOINTS (except /health).

````