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:<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 OKPENDING 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
Related endpoints
PUT /machine/{key}/monetizationsets the state with a signed request.GET /machine/{did}returns the full machine profile.

