3 endpoints
Installations
Manage solar panel installations
GET
List all installations
/installationsRetrieve a paginated list of all solar panel installations.
Parameters
| Parameter | Type | Description |
|---|---|---|
page | number | Page number |
per_page | number | Items per page |
region | string | Filter by region code |
Code Examples
curl -X GET "https://api.pipesolar.com/v1/installations" \
-H "Authorization: Bearer ps_live_..." \
-H "Content-Type: application/json"Response
Example Response
{
"data": [
{
"id": "inst_01H8X3",
"name": "Sunrise Residence",
"address": "123 Solar Ave, Austin, TX",
"region": "us-south",
"panel_count": 5
}
],
"meta": {
"page": 1,
"total": 12
}
}Playground
GET
/installationsTry itpageper_pageregionPOST
Create an installation
/installationsRegister a new solar panel installation site.
Request Body
application/json
namestringrequiredInstallation name
Example: "Sunrise Residence"
addressstringrequiredStreet address
Example: "123 Solar Ave, Austin, TX"
regionstringrequiredRegion code
Example: "us-south"
capacity_kwnumberTotal capacity
Example: 25
Code Examples
curl -X POST "https://api.pipesolar.com/v1/installations" \
-H "Authorization: Bearer ps_live_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Sunrise Residence",
"address": "123 Solar Ave, Austin, TX",
"region": "us-south",
"capacity_kw": 25
}'Playground
POST
/installationsTry itGET
Retrieve an installation
/installations/{installation_id}Get detailed information about a specific installation.
Parameters
| Parameter | Type | Description |
|---|---|---|
installation_idrequired | string | The installation ID |
Code Examples
curl -X GET "https://api.pipesolar.com/v1/installations/123" \
-H "Authorization: Bearer ps_live_..." \
-H "Content-Type: application/json"Playground
GET
/installations/{installation_id}Try itinstallation_id