Skip to main content

Introduction

The Solarecliente API provides a comprehensive RESTful interface for managing solar energy clients, projects, installations, and related data. This API enables seamless integration with your existing systems and workflows.

Authentication

Learn how to authenticate your API requests

Endpoints

Explore all available API endpoints

Rate Limits

Up to 1000 requests per hour per API key

Support

Contact our support team for assistance

Base URL

All API requests should be made to:
https://api.solarecliente.com/v1

Request Format

The API accepts JSON-formatted request bodies. Ensure you include the appropriate Content-Type header:
Content-Type: application/json

Response Format

All API responses are returned in JSON format with the following structure:

Success Response

{
  "success": true,
  "data": {
    // Response data
  },
  "meta": {
    "timestamp": "2026-03-11T10:30:00Z",
    "requestId": "req_abc123"
  }
}

Error Response

{
  "success": false,
  "error": {
    "code": "INVALID_REQUEST",
    "message": "Descriptive error message",
    "details": {}
  },
  "meta": {
    "timestamp": "2026-03-11T10:30:00Z",
    "requestId": "req_abc123"
  }
}

HTTP Status Codes

The API uses standard HTTP status codes:
Status CodeDescription
200Success - Request completed successfully
201Created - Resource created successfully
400Bad Request - Invalid request parameters
401Unauthorized - Missing or invalid authentication
403Forbidden - Insufficient permissions
404Not Found - Resource not found
429Too Many Requests - Rate limit exceeded
500Internal Server Error - Server error

Pagination

Endpoints that return lists support pagination using query parameters:
page
integer
default:"1"
Page number to retrieve
limit
integer
default:"20"
Number of items per page (max: 100)

Pagination Response

{
  "success": true,
  "data": [
    // Array of items
  ],
  "meta": {
    "pagination": {
      "page": 1,
      "limit": 20,
      "total": 150,
      "totalPages": 8
    }
  }
}

Rate Limiting

API requests are limited to:
  • 1000 requests per hour per API key
  • Rate limit information is included in response headers:
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 950
X-RateLimit-Reset: 1678534200

Versioning

The API is versioned through the URL path (/v1). We maintain backwards compatibility and provide advance notice of any breaking changes.

SDKs and Libraries

JavaScript

npm install @solarecliente/sdk

Python

pip install solarecliente

PHP

composer require solarecliente/sdk

Build docs developers (and LLMs) love