Skip to main content
GET
GET /mcr/{did}

Endpoint

Returns the score, letter rating, , , revenue summary, and trend for a single machine. The server paginates the full event history in batches of 100 to compute the score. Results are cached in memory with a TTL configurable via the MCR_CACHE_TTL env var (defaults to 3600 seconds; set MCR_CACHE_TTL=0 to disable caching). Responses are not cached when mcr_degraded is true: the server retries upstream FX sources on the next request rather than pinning a conservative score.

Path parameters

string
required
Machine DID (did:peaq:0x...) or raw EVM address (0x...).

Response

200 OK

Rating values

Possible values of mcr: AAA, AA, A, BBB, BB, B, NR, or Provisioned. Unbonded machines return a rating of NR with mcr_score: 0. Bonded machines that have not yet accumulated enough history return a rating of Provisioned with mcr_score: 0.

Error responses

Example

Response
  • GET /machine/ returns the full machine profile including data visibility-dependent fields.
  • GET /operator//machines returns MCR scores for all machines under an operator.
  • GET /metadata/ returns the same profile shape as /machine/{did}, resolved by NFT token ID.