Skip to main content
GET
GET /machine/{key}/monetization

Endpoint

Reads a machine’s current monetization state. Public: no signature required.

Path parameters

string
required
Machine DID (did:peaq:0x...) or a decimal machine ID (e.g. 42).

Response

200 OK PENDING 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

Response