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:<decimal machine id>) or the bare decimal machine ID. An address-form DID (did:peaq:0x...) or a raw address returns 400 INVALID_REQUEST.

Response

200 OK PENDING is the state of a machine that has never opted in or out (no record stored), distinct from OPTED_OUT (an explicit opt-out was recorded; a machine can opt out straight from PENDING). 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