Skip to navigation

Get count of activities to be approved

This endpoint returns the count of activities to be approved up to the limit param. This can be useful for building dashboards and other UI elements that require the count of pending approvals.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

limitstringOptionalformat: "uint64"
Maximum count that will be returned in the counters. Must be less or equal to 100
typeslist of stringsOptional

List of the types of statistics you want to return. Can be: "requests", "contract_calls", "account_changes", "admin_changes", "whitelisted_addresses", "whitelisted_contracts", "settlements", "pledges", "lending_agreements". If no types are provided, selects everything.

Response

A successful response.
requestsCountstringOptionalformat: "uint64"
accountChangesCountstringOptionalformat: "uint64"
contractCallsCountstringOptionalformat: "uint64"
whitelistedAddressesCountstringOptionalformat: "uint64"
whitelistedContractsCountstringOptionalformat: "uint64"
settlementsCountstringOptionalformat: "uint64"
pledgesCountstringOptionalformat: "uint64"
lendingAgreementsCountstringOptionalformat: "uint64"
adminChangesCountstringOptionalformat: "uint64"
contractTemplatesCountstringOptionalformat: "uint64"

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error
503
Service Unavailable Error