Contributions

Get user contribution history

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
durationstringOptionalDefault: 1y
Responses
get
/contributions/history
GET /api/v2/contributions/history HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "history": [
    {
      "date": "text",
      "tasks": 1,
      "forgiven": true
    }
  ]
}

Forgive the most recent missed contribution day for a user (admin only)

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
userkeystringRequired
Responses
post
/contributions/{userkey}/forgive
POST /api/v2/contributions/{userkey}/forgive HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "ok": true,
  "message": "text",
  "forgivenDate": "text",
  "updated": 1
}

Last updated