REC Verify API
The calls behind the REC Verify screens, with curl examples. They are the calls our own app makes.
Preview, can change These pages describe calls that can change. They are not a separate public product.
What this is#
Note. These are the calls our own app makes. They are not a separate public product, there is no REC Verify API key, and they can change. Every call needs a signed in Enterprise user.
Note. The curl examples on this page have not been run against a live API yet. The request shapes are read from the backend code.
Read Authentication first. It explains the token, the header and what is not defined yet.
Before you call#
Unknown. How an outside reader learns the real API host. The app reads it from its own server settings. Examples here use the placeholder https://<api-host> and never a real address.
The examples use these shell variables. Replace each one before you run a command: $SOLSAT_API the host, $TOKEN the token, $BATCH_ID and $PRODUCER_ID ids from earlier answers.
export SOLSAT_API="https://<api-host>" export TOKEN="<token>"
Responses#
- A success answer is
{ "data": ... }. A list also haspagewithtotal,limitandoffset. The flags list also hascounts. - An error answer is
{ "error": "<code>" }, and some add fields such asfield,missingormaxCharacters. - 404
{"error":"Not found"}for an id that is not a UUID or is not in your organisation. - 500
{"error":"Internal error"}. - 429
{"error":"Too many requests. Please retry in Ns."}with aRetry-Afterheader. - 401 and 403 are described in Authentication.
Endpoints#
Every path is under the API host. All calls except the last need the token.
| Method | Path | What it does | Success | Needs a token |
|---|---|---|---|---|
| POST | /secure/pro/rec-verify/imports/validate | Check a CSV file and stage it. Nothing is saved yet. | 200 | Yes |
| POST | /secure/pro/rec-verify/imports/{batchId}/confirm | Save a checked file. Calling it again returns the same result. | 200 | Yes |
| GET | /secure/pro/rec-verify/producers | List producers with their latest reading, score and review state. | 200 | Yes |
| GET | /secure/pro/rec-verify/producers/{id} | Read one producer with all its readings and its score. | 200 | Yes |
| POST | /secure/pro/rec-verify/producers/{id}/score | Work out the score now and return it. | 200 | Yes |
| POST | /secure/pro/rec-verify/producers/{id}/roof-check | Queue a roof check for a producer. | 202 | Yes |
| GET | /secure/pro/rec-verify/producers/{id}/roof-check | Read the latest roof check job and the last good result. | 200 | Yes |
| POST | /secure/pro/rec-verify/producers/{id}/actions | Record a review action. 201 for a new action, 200 when it repeats the latest one. | 201, 200 | Yes |
| GET | /secure/pro/rec-verify/producers/{id}/actions | Read the action history, newest first. | 200 | Yes |
| GET | /secure/pro/rec-verify/producers/{id}/evidence | Read the evidence pack as one JSON document. | 200 | Yes |
| GET | /secure/pro/rec-verify/flags | List the producers that need review, with counts per result and per review state. | 200 | Yes |
| GET | /secure/pro/rec-verify/summary | Count producers per result, with the totals. | 200 | Yes |
| POST | /secure/pro/rec-verify/scans | Queue a scan of the buildings inside a circle. 202 for a new scan, 200 when the same area is already queued or running. | 202, 200 | Yes |
| GET | /secure/pro/rec-verify/scans | List scans, newest first, with roof counts per state. | 200 | Yes |
| GET | /secure/pro/rec-verify/scans/{id} | Read a scan and one page of its roofs, largest first. | 200 | Yes |
| POST | /secure/pro/rec-verify/scans/{id}/roofs/{roofId}/invite | Record an invite for a roof of a scan. Returns the path of the one time link. | 201 | Yes |
| POST | /secure/pro/rec-verify/producers/{id}/invite | Record an invite for the owner of a producer site. | 201 | Yes |
| GET | /secure/pro/rec-verify/invites | List invites, newest first. | 200 | Yes |
| GET | /public/rec-invites/{token} | The data behind an invite link page. No sign in. Rate limited. | 200 | No |
Scroll sideways to see all columns
List queries#
| Parameter | Used by | Values |
|---|---|---|
limit | producers, flags, scans, invites | A whole number of 0 or more. The default is 100 and the most is 500. Anything else answers invalid_limit. |
offset | producers, flags, scans, invites | A whole number of 0 or more. Anything else answers invalid_offset. |
verdict | producers, flags | above_range, inside_range, below_range or not_scored. Anything else answers invalid_verdict. |
review | producers, flags | open, meter_check_requested, on_hold, approved or submitted. Anything else answers invalid_review. |
q | producers, flags | Text to search for. The app uses it for a name or a producer id. |
sort | producers, flags | name, needs_check or difference. The default is name for producers and needs_check for flags. Anything else answers invalid_sort. |
state | scan roofs | possible, invited or registered. Anything else answers invalid_state. |
status | invites | created, opened, accepted or expired. Anything else answers invalid_status. |
Scroll sideways to see all columns
Examples#
Check a file#
The file goes in a multipart field named file. Use the sample from Connect data.
curl -sS -X POST "$SOLSAT_API/secure/pro/rec-verify/imports/validate" \ -H "Authorization: Bearer $TOKEN" \ -F "file=@rec-verify-mock-producers.csv"
{
"data": {
"batchId": "00000000-0000-4000-8000-000000000001",
"fileName": "rec-verify-mock-producers.csv",
"status": "validated",
"expiresAt": "2026-11-06T10:00:00Z",
"rowsTotal": 174,
"rowsAccepted": 174,
"rowsRejected": 0,
"producersReady": 12,
"producersExisting": 0,
"producersNotScored": 0,
"notScored": [],
"errorsTotal": 0,
"errors": [],
"limits": { "maxFileBytes": 10485760, "maxRows": 100000 }
}
}{
"error": "invalid_header",
"missing": ["declared_wp"],
"unexpected": ["capacity_kw"]
}Save the checked file#
curl -sS -X POST "$SOLSAT_API/secure/pro/rec-verify/imports/$BATCH_ID/confirm" \ -H "Authorization: Bearer $TOKEN"
List producers above range#
curl -sS "$SOLSAT_API/secure/pro/rec-verify/producers?verdict=above_range&sort=difference&limit=20" \ -H "Authorization: Bearer $TOKEN"
Score a producer#
curl -sS -X POST "$SOLSAT_API/secure/pro/rec-verify/producers/$PRODUCER_ID/score" \ -H "Authorization: Bearer $TOKEN"
{
"data": {
"verdict": "inside_range",
"period": { "kind": "month", "from": "2026-10", "to": "2026-10" },
"reportedWh": 91000000,
"lowWh": 70000000,
"highWh": 100000000,
"differenceWh": 0,
"reasons": [],
"notes": [],
"performanceRatio": { "low": 0.65, "high": 0.8 },
"computedAt": "2026-11-06T09:00:00Z",
"upToDate": true,
"series": {
"periods": [
{
"period": "2026-10",
"reportedWh": 91000000,
"lowWh": 70000000,
"highWh": 100000000,
"differenceWh": 0,
"verdict": "inside_range"
}
],
"months": []
}
}
}Read the summary#
curl -sS "$SOLSAT_API/secure/pro/rec-verify/summary" \ -H "Authorization: Bearer $TOKEN"
Scan an area#
curl -sS -X POST "$SOLSAT_API/secure/pro/rec-verify/scans" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"label":"Example","centerLat":13.4,"centerLng":101.1,"radiusM":500}'Record a decision#
curl -sS -X POST "$SOLSAT_API/secure/pro/rec-verify/producers/$PRODUCER_ID/actions" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"action":"request_meter_check","note":"Please read the meter again."}'Error codes#
The errors of the file checks are on Checks and verdicts. These are the others.
| Code | Status | Where |
|---|---|---|
invalid_body | 400 | A JSON body that is not valid, or larger than 64 KiB. |
invalid_action | 422 | The action is not one of the five review actions. |
note_required | 422 | approve on a producer above range, without a note. |
note_too_long | 422 | A note over 500 characters. The answer has maxCharacters. |
not_scored | 409 | submit_issuance for a producer that is Not scored. |
on_hold | 409 | submit_issuance while issuance is on hold. |
decision_required | 409 | submit_issuance above range without an approval after the latest score. |
score_out_of_date | 409 | approve or submit_issuance while the score no longer matches the readings. |
producer_has_no_location | 409 | A roof check for a producer without a location. |
roof_check_unavailable | 503 | The roof check service cannot take the job now. |
invalid_field | 422 | A scan or invite field is wrong. The answer has field and code (required, outside_thailand, out_of_range or too_long). |
scan_unavailable | 503 | The scan service cannot take the job now. |
roof_registered | 409 | An invite for a roof that already has a producer of yours. |
already_invited | 409 | A live invite exists for the building. The answer has that invite and no link. |
invite_not_found | 404 | The public invite call got an unknown token. |
invite_expired | 410 | The public invite call got an expired or replaced link. |
Scroll sideways to see all columns
Limits and rate limiting#
- A file is at most 10 MiB and 100,000 rows. A JSON body is at most 64 KiB.
- The roof check, scan creation and the public invite call are rate limited. When you pass the limit you get 429 and a
Retry-Afterheader with the seconds to wait. - Rate limits can change. Do not build a client around a fixed number of calls.