Provider
Provider earnings from usage records (+ payout history)
Authorization
apiKey AuthorizationBearer <token>
OpenRelay API key. Send it as Authorization: Bearer vl_….
In: header
Path Parameters
orgId*string
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/orgs/string/provider/earnings"{
"totalEarningsCents": 0,
"totalHours": 0,
"currentMonthEarningsCents": 0,
"currentMonthHours": 0,
"pendingEarningsCents": 0,
"availableForPayoutCents": 0,
"totalPaidOutCents": 0,
"commissionPercent": 0,
"byNode": [
{
"nodeId": "string",
"hostname": "string",
"earningsCents": 0,
"hours": 0
}
],
"byGpuModel": [
{
"gpuModelId": "string",
"name": "string",
"earningsCents": 0,
"hours": 0
}
],
"recentPayouts": [
{
"id": "string",
"type": "string",
"amountCents": 0,
"description": "string",
"createdAt": "string"
}
]
}{
"error": "string",
"code": "string"
}{
"error": "string",
"code": "string"
}