API Reference
GET /machine/{key}/monetization
Read a machine’s current monetization state.
GET
GET /machine/{key}/monetization
Endpoint
Path parameters
string
required
Machine DID (
did:peaq:0x...) or a decimal machine ID (e.g. 42).Response
200 OKPENDING is the state of a machine that has never opted in or out (no record stored), distinct from OPTED_OUT (it opted in before and then opted out). signer and updated_at are null only in the PENDING case.
Error responses
Errors use a coded envelope:{"detail": {"code", "message"}}. Branch on code, never on message.
Example
Related endpoints
- PUT /machine//monetization sets the state with a signed request.
- GET /machine/ returns the full machine profile.
Previous
GET /health and GET /readyLiveness and readiness probes for monitoring the peaqOS MCR API server.
Next
GET /machine/{key}/monetization

