Skip to documentation
On this page

REC Verify API

The calls behind the REC Verify screens, with curl examples. They are the calls our own app makes.

Who can open it
Signed in with an Enterprise account
Last checked against the code
2026-11-07
Status
Preview, can changeExamples not run against a live API yet

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.

shell
Set the host and the token once
export SOLSAT_API="https://<api-host>"
export TOKEN="<token>"

Responses#

  • A success answer is { "data": ... }. A list also has page with total, limit and offset. The flags list also has counts.
  • An error answer is { "error": "<code>" }, and some add fields such as field, missing or maxCharacters.
  • 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 a Retry-After header.
  • 401 and 403 are described in Authentication.

Endpoints#

Every path is under the API host. All calls except the last need the token.

REC Verify calls
MethodPathWhat it doesSuccessNeeds a token
POST/secure/pro/rec-verify/imports/validateCheck a CSV file and stage it. Nothing is saved yet.200Yes
POST/secure/pro/rec-verify/imports/{batchId}/confirmSave a checked file. Calling it again returns the same result.200Yes
GET/secure/pro/rec-verify/producersList producers with their latest reading, score and review state.200Yes
GET/secure/pro/rec-verify/producers/{id}Read one producer with all its readings and its score.200Yes
POST/secure/pro/rec-verify/producers/{id}/scoreWork out the score now and return it.200Yes
POST/secure/pro/rec-verify/producers/{id}/roof-checkQueue a roof check for a producer.202Yes
GET/secure/pro/rec-verify/producers/{id}/roof-checkRead the latest roof check job and the last good result.200Yes
POST/secure/pro/rec-verify/producers/{id}/actionsRecord a review action. 201 for a new action, 200 when it repeats the latest one.201, 200Yes
GET/secure/pro/rec-verify/producers/{id}/actionsRead the action history, newest first.200Yes
GET/secure/pro/rec-verify/producers/{id}/evidenceRead the evidence pack as one JSON document.200Yes
GET/secure/pro/rec-verify/flagsList the producers that need review, with counts per result and per review state.200Yes
GET/secure/pro/rec-verify/summaryCount producers per result, with the totals.200Yes
POST/secure/pro/rec-verify/scansQueue a scan of the buildings inside a circle. 202 for a new scan, 200 when the same area is already queued or running.202, 200Yes
GET/secure/pro/rec-verify/scansList scans, newest first, with roof counts per state.200Yes
GET/secure/pro/rec-verify/scans/{id}Read a scan and one page of its roofs, largest first.200Yes
POST/secure/pro/rec-verify/scans/{id}/roofs/{roofId}/inviteRecord an invite for a roof of a scan. Returns the path of the one time link.201Yes
POST/secure/pro/rec-verify/producers/{id}/inviteRecord an invite for the owner of a producer site.201Yes
GET/secure/pro/rec-verify/invitesList invites, newest first.200Yes
GET/public/rec-invites/{token}The data behind an invite link page. No sign in. Rate limited.200No

Scroll sideways to see all columns

List queries#

Query parameters of the list calls
ParameterUsed byValues
limitproducers, flags, scans, invitesA whole number of 0 or more. The default is 100 and the most is 500. Anything else answers invalid_limit.
offsetproducers, flags, scans, invitesA whole number of 0 or more. Anything else answers invalid_offset.
verdictproducers, flagsabove_range, inside_range, below_range or not_scored. Anything else answers invalid_verdict.
reviewproducers, flagsopen, meter_check_requested, on_hold, approved or submitted. Anything else answers invalid_review.
qproducers, flagsText to search for. The app uses it for a name or a producer id.
sortproducers, flagsname, needs_check or difference. The default is name for producers and needs_check for flags. Anything else answers invalid_sort.
statescan roofspossible, invited or registered. Anything else answers invalid_state.
statusinvitescreated, 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.

shell
Check and stage a CSV file
curl -sS -X POST "$SOLSAT_API/secure/pro/rec-verify/imports/validate" \
  -H "Authorization: Bearer $TOKEN" \
  -F "file=@rec-verify-mock-producers.csv"
json
The shape of the answer. The values are illustrative.
{
  "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 }
  }
}
json
The answer when the header is wrong, with status 422
{
  "error": "invalid_header",
  "missing": ["declared_wp"],
  "unexpected": ["capacity_kw"]
}

Save the checked file#

shell
Confirm with the `batchId` from the first answer
curl -sS -X POST "$SOLSAT_API/secure/pro/rec-verify/imports/$BATCH_ID/confirm" \
  -H "Authorization: Bearer $TOKEN"

List producers above range#

shell
Producers above range, largest difference first
curl -sS "$SOLSAT_API/secure/pro/rec-verify/producers?verdict=above_range&sort=difference&limit=20" \
  -H "Authorization: Bearer $TOKEN"

Score a producer#

shell
Score one producer now
curl -sS -X POST "$SOLSAT_API/secure/pro/rec-verify/producers/$PRODUCER_ID/score" \
  -H "Authorization: Bearer $TOKEN"
json
The shape of a score. The values are illustrative.
{
  "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#

shell
Counts per result
curl -sS "$SOLSAT_API/secure/pro/rec-verify/summary" \
  -H "Authorization: Bearer $TOKEN"

Scan an area#

shell
Queue a scan. The values are illustrative.
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#

shell
Ask for a meter check
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.

Error codes of the other calls
CodeStatusWhere
invalid_body400A JSON body that is not valid, or larger than 64 KiB.
invalid_action422The action is not one of the five review actions.
note_required422approve on a producer above range, without a note.
note_too_long422A note over 500 characters. The answer has maxCharacters.
not_scored409submit_issuance for a producer that is Not scored.
on_hold409submit_issuance while issuance is on hold.
decision_required409submit_issuance above range without an approval after the latest score.
score_out_of_date409approve or submit_issuance while the score no longer matches the readings.
producer_has_no_location409A roof check for a producer without a location.
roof_check_unavailable503The roof check service cannot take the job now.
invalid_field422A scan or invite field is wrong. The answer has field and code (required, outside_thailand, out_of_range or too_long).
scan_unavailable503The scan service cannot take the job now.
roof_registered409An invite for a roof that already has a producer of yours.
already_invited409A live invite exists for the building. The answer has that invite and no link.
invite_not_found404The public invite call got an unknown token.
invite_expired410The 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-After header with the seconds to wait.
  • Rate limits can change. Do not build a client around a fixed number of calls.