Pipe Solar API
v1Read and send your company's leads and projects from your own systems and AI agents.
- Base address
https://staging-api.pipe.solar/v1- Authentication
Bearer psk_…- Limit
- 100 calls a minute per key
Getting started
- Step 1: Make a keyAn owner or admin makes one in Pipe under Settings → API Keys. It shows once: keep it in your system's secret store.
- Step 2: Call from a serverA company key reaches every endpoint below but Work orders, for your own company only; a requester company's key, which Pipe issues, reaches only Work orders. Keep it on your server, never in a web page.
- Step 3: Check itSend the key to
GET /v1/me. The answer names the key and its company.
{id} takes Pipe's id, the 10-character UID of the customer or the project, or the long record id Pipe gave your system before (such as 1650753380033x501766420143276000). It never takes the externalId you sent. A project also answers to its lead's id.
GET https://staging-api.pipe.solar/v1/me Authorization: Bearer psk_<40 characters>
{ "key": { "name": "Make scenario", "prefix": "psk_3f9a1c2b" }, "company": { "name": "Inty Power" } }
Errors
Every error has the same shape, and its message says what to change.
{ "error": { "code": "unauthorized", "message": "Send the API key as Authorization: Bearer <key>.", "docs": "https://developers.pipe.solar" } }
Retries and limits
- Every GET is safe to retry.
- Moving a stage to the stage the project is already in changes nothing, and answers
changed: false. - Setting the install date or NTP to the value it already holds changes nothing.
- Adding a file whose address this folder already holds adds nothing, and answers
added: false. - Creating a lead with an
externalIdyou sent before answers that lead, with 200, instead of making a second one.
- A key makes at most 100 calls a minute, every endpoint counted together; past that the answer is 429 with
Retry-After. - A list page holds at most 100 rows.
- A call adds at most 10 files, each 100 MB or less.
- Every answer carries
X-Request-Id. Send it to Pipe when you report a problem.
Check that a key works.
/v1/meCheck a key
Answers the key's name and its company.
GET https://staging-api.pipe.solar/v1/me Authorization: Bearer psk_<40 characters>
{ "key": { "name": "Make scenario", "prefix": "psk_3f9a1c2b" }, "company": { "name": "Inty Power" } }
Your company's people, by the id a lead's rep and setter take.
/v1/usersList your company's people
The people of your company, a page at a time: their id, name, sign-in email, role and whether they are active. Name a lead's rep or setter by this id (salesRepId, setterId); a lead's and a project's people carry the same id, as an activity's authorId does. Keep the id, not the email: a person's email can change. Only an active owner, admin, manager, rep or setter can be a lead's rep or setter. A dealer's key lists the dealer's people, an installer's key its own. Read only: people are invited and removed in Pipe.
GET https://staging-api.pipe.solar/v1/users Authorization: Bearer psk_<40 characters>
{ "data": [{ "id": "1695312000000x123456789012345678", "firstName": "Jordan", "lastName": "Lee", "email": "jordan@example.com", "role": "rep", "active": true, "company": { "name": "Inty Power" } }], "next": null }
Send homeowners to Pipe, read them back, and change their details.
/v1/leadsCreate a lead
Sends one homeowner to Pipe as a lead in the key's company. Send the same externalId again and the answer is the lead it already made, so a retried call makes no duplicate.
POST https://staging-api.pipe.solar/v1/leads Authorization: Bearer psk_<40 characters> Content-Type: application/json { "firstName": "Ana", "lastName": "Rivera", "address": { "line1": "812 Main St", "city": "Plano", "state": "TX", "postalCode": "75023" }, "externalId": "crm-1042" }
{ "leadId": "k57a…", "created": true, "unassigned": [] }
/v1/leadsList leads
Your company's leads, solar and HI, newest change first, a page at a time, with updatedSince to read only what changed. An installer's key lists every lead sold through it, its dealers' included.
GET https://staging-api.pipe.solar/v1/leads Authorization: Bearer psk_<40 characters>
{ "data": [{ "id": "j57a…", "status": "proposal", "updatedAt": "…" }], "next": null }
/v1/leads/{id}Read a lead
One lead: the customer, the address, the status, the source, the people and its files by folder. proposal is the lead's main option: the one the customer chose (status accepted) or signed (signed), else the newest still offered, with its system, price, financing and adders. project names the project once the customer buys.
GET https://staging-api.pipe.solar/v1/leads/{id} Authorization: Bearer psk_<40 characters>
{ "id": "j57a…", "reference": "D4YR1VSK7K", "productLine": "solar", "status": "proposal", "archived": false, "createdAt": "2026-09-12T15:00:00.000Z", "updatedAt": "2026-09-19T10:12:00.000Z", "customer": { "firstName": "Ana", "lastName": "Rivera", "email": "ana@example.com", "phone": "6025550100" }, "coBorrower": null, "address": { "line1": "812 Main St", "line2": null, "city": "Plano", "state": "TX", "postalCode": "75023", "country": "US" }, "utility": { "name": "Oncor", "monthlyBill": 182, "meterNumber": null }, "source": { "name": "Door knock", "subSource": null }, "externalId": "crm-1042", "partnerLeadId": null, "notes": null, "salesRep": { "id": "1695312000000x123456789012345678", "name": "Jordan Lee", "email": "jordan@example.com", "phone": null }, "setter": null, "project": null, "design": { "name": "Ana Rivera Design", "scaniflyProjectId": "64f1…", "scaniflyDesignId": "651a…", "soldScaniflyDesignId": null }, "proposal": { "id": "k17b…", "reference": "PS-14832", "label": "25-year loan", "status": "presented", "system": { "sizeKw": 8.2, "annualProductionKwh": 11480, "arrays": 2, "panels": { "count": 20, "manufacturer": "REC", "model": "Alpha Pure 410" }, "inverters": { "count": 20, "manufacturer": "Enphase", "model": "IQ8M", "name": null, "microinverter": true }, "batteries": null, "pricePerWatt": { "base": 3.1, "final": 3.47 } }, "price": { "total": 28450.5, "salesTax": 0, "beforeTax": 28450.5, "adders": 450, "discounts": 0, "incentives": 0, "net": 28450.5 }, "financing": { "type": "loan", "lender": "GoodLeap", "amount": 28450.5, "aprPercent": 3.99, "termMonths": 300, "monthlyPayment": 142.18, "dealerFeePercent": 18, "escalatorPercent": null }, "adders": [{ "name": "Critter guard", "quantity": 1, "total": 450 }], "links": { "proposal": "https://pipe.solar/p/7Hq2…" } }, "links": { "record": "https://pipe.solar/dashboard/proposals/j57a…", "proposal": "https://pipe.solar/p/7Hq2…" }, "contractFiles": [], "files": { "siteSurvey": ["https://…"], "utilityBill": ["https://…"] } }
/v1/leads/{id}Change a lead's details
Changes the customer's details, the sales rep and the setter. Send only the fields you change: an absent field is kept, and null clears an optional one. A field not in the list below (such as id, status or salesRep from a read) is refused with invalid. The answer is the changed lead. A new rep or setter must be an active member of the lead's company, or nothing changes. A rep taken off a lead stops seeing it, unless the lead is shared with them.
PATCH https://staging-api.pipe.solar/v1/leads/{id} Authorization: Bearer psk_<40 characters> Content-Type: application/json { "phone": "602-555-0199", "coBorrower": { "firstName": "Luis", "lastName": "Rivera" }, "salesRepEmail": "jordan@example.com" }
{ "id": "j57a…", "reference": "D4YR1VSK7K", "productLine": "solar", "status": "proposal", "archived": false, "createdAt": "2026-09-12T15:00:00.000Z", "updatedAt": "2026-09-19T10:12:00.000Z", "customer": { "firstName": "Ana", "lastName": "Rivera", "email": "ana@example.com", "phone": "6025550100" }, "coBorrower": null, "address": { "line1": "812 Main St", "line2": null, "city": "Plano", "state": "TX", "postalCode": "75023", "country": "US" }, "utility": { "name": "Oncor", "monthlyBill": 182, "meterNumber": null }, "source": { "name": "Door knock", "subSource": null }, "externalId": "crm-1042", "partnerLeadId": null, "notes": null, "salesRep": { "id": "1695312000000x123456789012345678", "name": "Jordan Lee", "email": "jordan@example.com", "phone": null }, "setter": null, "project": null, "design": { "name": "Ana Rivera Design", "scaniflyProjectId": "64f1…", "scaniflyDesignId": "651a…", "soldScaniflyDesignId": null }, "proposal": { "id": "k17b…", "reference": "PS-14832", "label": "25-year loan", "status": "presented", "system": { "sizeKw": 8.2, "annualProductionKwh": 11480, "arrays": 2, "panels": { "count": 20, "manufacturer": "REC", "model": "Alpha Pure 410" }, "inverters": { "count": 20, "manufacturer": "Enphase", "model": "IQ8M", "name": null, "microinverter": true }, "batteries": null, "pricePerWatt": { "base": 3.1, "final": 3.47 } }, "price": { "total": 28450.5, "salesTax": 0, "beforeTax": 28450.5, "adders": 450, "discounts": 0, "incentives": 0, "net": 28450.5 }, "financing": { "type": "loan", "lender": "GoodLeap", "amount": 28450.5, "aprPercent": 3.99, "termMonths": 300, "monthlyPayment": 142.18, "dealerFeePercent": 18, "escalatorPercent": null }, "adders": [{ "name": "Critter guard", "quantity": 1, "total": 450 }], "links": { "proposal": "https://pipe.solar/p/7Hq2…" } }, "links": { "record": "https://pipe.solar/dashboard/proposals/j57a…", "proposal": "https://pipe.solar/p/7Hq2…" }, "contractFiles": [], "files": { "siteSurvey": ["https://…"], "utilityBill": ["https://…"] } }
/v1/leads/{id}/activitiesRead a lead's activity
The lead's activity, newest first, a page at a time: notes, status and stage changes, files and more. createdAt is when the row was written. reference is the long record id Pipe gave your system before for this row, and null for a row written since. Older rows can come out of order, so sort by createdAt when order matters. internal marks a note only the company's admins see. author is the writer's name and authorId their id, the same id the activity webhook sends. Both are null for a row Pipe wrote, and authorId is null for the homeowner.
GET https://staging-api.pipe.solar/v1/leads/{id}/activities Authorization: Bearer psk_<40 characters>
{ "data": [{ "id": "n2b…", "reference": null, "type": "note", "body": "Customer asked about batteries", "internal": false, "customerFacing": false, "replyTo": null, "author": "Jordan Lee", "authorId": "1695312000000x123456789012345678", "createdAt": "2026-09-19T10:12:00.000Z" }], "next": null }
Read your company's projects, set the install date and NTP, and add files.
/v1/projectsList projects
Your company's projects, solar and HI, newest change first, a page at a time. Keep the newest updatedAt you read and send it as updatedSince next time to read only what changed. An installer's key lists every project it builds, its dealers' included. externalId is the id the system that sent the customer knows it by (your CRM's id from POST /v1/leads, or RepCard's), null when none.
GET https://staging-api.pipe.solar/v1/projects Authorization: Bearer psk_<40 characters>
{ "data": [{ "id": "k97f…", "reference": "D4YR1VSK7K", "productLine": "solar", "stage": { "id": "s92d…", "name": "Permitting", "enteredAt": "…" }, "updatedAt": "…", "externalId": "crm-1042" }], "next": "eyJ…" }
/v1/projects/{id}Read a project
One project in full: the customer, the people, the contract, the financing, the milestones and the files. A solar project carries system and an HI project products; productLine says which, and the other is null. externalId is the id the system that sent the customer knows it by, the same as on the lead, null when none.
GET https://staging-api.pipe.solar/v1/projects/{id} Authorization: Bearer psk_<40 characters>
{ "id": "k97f…", "reference": "D4YR1VSK7K", "leadId": "j57a…", "productLine": "solar", "stage": { "id": "s92d…", "name": "Permitting", "enteredAt": "2026-10-02T14:05:00.000Z" }, "soldAt": "2026-09-20T18:31:00.000Z", "updatedAt": "2026-10-02T14:05:00.000Z", "ntpGranted": true, "customer": { "firstName": "Ana", "lastName": "Rivera", "email": "ana@example.com", "phone": "6025550100" }, "coBorrower": null, "address": { "line1": "812 Main St", "line2": null, "city": "Plano", "state": "TX", "postalCode": "75023", "country": "US" }, "meterNumber": "4471209", "notes": { "customer": null, "project": "Gate code 1234" }, "source": { "name": "Door knock", "subSource": null }, "externalId": "crm-1042", "partnerLeadId": null, "utility": { "name": "Oncor" }, "design": { "name": "Ana Rivera Design", "scaniflyProjectId": "64f1…", "scaniflyDesignId": "651a…", "soldScaniflyDesignId": "651a…" }, "company": { "name": "Inty Power" }, "salesRep": { "id": "1695312000000x123456789012345678", "name": "Jordan Lee", "email": "jordan@example.com", "phone": null }, "setter": null, "projectManager": null, "siteSurveyor": null, "subcontractor": null, "contract": { "signedAt": "2026-09-20T18:31:00.000Z", "price": 28450.5, "salesTax": 0, "priceBeforeTax": 28450.5, "files": ["https://…"] }, "financing": { "type": "loan", "lender": "GoodLeap", "amount": 28450.5, "aprPercent": 3.99, "termMonths": 300, "monthlyPayment": 142.18, "dealerFeePercent": 18, "escalatorPercent": null }, "system": { "roofType": "Shingle", "sizeKw": 8.2, "annualProductionKwh": 11480, "panels": { "count": 20, "manufacturer": "REC", "model": "Alpha Pure 410" }, "inverters": { "count": 20, "manufacturer": "Enphase", "model": "IQ8M", "name": null, "microinverter": true }, "batteries": null, "pricePerWatt": { "base": 3.1, "final": 3.47 }, "adders": [{ "name": "Critter guard", "quantity": 1, "total": 450 }] }, "products": null, "milestones": { "installScheduled": "2026-10-14", "ntpApproved": "2026-09-28" }, "customFields": { "Roof type": "Metal", "Crew": "Crew B" }, "files": { "siteSurvey": ["https://…"], "planset": [] }, "links": { "project": "https://pipe.solar/dashboard/projects/j57a…", "proposal": null } }
/v1/projects/{id}Set the install date, NTP and the adder amount
Sets the install date (the project's "Install Scheduled" milestone, which also places it on the Calendar), whether NTP is granted, and the adder amount, which asks your company's admins in Pipe to approve or reject it (an adder decision webhook, when your company has one, gets the answer). A changed amount asks again, even one answered before; the same amount changes nothing. An absent field is kept. Only the installer's key changes a project.
PATCH https://staging-api.pipe.solar/v1/projects/{id} Authorization: Bearer psk_<40 characters> Content-Type: application/json { "installDate": "2026-10-14", "ntpGranted": true, "adderAmount": 1250.5 }
{ "changed": true }
/v1/projects/{id}/filesAdd files to a project
Copies each file from its address into the project's folder, where the record shows it. Send 1 to 10 at a time. Each address must be public https (no IP address, no private name, no password in it), open the file without signing in, and hold a document, picture, audio or video of 100 MB or less; Pipe keeps its own copy. Sending the same address to the same folder again adds nothing. Only the installer's key adds files.
POST https://staging-api.pipe.solar/v1/projects/{id}/files Authorization: Bearer psk_<40 characters> Content-Type: application/json { "folder": "permit", "files": [{ "url": "https://files.example.com/permit-812-main.pdf", "name": "Permit.pdf" }] }
{ "files": [{ "id": "m17c…", "name": "Permit.pdf", "folder": "permit", "added": true }] }
The stages a project can move to, and the move itself.
/v1/stagesList stages
The stages a project can move to, in ladder order: solar first, then HI. Store the id, not the name: a renamed stage keeps its id. A company with no ladder of its own for a product line uses Pipe's standard one, so the same id can appear under both lines. Only the installer's key reads the ladders.
GET https://staging-api.pipe.solar/v1/stages Authorization: Bearer psk_<40 characters>
{ "data": [ { "id": "s81c…", "name": "Contract Signed", "productLine": "solar", "position": 1, "kind": "normal" }, { "id": "s92d…", "name": "Submit Permitting & Interconnection", "productLine": "solar", "position": 2, "kind": "normal" }, { "id": "s05e…", "name": "Cancelled", "productLine": "solar", "position": 9, "kind": "cancelled" } ] }
/v1/projects/{id}/stageMove a project's stage
Moves the project to a stage on its ladder. The stage's checklists, alerts and messages follow. Send stageId (from GET /v1/stages, or a project's stage.id) or the stage's name as stage, not both. Moving to the current stage changes nothing. Only the installer's key moves a project.
POST https://staging-api.pipe.solar/v1/projects/{id}/stage Authorization: Bearer psk_<40 characters> Content-Type: application/json { "stageId": "s92d…" }
{ "changed": true, "stage": "Submit Permitting & Interconnection", "stageId": "s92d…" }
The installer's active adders, HI products and equipment.
/v1/addersList adders and products
The installer's active adders and HI products, in its own order. For a perWatt adder, unitPrice is dollars per watt. An adder priced by solar size lists its steps in sizePrices, smallest size first; a system takes the last step that starts at or below its size, and unitPrice is then the first step's price.
GET https://staging-api.pipe.solar/v1/adders Authorization: Bearer psk_<40 characters>
{ "data": [{ "id": "q3d…", "name": "Critter guard", "description": null, "productLine": "solar", "productKind": null, "unit": "fixed", "unitPrice": 450, "sizePrices": [], "tiered": false, "repSponsored": false, "showOnProposal": true, "brand": null, "model": null, "warrantyYears": null }] }
/v1/equipmentList panels, inverters and batteries
The installer's active equipment. kind picks one of the three.
GET https://staging-api.pipe.solar/v1/equipment Authorization: Bearer psk_<40 characters>
{ "data": [{ "id": "r8e…", "kind": "panel", "manufacturer": "REC", "model": "Alpha Pure 410", "watts": 410, "default": true }] }
For a requester company's key, which Pipe issues: send a service work order to an installer and read it back.
/v1/service-requestsSend a work order to an installer
For a requester company's key, which Pipe issues: sends one service work order to an installer your company may send work to. The installer accepts or declines it (acceptance). The homeowner joins the installer's customers: the one at the same street address, or a new one with your company as the lead source. Send your own work-order number as externalId: sending it again answers the newest work order with that number, with 200, and makes nothing new. When every work order with that number was declined, it answers the one sent to this installer, or makes a new one, with 201, for an installer not yet sent it, up to 10 installers; after that, send it under a new number. The homeowner is matched on the whole address, line 2 included, so send the urbanization or unit there. Times in the answer are UTC; each visit names the site's own timeZone.
POST https://staging-api.pipe.solar/v1/service-requests Authorization: Bearer psk_<40 characters> Content-Type: application/json { "externalId": "WO-1001", "installerId": "k57a…", "serviceType": "solar", "issueType": "inverterFailure", "description": "Two microinverters do not report.", "homeowner": { "firstName": "Sam", "lastName": "Rivera", "phone": "+1 555 0100", "address": { "line1": "1 Main St", "city": "San Juan", "state": "PR", "postalCode": "00901" } }, "monitoringSites": { "enphase": "1000001" }, "equipment": [{ "kind": "microinverter", "serial": "SN-0001" }], "files": [{ "url": "https://files.example.com/commissioning.pdf" }] }
{ "id": "r81c…", "externalId": "WO-1001", "reference": null, "number": "S-04211", "installer": { "id": "k57a…", "name": "Example Solar" }, "status": "new", "acceptance": "pending", "declineReason": null, "serviceType": "solar", "issueType": "inverterFailure", "priority": null, "description": "Two microinverters do not report.", "monitoringSites": { "enphase": "1000001", "generac": null, "solarEdge": null }, "files": [{ "id": "f42b…", "name": "commissioning.pdf" }], "equipment": [{ "kind": "microinverter", "role": "reported", "serial": "SN-0001", "maker": null, "model": null }], "visits": [], "createdAt": "2026-10-15T14:00:00.000Z", "updatedAt": "2026-10-15T14:00:00.000Z" }
/v1/service-requestsList your work orders
For a requester company's key: the work orders your company sent, newest first, a page at a time, or the ones one externalId names.
GET https://staging-api.pipe.solar/v1/service-requests Authorization: Bearer psk_<40 characters>
{ "data": [{ "id": "r81c…", "externalId": "WO-1001", "status": "new", "acceptance": "pending", "…": "…" }], "next": null }
/v1/service-requests/{id}Read a work order
One work order your company sent, by the id Pipe answered: whether the installer accepted it, its status, its equipment and its visits.
GET https://staging-api.pipe.solar/v1/service-requests/{id} Authorization: Bearer psk_<40 characters>
{ "id": "r81c…", "externalId": "WO-1001", "reference": null, "number": "S-04211", "installer": { "id": "k57a…", "name": "Example Solar" }, "status": "new", "acceptance": "pending", "declineReason": null, "serviceType": "solar", "issueType": "inverterFailure", "priority": null, "description": "Two microinverters do not report.", "monitoringSites": { "enphase": "1000001", "generac": null, "solarEdge": null }, "files": [{ "id": "f42b…", "name": "commissioning.pdf" }], "equipment": [{ "kind": "microinverter", "role": "reported", "serial": "SN-0001", "maker": null, "model": null }], "visits": [], "createdAt": "2026-10-15T14:00:00.000Z", "updatedAt": "2026-10-15T14:00:00.000Z" }
/v1/service-requests/{id}Change or cancel a work order
For a requester company's key: changes your reference, the description, the priority or the monitoring ids of a work order you sent, adds files, or cancels it while it is open. An absent field is kept; null clears the reference or a monitoring id. The installer moves the work order otherwise. Answers the work order as it now stands.
PATCH https://staging-api.pipe.solar/v1/service-requests/{id} Authorization: Bearer psk_<40 characters> Content-Type: application/json { "priority": "high", "monitoringSites": { "generac": "2000002" } }
{ "id": "r81c…", "externalId": "WO-1001", "reference": null, "number": "S-04211", "installer": { "id": "k57a…", "name": "Example Solar" }, "status": "new", "acceptance": "pending", "declineReason": null, "serviceType": "solar", "issueType": "inverterFailure", "priority": null, "description": "Two microinverters do not report.", "monitoringSites": { "enphase": "1000001", "generac": null, "solarEdge": null }, "files": [{ "id": "f42b…", "name": "commissioning.pdf" }], "equipment": [{ "kind": "microinverter", "role": "reported", "serial": "SN-0001", "maker": null, "model": null }], "visits": [], "createdAt": "2026-10-15T14:00:00.000Z", "updatedAt": "2026-10-15T14:00:00.000Z" }